Base for all real keys. More...
#include "keyvalue/key/Key.h"
Public Member Functions | |
string | getName () const |
Gets name. | |
void | setName (const string &name) |
Sets name. | |
Protected Member Functions | |
Key (const string &name) | |
Constructs a Key with a specific name. | |
Private Attributes | |
string | name_ |
Base for all real keys.
Every Key has a (string
) name, which is used by DataSet::getValue() for value look-up. The name must be provided on construction.
Instead of directly derive from this class
, any class
encapsulating information on keys must derive from Traits template
which, in turn, derives from this class
.
Key | ( | const string & | name | ) | [protected] |
Constructs a Key with a specific name.
name | : The name. |
string getName | ( | ) | const |
Gets name.
Reimplemented in Traits< ElementType, ConverterType, MapType >, Traits< ElementType, StdMatrix >, Traits< VectorOutputBase::Flag, StdSingle, FlagMap >, Traits< logger::Logger::Device, StdSingle, FlagMap >, Traits< ElementType, StdVector, NoMap >, Traits< double, StdSingle, NoMap >, Traits< string, StdVector >, Traits< unsigned int >, Traits< ElementType, StdSingle, NoMap >, Traits< string >, Traits< bool >, Traits< ElementType >, and Traits< ElementType, StdVector >.
void setName | ( | const string & | name | ) |
Sets name.
name | : The name. |