Key Class Reference

Base for all real keys. More...

#include "keyvalue/key/Key.h"

Inheritance diagram for Key:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

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.


Constructor & Destructor Documentation

Key ( const string &  name  )  [protected]

Constructs a Key with a specific name.

Parameters:
name : The name.

Member Function Documentation

string getName (  )  const
void setName ( const string &  name  ) 

Sets name.

Parameters:
name : The name.

Generated on Sat Mar 20 15:08:30 2010 for KeyValue by  doxygen 1.6.1