Tools.h++ Class Reference

Table Of Contents
remove(const char* ky);
Removes the key and value pair that has a key which matches ky. This member function
may throw an RWFileErr exception.
RWBoolean
replaceValue(const RWCString& key,
const RWstoredValue newval,
RWstoredValue& oldVal);
Attempts to replace the RWstoredValue now associated with key by the value newval. If
successful, the previous value is returned by reference in oldVal; and the methed returns
TRUE. Otherwise, returns FALSE.
RWdiskTreeCompare
setComparison(RWdiskTreeCompare fun);
Changes the comparison function to fun and returns the old function. This function must
have prototype:
int yourFun(const char* key1, const char* key2, size_t N);
It should return a number less than zero, equal to zero, or greater than zero depending on
whether the first argument is less than, equal to or greater than the second argument,
respectively. The third argument is the key length. Possible choices (among others) are
strncmp() (the default), or strnicmp() (for case-independent comparisons).