DataDirector API
|
#include <ChunkProducer.h>
Public Member Functions | |
void | OnAttributeChanged (DDD_AttributeBase *attribute) |
ChunkAttribute (ChunkDescription *chunk) | |
~ChunkAttribute () | |
Public Attributes | |
std::string | _name |
unsigned int | _offset |
unsigned int | _size |
bool | _bigEndian |
bool | _isBitfield |
unsigned int | _bitOffset |
unsigned int | _bitLength |
unsigned int | _bitMask |
bool | _attributeChanged |
ChunkDescription * | _chunk |
DDD_AttributeBase::DataType | _type |
DDD_AttributeBase * | _directorAttribute |
DDD_AttributeBase * | _initialValue |
A ChunkAttribute maps a specific part of a chunk to a DataDirector attribute
|
inline |
Constructor
|
inline |
Destructor
|
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 |
Implements DDD_AttributeObserver.
bool _attributeChanged |
Dirty flag used by ChunkProducers to determine if an attribute update needs to be sent
bool _bigEndian |
True if field is "big endian"
unsigned int _bitLength |
Length of the bitfield in bits. (optional)
unsigned int _bitMask |
Bitmask computed from offset and length (optional)
unsigned int _bitOffset |
Offset of the bitfield in bits relative to the start of this attribute (optional)
ChunkDescription* _chunk |
Pointer to the ChunkDescription that "owns" this ChunkAttribute
DDD_AttributeBase* _directorAttribute |
Pointer to the DataDirector attribute linked to this attribute
DDD_AttributeBase* _initialValue |
Initial value of field (optional)
bool _isBitfield |
True if attribute is a bitfield
std::string _name |
Name of the attribute
unsigned int _offset |
Offset from beginning of packet
unsigned int _size |
Size of field in bytes
Representation of the data in the chunk