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

#include <ChunkProducer.h>

Inheritance diagram for ChunkAttribute:
DDD_AttributeObserver

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
 

Detailed Description

A ChunkAttribute maps a specific part of a chunk to a DataDirector attribute

Constructor & Destructor Documentation

ChunkAttribute ( ChunkDescription chunk)
inline

Constructor

~ChunkAttribute ( )
inline

Destructor

Member Function Documentation

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

Implements DDD_AttributeObserver.

Member Data Documentation

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)

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


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