Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
ola::messaging::IntegerFieldDescriptor< type > Class Template Reference

Detailed Description

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

A FieldDescriptor that represents an integer type.

Intervals are closed (include the endpoints).

Inheritance diagram for ola::messaging::IntegerFieldDescriptor< type >:
ola::messaging::FieldDescriptor ola::messaging::FieldDescriptorInterface

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
 
- Public Member Functions inherited from ola::messaging::FieldDescriptorInterface

Member Function Documentation

◆ Accept()

template<typename type >
void ola::messaging::IntegerFieldDescriptor< type >::Accept ( FieldDescriptorVisitor * visitor) const
inlinevirtual

◆ FixedSize()

template<typename type >
bool ola::messaging::IntegerFieldDescriptor< type >::FixedSize ( ) const
inlinevirtual

◆ LimitedSize()

template<typename type >
bool ola::messaging::IntegerFieldDescriptor< type >::LimitedSize ( ) const
inlinevirtual

◆ MaxSize()

template<typename type >
unsigned int ola::messaging::IntegerFieldDescriptor< type >::MaxSize ( ) const
inlinevirtual

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