11 #ifndef CONFIGMAPPING_H
12 #define CONFIGMAPPING_H
17 #ifndef ARB_STRARRAY_H
24 #ifndef _GLIBCXX_STRING
37 return find(entry) != end();
41 config_map::const_iterator found = find(entry);
42 return (found == end()) ?
NULp : found->second.c_str();
47 (*this)[entry] = value;
58 for (config_map::const_iterator e = begin(); e != end(); ++e) {
59 const string& config_name(e->first);
60 string value(e->second);
63 string entry = config_name+
"='"+value+
'\'';
68 result = result+
';'+entry;
74 for (config_map::const_iterator e = begin(); e != end(); ++e) {
76 to_array.
put(key.c_str());
86 #error ConfigMapping.h included twice
87 #endif // CONFIGMAPPING_H
void put(const char *elem)
void delete_entry(const char *entry)
return string(buffer, length)
std::map< std::string, std::string > config_map
bool has_entry(const char *entry) const
std::string config_string() const
void get_entries(class ConstStrArray &to_array)
static void encode_escapes(std::string &s, const char *to_escape)
static GB_ERROR decode_escapes(std::string &s)
void set_entry(const std::string &entry, const std::string &value)
GB_ERROR parseFrom(const std::string &configString)
const char * get_entry(const char *entry) const
GB_write_int const char s