1 #ifndef SECTION_MANAGER_CLASS
2 #define SECTION_MANAGER_CLASS
Provides a dynamically resizable ASCII character string.
Root object for any class that knows its own name.
Provides a base class for configuration repositories.
Tracks a collection of related configurations in a configurator.
basis::astring make_section_heading(const basis::astring §ion)
provides the appropriate heading string for the "section" name.
DEFINE_CLASS_NAME("section_manager")
bool get_section_names(structures::string_array §ions)
loads the "sections" array with all section names.
section_manager(configurator &config, const basis::astring &toc_title, const basis::astring &header_prefix)
creates a section_manager that uses the "config" for storage.
bool add_section(const basis::astring §ion_name, const structures::string_table &to_add)
stores a new section for "section_name" using the table "to_add".
bool get_toc(structures::string_table &toc)
reads the table of contents into "toc".
bool zap_section(const basis::astring §ion_name)
removes the data for "section_name" from both the config and TOC.
bool section_exists(const basis::astring §ion_name)
returns true if the section called "section_name" exists in the config.
bool replace_section(const basis::astring §ion, const structures::string_table &replacement)
replaces the contents of "section" with the "replacement" table.
bool find_section(const basis::astring §ion_name, structures::string_table &found)
loads the data from "section_name" into the table "found".
configurator & config()
allows access to the configurator we operate on.
An array of strings with some additional helpful methods.
Provides a symbol_table that holds strings as the content.