DataDirector API
|
#include <DIS_Producer.h>
Public Member Functions | |
DIS_Producer () | |
virtual void | ProcessMessage (unsigned char *msgBuf, unsigned int receivedLength) |
virtual int | BuildMessage (unsigned char *msgBuf, unsigned int maxMessageLength, unsigned int chunkNumber) |
virtual void | OnAttributeChanged (DDD_AttributeBase *attribute) |
virtual void | Start () |
Public Member Functions inherited from ChunkProducer | |
ChunkProducer () | |
~ChunkProducer () | |
ChunkAttribute * | FindAttributeByName (std::string &name) |
ChunkDescription * | FindChunkDescriptionByName (std::string &name) |
void | SetDebugMode (unsigned int debugMode) |
void | SetCheckForChangeBeforeUpdate (const bool value) |
Public Member Functions inherited from DDD_Base | |
DDD_Base () | |
virtual | ~DDD_Base () |
const char * | GetInstanceName () const |
virtual void | SetInstanceName (const char *name) |
virtual void | SetParams (const DDD_AttributeList ¶ms) |
virtual DDD_AttributeList & | GetParams () |
Protected Attributes | |
DDD_AttributeUInt * | _exerciseID |
DDD_AttributeUInt * | _DISVersion |
DDD_AttributeUInt * | _sourceSite |
DDD_AttributeUInt * | _sourceHost |
DDD_AttributeUInt * | _sourceEntity |
DDD_AttributeUInt * | _destSite |
DDD_AttributeUInt * | _destHost |
DDD_AttributeUInt * | _destEntity |
std::map< unsigned int, ChunkDescription * > | _datumIDMap |
Protected Attributes inherited from ChunkProducer | |
unsigned int | _packetCount |
unsigned int | _debugMode |
bool | _checkForChangeBeforeUpdate |
Protected Attributes inherited from DDD_Base | |
std::string | _instanceName |
DDD_AttributeList | _params |
Additional Inherited Members | |
Static Public Member Functions inherited from ChunkProducer | |
static void | Swap2 (unsigned char *val) |
static void | Swap4 (unsigned char *val) |
static void | Swap8 (unsigned char *val) |
Static Public Member Functions inherited from DDD_LogFacade | |
static void | LogDebug (const char *format,...) |
static void | LogInfo (const char *format,...) |
static void | LogWarning (const char *format,...) |
static void | LogError (const char *format,...) |
Protected Member Functions inherited from ChunkProducer | |
void | ReadBitfield (ChunkAttribute *attr, unsigned char *msgBuf) |
void | ReadInt (ChunkAttribute *attr, unsigned char *msgBuf) |
void | ReadUInt (ChunkAttribute *attr, unsigned char *msgBuf) |
void | ReadDouble (ChunkAttribute *attr, unsigned char *msgBuf) |
void | ReadBoolean (ChunkAttribute *attr, unsigned char *msgBuf) |
void | ReadString (ChunkAttribute *attr, unsigned char *msgBuf) |
void | ReadChunk (ChunkDescription *chunk, unsigned char *msgBuf, unsigned int receivedLen) |
int | WriteBitfield (ChunkAttribute *attr, unsigned char *msgBuf) |
int | WriteInt (ChunkAttribute *attr, unsigned char *msgBuf) |
int | WriteUInt (ChunkAttribute *attr, unsigned char *msgBuf) |
int | WriteDouble (ChunkAttribute *attr, unsigned char *msgBuf) |
int | WriteBoolean (ChunkAttribute *attr, unsigned char *msgBuf) |
int | WriteString (ChunkAttribute *attr, unsigned char *msgBuf) |
int | WriteChunk (ChunkDescription *chunk, unsigned char *msgBuf, unsigned int maxLen) |
void | PrintDebugInfo (unsigned char *msgBuf, unsigned int receivedLength) |
DIS Producer class
DIS_Producer | ( | ) |
Constructor
|
virtual |
Builds an outbound message buffer. Only implemented by ChunkProducers that send data.
msgBuf | A buffer to contain the message |
maxMessageLength | The max length of the message to build |
Reimplemented from ChunkProducer.
|
virtual |
A callback method that will be called when the attribute being observed changes if this observer has registered to be notified on attribute change
attribute | A pointer to the attribute that changed |
Reimplemented from ChunkProducer.
|
virtual |
Processes an inbound message, classifying it into chunks and then updating their associated attributes.
msgBuf | A buffer containing a message |
receivedLength | The length of the received message |
Reimplemented from ChunkProducer.
|
virtual |
Perform any producer specific initialization
Reimplemented from ChunkProducer.
|
protected |
Map of datum IDs to ChunkProducers
|
protected |
Destination DIS Entity
|
protected |
Destination DIS Host
|
protected |
Destination DIS Site
|
protected |
DIS Version.
|
protected |
DIS Exercise ID.
|
protected |
Source DIS Entity
|
protected |
Source DIS Host
|
protected |
Source DIS Site