#include <keydata.h>
Inheritance diagram for ucommon::keydata:
Public Types | |
typedef linked_pointer< keyvalue > | iterator |
Convenience typedef for iterative pointer. | |
Public Member Functions | |
keyvalue * | begin (void) |
Get first value object, for iterative examinations. | |
void | clear (char *id) |
Remove a keyword id from the keydata structure. | |
keyvalue * | end (void) |
Get last value object, for iterative examinations. | |
char * | get (void) |
Get the name of this section. | |
char * | get (char *id) |
Lookup a key value by it's id. | |
char * | operator() (char *id) |
Lookup a key value by it's id. | |
void | set (char *id, char *value) |
Set a keyword and value in the keydata structure. | |
Friends | |
class | keyfile |
class | keyvalue |
Data Structures | |
class | keyvalue |
A key value set is used for iterative access. More... |
This is a specific [] section from a fully loaded keyfile, and offers common means to access data members. This is related to the original GNU Common C++ keydata object, although it is formed in a keyfile class which is loaded from a config file all at once.
Definition at line 57 of file keydata.h.
keyvalue* ucommon::keydata::begin | ( | void | ) | [inline] |
void ucommon::keydata::clear | ( | char * | id | ) |
Remove a keyword id from the keydata structure.
Removed items still use pager allocated memory.
id | to remove. |
keyvalue* ucommon::keydata::end | ( | void | ) | [inline] |
char* ucommon::keydata::get | ( | void | ) | [inline] |
char* ucommon::keydata::get | ( | char * | id | ) |
Lookup a key value by it's id.
id | to look for. |
char* ucommon::keydata::operator() | ( | char * | id | ) | [inline] |
void ucommon::keydata::set | ( | char * | id, | |
char * | value | |||
) |
Set a keyword and value in the keydata structure.
If the keyword already exists, it is replaced. Removed items still use pager allocated memory.
id | to set. | |
value | for the id. |