87 ifstream * _keys_file ;
88 string _keys_file_name ;
89 map<string,vector<string> > *_the_keys ;
92 static vector<string> KeyList ;
93 static bool LoadedKeys(
const string &key_file ) ;
96 void initialize_keys() ;
98 bool break_pair(
const char* b,
102 bool only_blanks(
const char *line ) ;
103 void load_include_files(
const string &files ) ;
104 void load_include_file(
const string &file ) ;
107 map<
string,vector<string> > *keys ) ;
109 BESKeys(
const string &keys_file_name ) ;
115 void set_key(
const string &key,
const string &val,
116 bool addto =
false ) ;
117 void set_key(
const string &pair ) ;
118 void get_value(
const string& s,
string &val,
120 void get_values(
const string& s, vector<string> &vals,
123 typedef map< string, vector< string > >::const_iterator
Keys_citer ;
127 virtual void dump( ostream &strm )
const ;
virtual void dump(ostream &strm) const
dumps information about this object
~BESKeys()
cleans up the key/value pair mapping
Base object for bes objects.
void set_key(const string &key, const string &val, bool addto=false)
allows the user to set key/value pairs from within the application.
mapping of key/value pairs defining different behaviors of an application.
void get_value(const string &s, string &val, bool &found)
Retrieve the value of a given key, if set.
void get_values(const string &s, vector< string > &vals, bool &found)
Retrieve the values of a given key, if set.
map< string, vector< string > >::const_iterator Keys_citer