Open Lighting Architecture  0.9.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
ola::MapVariable< Type > Class Template Reference
Inheritance diagram for ola::MapVariable< Type >:
ola::BaseVariable

Public Member Functions

 MapVariable (const std::string &name, const std::string &label)
void Remove (const std::string &key)
void Set (const std::string &key, Type value)
Type & operator[] (const std::string &key)
const std::string Value () const
 Return the value of the variable as a string.
const std::string Label () const
template<>
const std::string Value () const
 Return the value of the variable as a string.
- Public Member Functions inherited from ola::BaseVariable
 BaseVariable (const std::string &name)
 Create a new BaseVariable.
virtual ~BaseVariable ()
const std::string Name () const
 Return the name of this variable.

Protected Attributes

std::map< std::string, Type > m_variables

Member Function Documentation

template<typename Type >
void ola::MapVariable< Type >::Remove ( const std::string &  key)

Remove a value from the map

Parameters
keythe key to remove
template<typename Type >
const std::string ola::MapVariable< Type >::Value ( ) const
inlinevirtual

Return the value of the variable as a string.

Returns
the value of the variable.

Implements ola::BaseVariable.

template<>
const std::string ola::MapVariable< std::string >::Value ( ) const
inlinevirtual

Return the value of the variable as a string.

Returns
the value of the variable.

Implements ola::BaseVariable.


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