Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::rdm::StaticGroupTokenCalculator Class Reference

Detailed Description

This calculates the required nmuber of tokens for a group which contains no variable-sized groups.

Inheritance diagram for ola::rdm::StaticGroupTokenCalculator:
Inheritance graph
[legend]
Collaboration diagram for ola::rdm::StaticGroupTokenCalculator:
Collaboration graph
[legend]

Public Member Functions

bool Descend () const
bool CalculateTokensRequired (const class ola::messaging::FieldDescriptorGroup *, unsigned int *token_count)
void Visit (const ola::messaging::BoolFieldDescriptor *)
void Visit (const ola::messaging::IPV4FieldDescriptor *)
void Visit (const ola::messaging::MACFieldDescriptor *)
void Visit (const ola::messaging::UIDFieldDescriptor *)
void Visit (const ola::messaging::StringFieldDescriptor *)
void Visit (const ola::messaging::UInt8FieldDescriptor *)
void Visit (const ola::messaging::UInt16FieldDescriptor *)
void Visit (const ola::messaging::UInt32FieldDescriptor *)
void Visit (const ola::messaging::Int8FieldDescriptor *)
void Visit (const ola::messaging::Int16FieldDescriptor *)
void Visit (const ola::messaging::Int32FieldDescriptor *)
void Visit (const ola::messaging::FieldDescriptorGroup *)
void PostVisit (const ola::messaging::FieldDescriptorGroup *)
- Public Member Functions inherited from ola::messaging::FieldDescriptorVisitor
virtual void Visit (const IntegerFieldDescriptor< uint8_t > *)=0
virtual void Visit (const IntegerFieldDescriptor< uint16_t > *)=0
virtual void Visit (const IntegerFieldDescriptor< uint32_t > *)=0
virtual void Visit (const IntegerFieldDescriptor< int8_t > *)=0
virtual void Visit (const IntegerFieldDescriptor< int16_t > *)=0
virtual void Visit (const IntegerFieldDescriptor< int32_t > *)=0

Member Function Documentation

bool ola::rdm::StaticGroupTokenCalculator::CalculateTokensRequired ( const class ola::messaging::FieldDescriptorGroup descriptor,
unsigned int *  token_count 
)

For a group of fields, figure out the number of inputs required to build a single instance of the group. This assumes that the group does not contain any variable-sized groups but it may contain fixed sized nested groups.

Parameters
descriptorthe group descriptor
token_countthe number of inputs required to build a single instance of this group.
Returns
true if we could calculate the inputs required, false if this group was of a variable size.

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