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.
void setName | ( | const string & | name | ) |
Sets name.
name | : The name. |