My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::NetDat Class Referenceabstract
Inheritance diagram for gcp::util::NetDat:
gcp::util::NetStruct gcp::util::NetUnion gcp::util::NetVar gcp::control::NewNetAtmosCmd gcp::control::NewNetCollimateCmd gcp::control::NewNetConfigureFrameGrabberCmd gcp::control::NewNetDeckModeCmd gcp::control::NewNetEncoderCalsCmd gcp::control::NewNetEncoderLimitsCmd gcp::control::NewNetEncoderZerosCmd gcp::control::NewNetEqnEqxCmd gcp::control::NewNetEquatOffsetCmd gcp::control::NewNetFeatureCmd gcp::control::NewNetFlatFieldCmd gcp::control::NewNetFlexureCmd gcp::control::NewNetGetregCmd gcp::control::NewNetGpibReadCmd gcp::control::NewNetGpibSendCmd gcp::control::NewNetHaltCmd gcp::control::NewNetInitCmd gcp::control::NewNetLocationCmd gcp::control::NewNetModelCmd gcp::control::NewNetMountOffsetCmd gcp::control::NewNetOptCamCntlCmd gcp::control::NewNetPagerCmd gcp::control::NewNetPowerCmd gcp::control::NewNetScanCmd gcp::control::NewNetSetregCmd gcp::control::NewNetShutdownCmd gcp::control::NewNetSiteCmd gcp::control::NewNetSkyOffsetCmd gcp::control::NewNetSlewCmd gcp::control::NewNetSlewRateCmd gcp::control::NewNetTiltsCmd gcp::control::NewNetTrackCmd gcp::control::NewNetTvAngleCmd gcp::control::NewNetTvOffsetCmd gcp::control::NewNetUt1UtcCmd gcp::control::NewNetYearCmd gcp::util::NewNetBenchDoneMsg gcp::util::NewNetDriveDoneMsg gcp::util::NewNetFrameDoneMsg gcp::util::NewNetGreetingMsg gcp::util::NewNetLogMsg gcp::util::NewNetScanDoneMsg gcp::util::NewNetScriptDoneMsg gcp::util::NewNetSetregDoneMsg gcp::util::NewNetSourceSetMsg gcp::util::NewNetTvOffsetDoneMsg gcp::util::NewRtcNetMsg gcp::util::TipperData gcp::util::WxData gcp::util::WxData40m gcp::util::WxDataSA SchAutoDir SchAutoPoll SchAutoState SchClient SchCommand SchedulerMessage SchFrameDone SchGrabDone SchMarkDone SchRtcNetMsg SchSetregDone SchTvOffsetDone gcp::control::NewNetCmd gcp::util::NewNetMsg SchMessageBody

Classes

struct  Info
 

Public Member Functions

 NetDat ()
 
 NetDat (const NetDat &netDat)
 
 NetDat (NetDat &netDat)
 
void operator= (const NetDat &netDat)
 
void operator= (NetDat &netDat)
 
virtual ~NetDat ()
 
virtual unsigned size ()
 
virtual std::vector< unsigned
char > & 
getSerializedData ()
 
virtual void packSerializedData (unsigned char *bytes)
 
virtual void deserialize (const std::vector< unsigned char > &bytes)
 
unsigned maxSize ()
 
bool send (int fd)
 
bool recv (int fd)
 

Protected Member Functions

virtual void resize (unsigned size)
 
unsigned char *const getSerializedDataPtr ()
 
virtual void serialize ()
 
virtual void deserialize (const unsigned char *bytes)=0
 
virtual void checkSize (const std::vector< unsigned char > &bytes)
 

Protected Attributes

std::vector< unsigned char > bytes_
 
unsigned maxSize_
 

Friends

class NetStruct
 
class NetUnion
 

Constructor & Destructor Documentation

NetDat::NetDat ( )

Constructor.

....................................................................... Constructor.

NetDat::NetDat ( const NetDat netDat)

Constructor.

....................................................................... Copy constructors

NetDat::~NetDat ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

void NetDat::checkSize ( const std::vector< unsigned char > &  bytes)
protectedvirtual

Check an array size against ours

....................................................................... Check the size of an array against our size

void NetDat::deserialize ( const std::vector< unsigned char > &  bytes)
virtual

Deserialize data into this object

....................................................................... Deserialize data into this object

Reimplemented in gcp::util::NetUnion, gcp::util::NetStruct, and gcp::util::NetVar.

void NetDat::deserialize ( const unsigned char *  bytes)
protectedpure virtual

Private deserialization method

....................................................................... Private deserialization method

Implemented in gcp::util::NetUnion, and gcp::util::NetStruct.

std::vector< unsigned char > & NetDat::getSerializedData ( )
virtual

Return a reference to serialized data

....................................................................... Return a reference to serialized data

unsigned char *const NetDat::getSerializedDataPtr ( )
protected

Return a reference to internal data

....................................................................... Return a pointer to serialized data

unsigned NetDat::maxSize ( )

Return the maximum size (for variable sized objects) in bytes

....................................................................... Max size in bytes

void NetDat::operator= ( const NetDat netDat)

....................................................................... Copy constructors

void NetDat::packSerializedData ( unsigned char *  dest)
virtual

Fill an external pointer with serialized data

....................................................................... Return a pointer to serialized data

bool NetDat::recv ( int  fd)

Receive this object over a socket

....................................................................... Receive this object over a socket

void NetDat::resize ( unsigned  size)
protectedvirtual

Increment size

....................................................................... Increment the size

bool NetDat::send ( int  fd)

Send this object over a socket

....................................................................... Send this object over a socket

void NetDat::serialize ( )
protectedvirtual

Serialize the data

....................................................................... Serialize the data

unsigned NetDat::size ( )
virtual

Return size in bytes

....................................................................... Size in bytes

Reimplemented in gcp::util::NetUnion, gcp::util::NetStruct, and gcp::util::NetVar.

Member Data Documentation

std::vector<unsigned char> gcp::util::NetDat::bytes_
protected

Memory for the serialized version of this data

unsigned gcp::util::NetDat::maxSize_
protected

Maximum size in bytes


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