Open Lighting Architecture  0.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
ola::MapVariable< Type > Class Template Reference
Inheritance diagram for ola::MapVariable< Type >:
Inheritance graph
[legend]
Collaboration diagram for ola::MapVariable< Type >:
Collaboration graph
[legend]

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. More...
 
const std::string Label () const
 
template<>
const std::string Value () const
 Return the value of the variable as a string. More...
 
- Public Member Functions inherited from ola::BaseVariable
 BaseVariable (const std::string &name)
 Create a new BaseVariable. More...
 
virtual ~BaseVariable ()
 
const std::string Name () const
 Return the name of this variable. More...
 

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: