ComsOperationMessage Class Reference

#include <ComsOperationMessage.h>

Inheritance diagram for ComsOperationMessage:


List of all members.

Public Types

enum  ComsOperationMessageType { OperationNone = 0, OperationTestSave = 1 }

Public Member Functions

 ComsOperationMessage (ComsOperationMessageType type=OperationNone, const char *param1_="", const char *param2_="")
virtual ~ComsOperationMessage ()
ComsOperationMessageType getType ()
const char * getParam1 ()
const char * getParam2 ()
virtual bool writeMessage (NetBuffer &buffer)
virtual bool readMessage (NetBufferReader &reader)

Protected Attributes

ComsOperationMessageType type_
std::string param1_
std::string param2_

Private Member Functions

 ComsOperationMessage (const ComsOperationMessage &)
operator= (const ComsOperationMessage &)

Detailed Description

Definition at line 26 of file ComsOperationMessage.h.

Member Enumeration Documentation

enum ComsOperationMessage::ComsOperationMessageType


Definition at line 29 of file ComsOperationMessage.h.

Constructor & Destructor Documentation

ComsOperationMessage::ComsOperationMessage ( ComsOperationMessageType  type = OperationNone,
const char *  param1_ = "",
const char *  param2_ = "" 

Definition at line 23 of file ComsOperationMessage.cpp.

ComsOperationMessage::~ComsOperationMessage (  )  [virtual]

Definition at line 35 of file ComsOperationMessage.cpp.

ComsOperationMessage::ComsOperationMessage ( const ComsOperationMessage  )  [private]

Member Function Documentation

ComsOperationMessageType ComsOperationMessage::getType (  )  [inline]

Definition at line 41 of file ComsOperationMessage.h.

References type_.

const char* ComsOperationMessage::getParam1 (  )  [inline]

Definition at line 42 of file ComsOperationMessage.h.

References param1_.

const char* ComsOperationMessage::getParam2 (  )  [inline]

Definition at line 43 of file ComsOperationMessage.h.

References param2_.

bool ComsOperationMessage::writeMessage ( NetBuffer buffer  )  [virtual]

Implements ComsMessage.

Definition at line 40 of file ComsOperationMessage.cpp.

References NetBuffer::addToBuffer(), param1_, param2_, and type_.

bool ComsOperationMessage::readMessage ( NetBufferReader reader  )  [virtual]

Implements ComsMessage.

Definition at line 48 of file ComsOperationMessage.cpp.

References NetBufferReader::getFromBuffer(), param1_, param2_, and type_.

Referenced by ClientOperationHandler::processMessage().

const ComsOperationMessage& ComsOperationMessage::operator= ( const ComsOperationMessage  )  [private]

Member Data Documentation

ComsOperationMessageType ComsOperationMessage::type_ [protected]

Reimplemented from ComsMessage.

Definition at line 50 of file ComsOperationMessage.h.

Referenced by getType(), readMessage(), and writeMessage().

std::string ComsOperationMessage::param1_ [protected]

Definition at line 51 of file ComsOperationMessage.h.

Referenced by getParam1(), readMessage(), and writeMessage().

std::string ComsOperationMessage::param2_ [protected]

Definition at line 52 of file ComsOperationMessage.h.

Referenced by getParam2(), readMessage(), and writeMessage().

The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3