Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A set of key/value pairs usually used to associate generic information, tags, attributes etc. to another class. More...
#include <KeyValues.hpp>
Public Member Functions | |
KeyValues () | |
bool | has (const String &key) const |
String | value (const String &key) const |
String & | set (const String &key) |
void | erase (const String &key) |
void | getKeys (std::vector< String > &keys) const |
void | clear () |
const std::map< String, String > & | keyValueMap () const |
std::map< String, String > & | keyValueMap () |
void | print () |
Protected Attributes | |
std::map< String, String > | mKeyValues |
A set of key/value pairs usually used to associate generic information, tags, attributes etc. to another class.
Definition at line 42 of file KeyValues.hpp.
KeyValues::KeyValues | ( | ) |
Definition at line 39 of file KeyValues.cpp.
References VL_DEBUG_SET_OBJECT_NAME.
bool vl::KeyValues::has | ( | const String & | key ) | const [inline] |
Definition at line 49 of file KeyValues.hpp.
Definition at line 44 of file KeyValues.cpp.
References vl::Log::error(), and mKeyValues.
Referenced by vl::Image::contrastHounsfieldAuto().
Definition at line 53 of file KeyValues.hpp.
void vl::KeyValues::erase | ( | const String & | key ) | [inline] |
Definition at line 55 of file KeyValues.hpp.
void KeyValues::getKeys | ( | std::vector< String > & | keys ) | const |
Definition at line 56 of file KeyValues.cpp.
References mKeyValues.
void vl::KeyValues::clear | ( | ) | [inline] |
Definition at line 59 of file KeyValues.hpp.
Referenced by vl::Molecule::reset().
Definition at line 61 of file KeyValues.hpp.
Definition at line 63 of file KeyValues.hpp.
void KeyValues::print | ( | ) |
Definition at line 63 of file KeyValues.cpp.
References mKeyValues, and vl::Log::print().
std::map<String,String> vl::KeyValues::mKeyValues [protected] |
Definition at line 68 of file KeyValues.hpp.