Open Lighting Architecture
0.9.4
|
A FieldDescriptor that represents an integer type.
Intervals are closed (include the endpoints).
Public Types | |
typedef std::pair< type, type > | Interval |
typedef std::vector< std::pair < type, type > > | IntervalVector |
typedef std::map< std::string, type > | LabeledValues |
Public Member Functions | |
IntegerFieldDescriptor (const std::string &name, bool little_endian=false, int8_t multiplier=0) | |
IntegerFieldDescriptor (const std::string &name, const IntervalVector &intervals, const LabeledValues &labels, bool little_endian=false, int8_t multiplier=0) | |
bool | FixedSize () const |
bool | LimitedSize () const |
unsigned int | MaxSize () const |
int8_t | Multiplier () const |
bool | IsLittleEndian () const |
const IntervalVector & | Intervals () const |
bool | IsValid (type value) const |
const LabeledValues & | Labels () const |
bool | LookupLabel (const std::string &label, type *value) const |
const std::string | LookupValue (type value) const |
void | Accept (FieldDescriptorVisitor *visitor) const |
Public Member Functions inherited from ola::messaging::FieldDescriptor | |
FieldDescriptor (const std::string &name) | |
const std::string & | Name () const |