|
My Project
|
Public Member Functions | |
| NetStruct () | |
| NetStruct (const NetStruct &netStruct) | |
| NetStruct (NetStruct &netStruct) | |
| void | operator= (const NetStruct &netStruct) |
| void | operator= (NetStruct &netStruct) |
| virtual | ~NetStruct () |
| virtual void | addMember (NetDat *netDat, bool alloc=false) |
| void | addVar (gcp::util::DataType::Type type, void *vPtr, unsigned nEl) |
| void | deserialize (const std::vector< unsigned char > &bytes) |
| void | deserialize (const unsigned char *bytes) |
| virtual unsigned | size () |
Public Member Functions inherited from gcp::util::NetDat | |
| NetDat () | |
| NetDat (const NetDat &netDat) | |
| NetDat (NetDat &netDat) | |
| void | operator= (const NetDat &netDat) |
| void | operator= (NetDat &netDat) |
| virtual | ~NetDat () |
| virtual std::vector< unsigned char > & | getSerializedData () |
| virtual void | packSerializedData (unsigned char *bytes) |
| unsigned | maxSize () |
| bool | send (int fd) |
| bool | recv (int fd) |
Additional Inherited Members | |
Protected Member Functions inherited from gcp::util::NetDat | |
| virtual void | resize (unsigned size) |
| unsigned char *const | getSerializedDataPtr () |
Protected Attributes inherited from gcp::util::NetDat | |
| std::vector< unsigned char > | bytes_ |
| unsigned | maxSize_ |
| NetStruct::NetStruct | ( | ) |
Constructor.
....................................................................... Constructor.
| NetStruct::NetStruct | ( | const NetStruct & | netStruct | ) |
Constructor.
....................................................................... Copy constructors - we don't want to copy members_, as this contains pointers to private memory locations in each object
|
virtual |
Destructor.
....................................................................... Destructor.
|
virtual |
Add a member to the internal vector of members
....................................................................... Add a member
| void NetStruct::addVar | ( | gcp::util::DataType::Type | type, |
| void * | vPtr, | ||
| unsigned | nEl | ||
| ) |
Add a variable to the internal vector of members
....................................................................... Add a variable to the iternal vector of members
|
virtual |
De-serialize data into this struct
....................................................................... De-serialize data into this struct
Reimplemented from gcp::util::NetDat.
|
virtual |
Private deserialization method
....................................................................... Private deserialization method
Implements gcp::util::NetDat.
|
virtual |
Return the size of this object
....................................................................... Return the size of this object.
Reimplemented from gcp::util::NetDat.