Open Lighting Architecture
|
Calculate the number of repeats of a group required, given a certain number of tokens.
Public Types | |
enum | calculator_state { INSUFFICIENT_TOKENS, EXTRA_TOKENS, NO_VARIABLE_GROUPS, SINGLE_VARIABLE_GROUP, MULTIPLE_VARIABLE_GROUPS, NESTED_VARIABLE_GROUPS, MISMATCHED_TOKENS } |
Public Member Functions | |
bool | Descend () const |
calculator_state | CalculateGroupSize (unsigned int token_count, const class ola::messaging::Descriptor *, unsigned int *group_repeat_count) |
void | Visit (const ola::messaging::BoolFieldDescriptor *) |
void | Visit (const ola::messaging::IPV4FieldDescriptor *) |
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 |
GroupSizeCalculator::calculator_state ola::rdm::GroupSizeCalculator::CalculateGroupSize | ( | unsigned int | token_count, |
const class ola::messaging::Descriptor * | , | ||
unsigned int * | group_repeat_count | ||
) |
Figure out the number of group repetitions required.
This method is not re-entrant.
descriptor | The descriptor to use to build the Message |