ot_messageBase Class Reference

#include <ot_message.h>

Inheritance diagram for ot_messageBase:

ot_messageRequest ot_messageResponse ot_messageACTION ot_messageDUMP ot_messageGET ot_messagePING ot_messageSET ot_messageACTIONRESP ot_messageDUMPRESP ot_messageERROR ot_messageGETRESP ot_messagePINGRESP ot_messageSETRESP

List of all members.

Public Member Functions

virtual ~ot_messageBase (void)
OT_MESSAGE_TYPE getType (void) const
virtual const string getMessageCode (void) const =0
virtual void encode (ot_map &msg) const =0
virtual void makeHeader (ot_map &msg) const =0

Static Public Member Functions

static ot_messageBasedecodeMessage (const ot_map &input)

Protected Member Functions

 ot_messageBase (OT_MESSAGE_TYPE type)

Protected Attributes

OT_MESSAGE_TYPE m_type


Constructor & Destructor Documentation

ot_messageBase::ot_messageBase ( OT_MESSAGE_TYPE  type  )  [inline, protected]

virtual ot_messageBase::~ot_messageBase ( void   )  [inline, virtual]


Member Function Documentation

OT_MESSAGE_TYPE ot_messageBase::getType ( void   )  const [inline]

References m_type.

static ot_messageBase* ot_messageBase::decodeMessage ( const ot_map input  )  [static]

virtual const string ot_messageBase::getMessageCode ( void   )  const [pure virtual]

virtual void ot_messageBase::encode ( ot_map msg  )  const [pure virtual]

virtual void ot_messageBase::makeHeader ( ot_map msg  )  const [pure virtual]

Implemented in ot_messageRequest, and ot_messageResponse.


Member Data Documentation

Referenced by getType().


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

Generated on Sun May 4 12:42:44 2008 for OT_LIB 4.1 by  doxygen 1.5.5