|
PARTONS/ElementaryUtils
|
Basic utility softwares (Logger, threads, etc)
|
![]() |
Object defining a list of pieces of data (of common Parameter type). More...
Public Member Functions | |
| Parameters () | |
| Parameters (const std::string &key, const GenericType &value) | |
| Parameters (const Parameter ¶meter) | |
| virtual | ~Parameters () |
| void | add (const std::string &key, const GenericType &value) |
| void | add (const Parameter ¶meter) |
| void | add (const Parameters ¶meters) |
| bool | isAvailable (const std::string ¶meterName) const |
| size_t | size () const |
| void | clear () |
| Parameter | operator() (const std::string &key) const |
| virtual std::string | toString () const |
| bool | update (const std::string &key, const GenericType &value) |
| bool | update (const std::string &key, const Parameter ¶meter) |
| bool | remove (const std::string &key) |
| const Parameter & | get (const std::string &key) const |
| const Parameter & | getLastAvailable () const |
| std::string | key (size_t index) const |
| Care ! Use it after isAvailable() to ensure that the iterator is in the map range. More... | |
| std::string | stringValue (size_t index) const |
Private Attributes | |
| std::map< std::string, Parameter > | m_parameters |
| std::map< std::string, Parameter >::const_iterator | m_it |
Object defining a list of pieces of data (of common Parameter type).
Each member of the list is uniquely identified by its name.
| ElemUtils::Parameters::Parameters | ( | ) |
| ElemUtils::Parameters::Parameters | ( | const std::string & | key, |
| const GenericType & | value | ||
| ) |
| ElemUtils::Parameters::Parameters | ( | const Parameter & | parameter | ) |
|
virtual |
| void ElemUtils::Parameters::add | ( | const Parameter & | parameter | ) |
| void ElemUtils::Parameters::add | ( | const Parameters & | parameters | ) |
| void ElemUtils::Parameters::add | ( | const std::string & | key, |
| const GenericType & | value | ||
| ) |
| void ElemUtils::Parameters::clear | ( | ) |
| const Parameter & ElemUtils::Parameters::get | ( | const std::string & | key | ) | const |
| const Parameter & ElemUtils::Parameters::getLastAvailable | ( | ) | const |
| bool ElemUtils::Parameters::isAvailable | ( | const std::string & | parameterName | ) | const |
| std::string ElemUtils::Parameters::key | ( | size_t | index | ) | const |
Care ! Use it after isAvailable() to ensure that the iterator is in the map range.
| Parameter ElemUtils::Parameters::operator() | ( | const std::string & | key | ) | const |
| bool ElemUtils::Parameters::remove | ( | const std::string & | key | ) |
| size_t ElemUtils::Parameters::size | ( | ) | const |
| std::string ElemUtils::Parameters::stringValue | ( | size_t | index | ) | const |
|
virtual |
| bool ElemUtils::Parameters::update | ( | const std::string & | key, |
| const GenericType & | value | ||
| ) |
| bool ElemUtils::Parameters::update | ( | const std::string & | key, |
| const Parameter & | parameter | ||
| ) |
|
mutableprivate |
|
private |