reSIProcate/repro  9694
TimerCMessage.hxx
Go to the documentation of this file.
00001 #ifndef TIMER_C_MESSAGE_HXX
00002 #define TIMER_C_MESSAGE_HXX 1
00003 
00004 #include "resip/stack/ApplicationMessage.hxx"
00005 
00006 #include "rutil/Data.hxx"
00007 #include <time.h>
00008 #include "rutil/resipfaststreams.hxx"
00009 
00010 namespace repro
00011 {
00012 
00013 class TimerCMessage : public resip::ApplicationMessage
00014 {
00015    public:
00016       TimerCMessage(resip::Data tid,int serial):
00017          mSerial(serial),
00018          mTid(tid)
00019       {}
00020 
00021       ~TimerCMessage(){}
00022 
00023       virtual const resip::Data& getTransactionId() const { return mTid; }
00024       virtual TimerCMessage* clone() const {return new TimerCMessage(mTid,mSerial);}
00025       virtual EncodeStream& encode(EncodeStream& ostr) const { ostr << "TimerCMessage(tid="<<mTid<<")"; return ostr; }
00026       virtual EncodeStream& encodeBrief(EncodeStream& ostr) const { return encode(ostr);}
00027 
00028       int mSerial;
00029 
00030    private:
00031       TimerCMessage(){}
00032       resip::Data mTid;
00033 
00034 };
00035 }
00036 #endif