1 #ifndef CONFIGURATOR_CLASS
2 #define CONFIGURATOR_CLASS
Provides a dynamically resizable ASCII character string.
Provides a base class for configuration repositories.
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.
treatment_of_defaults behavior() const
observes the behavior chosen for the load() function.
void behavior(treatment_of_defaults new_behavior)
modifies the behavior of the load() function.
virtual bool get_section(const basis::astring &formal(section), structures::string_table &formal(found))
retrieves an entire "section", if supported by the derived object.
configurator(treatment_of_defaults behavior=RETURN_ONLY)
virtual bool delete_section(const basis::astring &formal(section))
whacks the entire "section" specified.
virtual bool delete_entry(const basis::astring &formal(section), const basis::astring &formal(entry))
eliminates the entry specified by the "section" and "entry" name.
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.
virtual bool put_section(const basis::astring &formal(section), const structures::string_table &formal(to_store))
stores an entire "section" from the table in "to_store", if supported.
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.
#define formal(parameter)
This macro just eats what it's passed; it marks unused formal parameters.