Open Lighting Architecture
Latest Git
|
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 *descriptor, unsigned int *group_repeat_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 *) |
GroupSizeCalculator::calculator_state ola::rdm::GroupSizeCalculator::CalculateGroupSize | ( | unsigned int | token_count, |
const class ola::messaging::Descriptor * | descriptor, | ||
unsigned int * | group_repeat_count | ||
) |
Figure out the number of group repetitions required.
This method is not re-entrant.
token_count | the number of tokens supplied | |
descriptor | the descriptor to use to build the Message | |
[out] | group_repeat_count | the number of repeated groups |