MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Protected Attributes
DtAssistantMsgHeaderReader Class Reference

The DtAssistantMsgHeaderReader class reads data from RTI Assistant message headers. More...

+ Inheritance diagram for DtAssistantMsgHeaderReader:
+ Collaboration diagram for DtAssistantMsgHeaderReader:

List of all members.

Public Member Functions

 DtAssistantMsgHeaderReader ()
virtual ~DtAssistantMsgHeaderReader ()
virtual bool isBundled (const char *msg, size_t size) const
 Whether the message is part of a bundle.
virtual void setBundled (char *msg, size_t size, bool bundled) const
 Set whether message is part of a bundle.
virtual bool isCompressed (const char *msg, size_t size) const
 Whether the message is compressed.
virtual void setCompressed (char *msg, size_t size, bool compressed) const
 Set whether message is compressed.
virtual bool hasMetadata (const char *msg, size_t size) const
 Whether the message contains metadata.
virtual bool getMessageHeader (char *msg, size_t size, char **hdr, size_t &hdrSize) const
 Get the location and size of the message header.
virtual bool getMessageBody (char *msg, size_t size, char **body, size_t &bodySize) const
 Get the location and size of the message body.
virtual bool getMessageTrailer (char *msg, size_t size, char **trlr, size_t &trlrSize) const
 Get the location and size of the message trailer (generally metadata).
virtual size_t messageSize (const char *msg, size_t size) const
 Determine the size of the whole message (including header and metadata)
virtual void setMessageSize (char *msg, size_t size, size_t newSize) const
 Sets the size of the whole message (including header and metadata)
virtual size_t bytesForSize () const
 Bytes of data required before message size can be determined.

Protected Attributes

size_t myBytesForSize
 Number of bytes needed to read the message size.
size_t myBytesForHeader
 Number of bytes needed for a full message header.

Detailed Description

The DtAssistantMsgHeaderReader class reads data from RTI Assistant message headers.


Constructor & Destructor Documentation


Member Function Documentation

size_t DtAssistantMsgHeaderReader::bytesForSize ( ) const [virtual]

Bytes of data required before message size can be determined.

Implements DtMsgHeaderReader.

References myBytesForSize.

bool DtAssistantMsgHeaderReader::getMessageBody ( char *  msg,
size_t  size,
char **  body,
size_t &  bodySize 
) const [virtual]

Get the location and size of the message body.

Returns false if the message contains no body.

Implements DtMsgHeaderReader.

References myBytesForHeader.

bool DtAssistantMsgHeaderReader::getMessageHeader ( char *  msg,
size_t  size,
char **  hdr,
size_t &  hdrSize 
) const [virtual]

Get the location and size of the message header.

Returns false if the message does not contain a full header.

Implements DtMsgHeaderReader.

References myBytesForHeader.

bool DtAssistantMsgHeaderReader::getMessageTrailer ( char *  msg,
size_t  size,
char **  trlr,
size_t &  trlrSize 
) const [virtual]

Get the location and size of the message trailer (generally metadata).

Returns false if the message does not contain a trailer.

Implements DtMsgHeaderReader.

bool DtAssistantMsgHeaderReader::hasMetadata ( const char *  msg,
size_t  size 
) const [virtual]

Whether the message contains metadata.

Implements DtMsgHeaderReader.

bool DtAssistantMsgHeaderReader::isBundled ( const char *  msg,
size_t  size 
) const [virtual]

Whether the message is part of a bundle.

Implements DtMsgHeaderReader.

bool DtAssistantMsgHeaderReader::isCompressed ( const char *  msg,
size_t  size 
) const [virtual]

Whether the message is compressed.

Implements DtMsgHeaderReader.

size_t DtAssistantMsgHeaderReader::messageSize ( const char *  msg,
size_t  size 
) const [virtual]

Determine the size of the whole message (including header and metadata)

Implements DtMsgHeaderReader.

References myBytesForSize, and DtNetAssistantMsgHeader::totalSize.

void DtAssistantMsgHeaderReader::setBundled ( char *  msg,
size_t  size,
bool  bundled 
) const [virtual]

Set whether message is part of a bundle.

Implements DtMsgHeaderReader.

void DtAssistantMsgHeaderReader::setCompressed ( char *  msg,
size_t  size,
bool  compressed 
) const [virtual]

Set whether message is compressed.

Implements DtMsgHeaderReader.

void DtAssistantMsgHeaderReader::setMessageSize ( char *  msg,
size_t  size,
size_t  newSize 
) const [virtual]

Sets the size of the whole message (including header and metadata)

Implements DtMsgHeaderReader.

References myBytesForSize, and DtNetAssistantMsgHeader::totalSize.


Member Data Documentation

Number of bytes needed for a full message header.

Referenced by DtAssistantMsgHeaderReader(), getMessageBody(), and getMessageHeader().

Number of bytes needed to read the message size.

Referenced by bytesForSize(), DtAssistantMsgHeaderReader(), messageSize(), and setMessageSize().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)