configuration file reader More...
#include <AmConfigReader.h>
Public Member Functions | |
| int | loadFile (const string &path) |
| int | loadPluginConf (const string &mod_name) |
| bool | getMD5 (const string &path, string &md5hash, bool lowercase=true) |
| void | setParameter (const string ¶m, const string &val) |
| void | eraseParameter (const string ¶m) |
| bool | hasParameter (const string ¶m) |
| const string & | getParameter (const string ¶m) |
| const string & | getParameter (const string ¶m, const string &defval) |
| unsigned int | getParameterInt (const string ¶m, unsigned int defval=0) |
|
std::map< string, string > ::const_iterator | begin () const |
|
std::map< string, string > ::const_iterator | end () const |
configuration file reader
Reads configuration file into internal map, which subsequently can be queried for the value of specific configuration values.
| bool AmConfigReader::getMD5 | ( | const string & | path, | |
| string & | md5hash, | |||
| bool | lowercase = true | |||
| ) |
get md5 hash of file contents
References char2hex().
1.7.1