List of all members.
Public Member Functions |
void | init (int argc, char **argv) |
const char * | get (const char *key) |
void | put (const char *key, const char *value) |
const char * | getn (const char *namespc, const char *key) |
void | putn (const char *namespc, const char *key, const char *value) |
Private Member Functions |
int | chkptr (void *ptr, char *prefix0, char *prefix1) |
void | insert (const char *key, const char *value) |
void | remove (const char *key) |
Private Attributes |
StringHash * | hash |
Member Function Documentation
int StpMap::chkptr |
( |
void * |
ptr, |
|
|
char * |
prefix0, |
|
|
char * |
prefix1 |
|
) |
| [private] |
Check this pointer for NULL-ness, if it is print out the two strings catenated.
void StpMap::insert |
( |
const char * |
key, |
|
|
const char * |
value |
|
) |
| [private] |
Insert a particular key and value.
Remove the entry given by "key" from the Map.
Initialize with C-style command line arguments.
Return the value keyed to the commandline argument name, or return NULL if no such argument was given. Note that if the argument name was given without a value an empty string will be returned.
void StpMap::put |
( |
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
Put a value into stovepipe.
const char* StpMap::getn |
( |
const char * |
namespc, |
|
|
const char * |
key |
|
) |
| |
By convention, namespaces for arguments are designated with a selected prefix in front of the argument name separated by a dash. For example: myprog --myNamespace-myArgName argValue. stp_getn is a convenience function that enforces that convention. This call is equivalent to stp_get(strcat(strcat(namespace, "-"),argName)).
void StpMap::putn |
( |
const char * |
namespc, |
|
|
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
Put a value into stovepipe.
The documentation for this class was generated from the following file: