Some exercise of keydata routines.
Some exercise of keydata routines.
#ifndef DEBUG
#define DEBUG
#endif
#include <stdio.h>
extern "C" int main()
{
assert(eq_case(keys->
get(
"key2"),
"value2"));
keys = myfile["section1"];
assert(keys != NULL);
assert(eq_case(keys->
get(
"key1"),
"this is value 1 quoted"));
keys = myfile["section2"];
assert(keys != NULL);
assert(eq_case(keys->
get(
"key1"),
"replaced value"));
return 0;
}
Top level include file for the GNU uCommon C++ core library.
Common namespace for all ucommon objects.
Data keys parsed from a keyfile.
const char * get(const char *id) const
Lookup a key value by it's id.
Traditional keypair config file parsing class.
keydata * get(const char *section) const
Get a keydata section name.