32 if (!
get(section, entry, to_return)) {
33 to_return = default_string;
42{
return put(section, entry, to_store); }
67 if (!
get(section, entry, value_string)) {
71 return value_string.
convert(def_value);
Provides a dynamically resizable ASCII character string.
int convert(int default_value) const
Converts the string into a corresponding integer.
bool store(const basis::astring §ion, const basis::astring &entry, const basis::astring &to_store)
a synonym for put.
virtual bool put(const basis::astring §ion, const basis::astring &entry, const basis::astring &to_store)=0
Places an item into the configuration store.
virtual bool get_section(const basis::astring &formal(section), structures::string_table &formal(found))
retrieves an entire "section", if supported by the derived object.
virtual bool get(const basis::astring §ion, const basis::astring &entry, basis::astring &found)=0
Retrieves an item from the configuration store.
void section_set(structures::string_set &list)
similar to above, but stores section names into a set.
virtual void sections(structures::string_array &list)
retrieves the section names into "list".
virtual bool section_exists(const basis::astring §ion)
returns true if the "section" is found in the configurator.
basis::astring load(const basis::astring §ion, const basis::astring &entry, const basis::astring &default_value)
a synonym for get that implements the auto-store behavior.
An array of strings with some additional helpful methods.
A simple object that wraps a templated set of strings.
Provides a symbol_table that holds strings as the content.
The guards collection helps in testing preconditions and reporting errors.
A dynamic container class that holds any kind of object via pointers.