Open Lighting Architecture: ola::MapVariable< Type > Class Template Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ola::MapVariable< Type > Class Template Reference
Inheritance diagram for ola::MapVariable< Type >:

## 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
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

## ◆ Remove()

template<typename Type>

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

Remove a value from the map

Parameters

  key | the key to remove

## ◆ Value() [1/2]

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.

## ◆ Value() [2/2]

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.

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

- include/ola/ExportMap.h