dcrud  0.0.0
Distributed data and services
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
ClassID Class Reference

#include <ClassID.hpp>

Collaboration diagram for ClassID:
Collaboration graph

Public Types

enum  Type {
  TYPE_NULL, TYPE_BYTE, TYPE_BOOLEAN, TYPE_SHORT,
  TYPE_INTEGER, TYPE_LONG, TYPE_FLOAT, TYPE_DOUBLE,
  TYPE_STRING, TYPE_CLASS_ID, TYPE_GUID, TYPE_CALL_MODE,
  TYPE_QUEUE_INDEX, TYPE_SHAREABLE, LAST_TYPE
}
 

Public Member Functions

 ClassID (byte p1=0, byte p2=0, byte p3=0, byte clazz=0)
 
 ClassID (const ClassID &right)
 
ClassIDoperator= (const ClassID &right)
 
bool operator== (const ClassID &right) const
 
bool operator< (const ClassID &right) const
 
int compareTo (const ClassID &right) const
 
Type getType () const
 
void serialize (io::ByteBuffer &buffer) const
 
std::string toString (void) const
 

Static Public Member Functions

static void serialize (Type type, io::ByteBuffer &buffer)
 
static ClassID unserialize (io::ByteBuffer &buffer)
 

Static Public Attributes

static const unsigned int SIZE = 4
 

Detailed Description

Definition at line 7 of file ClassID.hpp.

Member Enumeration Documentation

enum Type
Enumerator
TYPE_NULL 
TYPE_BYTE 
TYPE_BOOLEAN 
TYPE_SHORT 
TYPE_INTEGER 
TYPE_LONG 
TYPE_FLOAT 
TYPE_DOUBLE 
TYPE_STRING 
TYPE_CLASS_ID 
TYPE_GUID 
TYPE_CALL_MODE 
TYPE_QUEUE_INDEX 
TYPE_SHAREABLE 
LAST_TYPE 

Definition at line 10 of file ClassID.hpp.

Constructor & Destructor Documentation

ClassID ( byte  p1 = 0,
byte  p2 = 0,
byte  p3 = 0,
byte  clazz = 0 
)
inline

Definition at line 32 of file ClassID.hpp.

32  :
33  _p1 ( p1 ),
34  _p2 ( p2 ),
35  _p3 ( p3 ),
36  _class( clazz )
37  {}
ClassID ( const ClassID right)
inline

Definition at line 39 of file ClassID.hpp.

39  :
40  _p1 ( right._p1 ),
41  _p2 ( right._p2 ),
42  _p3 ( right._p3 ),
43  _class( right._class )
44  {}

Member Function Documentation

int compareTo ( const ClassID right) const

Here is the caller graph for this function:

Type getType ( ) const
bool operator< ( const ClassID right) const
inline

Definition at line 62 of file ClassID.hpp.

62  {
63  return compareTo( right ) < 0;
64  }
int compareTo(const ClassID &right) const

Here is the call graph for this function:

ClassID& operator= ( const ClassID right)
inline

Definition at line 46 of file ClassID.hpp.

46  {
47  _p1 = right._p1;
48  _p2 = right._p2;
49  _p3 = right._p3;
50  _class = right._class;
51  return *this;
52  }
bool operator== ( const ClassID right) const
inline

Definition at line 58 of file ClassID.hpp.

58  {
59  return compareTo( right ) == 0;
60  }
int compareTo(const ClassID &right) const

Here is the call graph for this function:

static void serialize ( Type  type,
io::ByteBuffer buffer 
)
static

Here is the caller graph for this function:

void serialize ( io::ByteBuffer buffer) const
std::string toString ( void  ) const
static ClassID unserialize ( io::ByteBuffer buffer)
static

Field Documentation

const unsigned int SIZE = 4
static

Definition at line 30 of file ClassID.hpp.


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