|
| MapReader (std::map< K, V > &target) |
|
void | setMap (std::map< K, V > &target) |
|
void | setKeySyntax (const std::string ®Exp) |
| Defines the std::strings recognized (accepted) as keys. By default: [a-zA-Z][a-zA-Z0-9_\.]* TODO: make short/long spex strictness: -a –accept.
|
|
void | trim (std::string &s) |
|
void | read (const std::string &filename) |
|
void | read (std::istream &istr=std::cin) |
|
void | readConfigEntry (const std::string &line) |
|
void | readCommandLineEntry (const std::string &s) |
|
void | readPendingCommandLineArgument (const std::string &s) |
|
void | readEntry (const std::string &line, drain::RegExp ®Exp) |
|
void | read (int argc, char **argv) |
|
const std::string & | getKey () |
|
const std::string & | getValue () |
|
bool | hasArgument () |
|
template<class K, class V>
class drain::MapReader< K, V >
General utility for reading text entries of type KEY=VALUE into a map.
TODO: separate from maps, allow user to assign map[key]=value because key maybe an alias of another (longer) key.