DataDirector API
Public Member Functions | Protected Member Functions | List of all members
RawProducer Class Reference
Inheritance diagram for RawProducer:
ChunkProducer DDD_AttributeContainer DDD_Base DDD_AttributeObserver DDD_LogFacade

Public Member Functions

 RawProducer ()
 
virtual void ProcessMessage (unsigned char *msgBuf, unsigned int receivedLength)
 
virtual int BuildMessage (unsigned char *msgBuf, unsigned int maxMessageLength, unsigned int chunkNumber)
 
- 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)
 
virtual void Start ()
 
- 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 Member Functions

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

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 Attributes inherited from ChunkProducer
unsigned int _packetCount
 
unsigned int _debugMode
 
bool _checkForChangeBeforeUpdate
 
- Protected Attributes inherited from DDD_Base
std::string _instanceName
 
DDD_AttributeList _params
 

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)
protectedvirtual

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.


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