1 #ifndef INI_PARSER_CLASS
2 #define INI_PARSER_CLASS
Provides a dynamically resizable ASCII character string.
treatment_of_defaults behavior() const
observes the behavior chosen for the load() function.
Parses strings in the fairly well-known INI file format.
void add(const basis::astring &to_parse)
merges items parsed from "to_parse" into the current set.
ini_parser(const basis::astring &to_parse, treatment_of_defaults behavior=RETURN_ONLY)
constructs an ini_parser by parsing entries out of "to_parse".
void merge_section(const basis::astring §ion_name, const structures::string_table &to_merge)
merges the table "to_merge" into the "section_name".
bool well_formed() const
returns true if the ini file's contents were in the format expected.
bool restate(basis::astring &new_ini, bool add_spaces=false)
stores a cleaned version of the internal state into "new_ini".
Supports the configurator interface using a collection of string tables.
Provides a symbol_table that holds strings as the content.