1 #ifndef TABLE_CONFIGURATOR_CLASS
2 #define TABLE_CONFIGURATOR_CLASS
25 class table_o_string_tables;
75 table_o_string_tables *_real_table;
Provides a dynamically resizable ASCII character string.
Provides a base class for configuration repositories.
treatment_of_defaults behavior() const
observes the behavior chosen for the load() function.
Supports the configurator interface using a collection of string tables.
virtual bool delete_entry(const basis::astring §ion, const basis::astring &entry)
removes the entry specified by the "section" and "entry" name.
virtual bool put(const basis::astring §ion, const basis::astring &entry, const basis::astring &to_store)
implements the configurator storage function.
table_configurator(treatment_of_defaults behavior=AUTO_STORE)
Constructor just needs to know what to do for missing items.
DEFINE_CLASS_NAME("table_configurator")
virtual void sections(structures::string_array &list)
retrieves the section names into "list".
virtual bool delete_section(const basis::astring §ion)
removes the entire "section" specified.
virtual bool get(const basis::astring §ion, const basis::astring &entry, basis::astring &found)
implements the configurator retrieval function.
virtual bool section_exists(const basis::astring §ion)
true if the "section" is presently in the table config.
virtual bool put_section(const basis::astring §ion, const structures::string_table &info)
writes a table called "info" into the "section" held here.
virtual bool get_section(const basis::astring §ion, structures::string_table &info)
reads the entire table held under "section" into a table called "info".
table_configurator & operator=(const table_configurator &to_copy)
virtual ~table_configurator()
An array of strings with some additional helpful methods.
Provides a symbol_table that holds strings as the content.