Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
ola::messaging::IntegerFieldDescriptor< type > Singleton Reference

Detailed Description

template<typename type>
singleton ola::messaging::IntegerFieldDescriptor< type >

A FieldDescriptor that represents an integer type.

Intervals are closed (include the endpoints).

Inheritance diagram for ola::messaging::IntegerFieldDescriptor< type >:
Inheritance graph
Collaboration diagram for ola::messaging::IntegerFieldDescriptor< type >:
Collaboration graph

Public Types

typedef std::pair< type, type > Interval
typedef std::vector< std::pair
< type, type > > 
typedef std::map< std::string,
type > 

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

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