reSIProcate/stack  9694
TransactionMessage.hxx
Go to the documentation of this file.
00001 #ifndef RESIP_TransactionMessage_hxx
00002 #define RESIP_TransactionMessage_hxx
00003 
00004 #include <cassert>
00005 #include "resip/stack/Message.hxx"
00006 #include "rutil/HeapInstanceCounter.hxx"
00007 
00008 namespace resip
00009 {
00010 
00011 class TransactionMessage : public Message
00012 {
00013    public:
00014       RESIP_HeapCount(TransactionMessage);
00015 
00016       virtual const Data& getTransactionId() const=0; 
00017 
00018       // indicates this message is associated with a Client Transaction for the
00019       // purpose of determining which TransactionMap to use
00020       virtual bool isClientTransaction() const = 0; 
00021 
00022       virtual Message* clone() const {assert(false); return NULL;}
00023 };
00024 
00025 }
00026 
00027 #endif
00028 
00029 /* ====================================================================
00030  * The Vovida Software License, Version 1.0 
00031  * 
00032  * Copyright (c) 2004 Vovida Networks, Inc.  All rights reserved.
00033  * 
00034  * Redistribution and use in source and binary forms, with or without
00035  * modification, are permitted provided that the following conditions
00036  * are met:
00037  * 
00038  * 1. Redistributions of source code must retain the above copyright
00039  *    notice, this list of conditions and the following disclaimer.
00040  * 
00041  * 2. Redistributions in binary form must reproduce the above copyright
00042  *    notice, this list of conditions and the following disclaimer in
00043  *    the documentation and/or other materials provided with the
00044  *    distribution.
00045  * 
00046  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00047  *    and "Vovida Open Communication Application Library (VOCAL)" must
00048  *    not be used to endorse or promote products derived from this
00049  *    software without prior written permission. For written
00050  *    permission, please contact vocal@vovida.org.
00051  *
00052  * 4. Products derived from this software may not be called "VOCAL", nor
00053  *    may "VOCAL" appear in their name, without prior written
00054  *    permission of Vovida Networks, Inc.
00055  * 
00056  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00057  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00058  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00059  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00060  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00061  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00062  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00063  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00064  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00065  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00066  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00067  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00068  * DAMAGE.
00069  * 
00070  * ====================================================================
00071  * 
00072  * This software consists of voluntary contributions made by Vovida
00073  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00074  * Inc.  For more information on Vovida Networks, Inc., please see
00075  * <http://www.vovida.org/>.
00076  *
00077  */
00078