Class key
The key class defines the system key value. Since the database allows
having identical keys, the key class differentiates between them.
There is a define in the dataman.hh include file the defines 'KEY' as
the value of the key from the last operated on index. The minimum size
of a key is one character, and the maximum is 32.
Constructors
#include <dataman/dataman.hh>
Construct an empty key
key()
Construct a key from another key.
key(key &k)
Operators
Assign a string to a key. If using a key assigned this way the index
will return the lowest order matching key.
void operator=(char *s);
Assign a key from another key. When using a key assigned this way, the
index will return that specific occurance of that key.
void operator=(key& k);
Cast operator. This will implicitly cast a key to a const char * for use
in copying and other functions and operations that require it.
Return the string representation of the key.
operator const char *() const