reSIProcate/stack  9694
Public Member Functions | Private Attributes
resip::TimerMessage Class Reference

#include <TimerMessage.hxx>

Inheritance diagram for resip::TimerMessage:
Inheritance graph
[legend]
Collaboration diagram for resip::TimerMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RESIP_HeapCount (TimerMessage)
 TimerMessage (Data transactionId, Timer::Type type, unsigned long duration)
 ~TimerMessage ()
virtual const DatagetTransactionId () const
Timer::Type getType () const
unsigned long getDuration () const
bool isClientTransaction () const
virtual EncodeStreamencode (EncodeStream &strm) const
 output the entire message to stream
virtual EncodeStreamencodeBrief (EncodeStream &str) const
 output a brief description to stream

Private Attributes

Data mTransactionId
Timer::Type mType
unsigned long mDuration

Detailed Description

Definition at line 13 of file TimerMessage.hxx.


Constructor & Destructor Documentation

TimerMessage::TimerMessage ( Data  transactionId,
Timer::Type  type,
unsigned long  duration 
)

Definition at line 10 of file TimerMessage.cxx.

   : mTransactionId(transactionId),
     mType(type),
     mDuration(duration) {}
TimerMessage::~TimerMessage ( )

Definition at line 33 of file TimerMessage.cxx.

{}

Member Function Documentation

EncodeStream & TimerMessage::encode ( EncodeStream strm) const [virtual]

output the entire message to stream

Implements resip::Message.

Definition at line 81 of file TimerMessage.cxx.

References EncodeStream, mDuration, mTransactionId, mType, and resip::toData().

{
   return strm << "TimerMessage TransactionId[" << mTransactionId << "] "
               << " Type[" << Timer::toData(mType) << "]"
               << " duration[" << mDuration << "]";
}

Here is the call graph for this function:

EncodeStream & TimerMessage::encodeBrief ( EncodeStream str) const [virtual]

output a brief description to stream

Implements resip::Message.

Definition at line 76 of file TimerMessage.cxx.

References mDuration, mType, and resip::toData().

{
   return str << "Timer: " << Timer::toData(mType) << " " << mDuration;
}

Here is the call graph for this function:

unsigned long TimerMessage::getDuration ( ) const
const Data & TimerMessage::getTransactionId ( ) const [virtual]

Implements resip::TransactionMessage.

Definition at line 16 of file TimerMessage.cxx.

References mTransactionId.

Referenced by resip::TransactionState::processTimer().

{
   return mTransactionId;
}
Timer::Type TimerMessage::getType ( ) const
bool TimerMessage::isClientTransaction ( ) const [virtual]
resip::TimerMessage::RESIP_HeapCount ( TimerMessage  )

Member Data Documentation

unsigned long resip::TimerMessage::mDuration [private]

Definition at line 31 of file TimerMessage.hxx.

Referenced by encode(), encodeBrief(), and getDuration().

Definition at line 29 of file TimerMessage.hxx.

Referenced by encode(), and getTransactionId().

Definition at line 30 of file TimerMessage.hxx.

Referenced by encode(), encodeBrief(), getType(), and isClientTransaction().


The documentation for this class was generated from the following files: