All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <MessageRaw.h>
Public Member Functions | |
| void | bigEndianValues () |
| const char * | buffer () const |
| const FletcherChecksum & | checksum () const |
| const MessageRawHeader & | header () const |
| bool | isBigEndianValid () const |
| bool | isLittleEndianValid () const |
| void | littleEndianValues () |
| MessageRaw () | |
| MessageRaw (const Payload &p) | |
| Payload & | payload () |
| const Payload & | payload () const |
| const char * | payloadBuffer () const |
Brief description of class still missing.
Full description of class still missing
| GpCoreTools::MessageRaw< Payload >::MessageRaw | ( | ) | [inline] |
: _head(sizeof(Payload)), _payload(), _tail() {}
| GpCoreTools::MessageRaw< Payload >::MessageRaw | ( | const Payload & | p | ) | [inline] |
: _head(sizeof(Payload)), _payload(p), _tail() {}
| void GpCoreTools::MessageRaw< Payload >::bigEndianValues | ( | ) | [inline] |
References GpCoreTools::MessageRawHeader::HeaderSize.
{
_head.bigEndianValues();
_payload.bigEndianValues();
_tail.add(reinterpret_cast<const char *>(_head.header()), MessageRawHeader::HeaderSize);
_tail.add(reinterpret_cast<const char *>(&_payload), sizeof(Payload));
}
| const char* GpCoreTools::MessageRaw< Payload >::buffer | ( | ) | const [inline] |
Referenced by TimeRequest::exec().
{return reinterpret_cast<const char *>(this);}
| const FletcherChecksum& GpCoreTools::MessageRaw< Payload >::checksum | ( | ) | const [inline] |
{return _tail;}
| const MessageRawHeader& GpCoreTools::MessageRaw< Payload >::header | ( | ) | const [inline] |
{return _head;}
| bool GpCoreTools::MessageRaw< Payload >::isBigEndianValid | ( | ) | const [inline] |
{
return _head.isValid() &&
_head.lengthBigEndian()==sizeof(Payload) &&
_head.isValid(_tail, payloadBuffer(), sizeof(Payload));
}
| bool GpCoreTools::MessageRaw< Payload >::isLittleEndianValid | ( | ) | const [inline] |
{
return _head.isValid() &&
_head.lengthLittleEndian()==sizeof(Payload) &&
_head.isValid(_tail, payloadBuffer(), sizeof(Payload));
}
| void GpCoreTools::MessageRaw< Payload >::littleEndianValues | ( | ) | [inline] |
References GpCoreTools::MessageRawHeader::HeaderSize.
Referenced by TimeRequest::exec().
{
_head.littleEndianValues();
_payload.littleEndianValues();
_tail.add(reinterpret_cast<const char *>(_head.header()), MessageRawHeader::HeaderSize);
_tail.add(reinterpret_cast<const char *>(&_payload), sizeof(Payload));
}
| Payload& GpCoreTools::MessageRaw< Payload >::payload | ( | ) | [inline] |
Referenced by TimeRequest::exec().
{return _payload;}
| const Payload& GpCoreTools::MessageRaw< Payload >::payload | ( | ) | const [inline] |
{return _payload;}
| const char* GpCoreTools::MessageRaw< Payload >::payloadBuffer | ( | ) | const [inline] |
{return reinterpret_cast<const char *>(&_payload);}