DataDirector API
Public Member Functions | Protected Attributes | List of all members
DIS_Producer Class Reference

#include <DIS_Producer.h>

Inheritance diagram for DIS_Producer:
ChunkProducer DDD_AttributeContainer DDD_Base DDD_AttributeObserver DDD_LogFacade

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 ()
 
ChunkAttributeFindAttributeByName (std::string &name)
 
ChunkDescriptionFindChunkDescriptionByName (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 &params)
 
virtual DDD_AttributeListGetParams ()
 

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)
 

Detailed Description

DIS Producer class

Constructor & Destructor Documentation

Constructor

Member Function Documentation

virtual int BuildMessage ( unsigned char *  msgBuf,
unsigned int  maxMessageLength,
unsigned int  chunkNumber 
)
virtual

Builds an outbound message buffer. Only implemented by ChunkProducers that send data.

Parameters
msgBufA buffer to contain the message
maxMessageLengthThe max length of the message to build
Returns
The length of the message built or -1 if no message built

Reimplemented from ChunkProducer.

virtual void OnAttributeChanged ( DDD_AttributeBase attribute)
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

Parameters
attributeA pointer to the attribute that changed

Reimplemented from ChunkProducer.

virtual void ProcessMessage ( unsigned char *  msgBuf,
unsigned int  receivedLength 
)
virtual

Processes an inbound message, classifying it into chunks and then updating their associated attributes.

Parameters
msgBufA buffer containing a message
receivedLengthThe length of the received message

Reimplemented from ChunkProducer.

virtual void Start ( )
virtual

Perform any producer specific initialization

Reimplemented from ChunkProducer.

Member Data Documentation

std::map<unsigned int,ChunkDescription*> _datumIDMap
protected

Map of datum IDs to ChunkProducers

DDD_AttributeUInt* _destEntity
protected

Destination DIS Entity

DDD_AttributeUInt* _destHost
protected

Destination DIS Host

DDD_AttributeUInt* _destSite
protected

Destination DIS Site

DDD_AttributeUInt* _DISVersion
protected

DIS Version.

DDD_AttributeUInt* _exerciseID
protected

DIS Exercise ID.

DDD_AttributeUInt* _sourceEntity
protected

Source DIS Entity

DDD_AttributeUInt* _sourceHost
protected

Source DIS Host

DDD_AttributeUInt* _sourceSite
protected

Source DIS Site


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