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

Protected Attributes

map< string, Type > m_variables

Member Function Documentation

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

Remove a value from the map

Parameters
keythe key to remove
template<>
const string ola::MapVariable< string >::Value ( ) const
virtual

Return the value of the variable as a string.

Returns
the value of the variable.

Implements ola::BaseVariable.

template<typename Type >
const string ola::MapVariable< Type >::Value ( ) const
virtual

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 files: