1 #ifndef REGISTRY_CONFIGURATOR_CLASS
2 #define REGISTRY_CONFIGURATOR_CLASS
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 class interface on the windows registry.
registry_configurator(registry_hives hive, treatment_of_defaults behavior)
creates a registry_configurator that stores entries into the "hive".
virtual bool put_section(const basis::astring §ion, const structures::string_table &info)
writes a table called "info" into the "section" in the INI file.
DEFINE_CLASS_NAME("registry_configurator")
basis::astring fix_section(const basis::astring §ion)
repairs malformed section names.
virtual ~registry_configurator()
virtual bool put(const basis::astring §ion, const basis::astring &entry, const basis::astring &to_store)
implements the configurator storage function.
virtual bool section_exists(const basis::astring §ion)
returns true if the "section" was found in the file.
void * translate_hive(registry_hives hive)
translates from our enum to the windows specific type for hives.
virtual bool get_section(const basis::astring §ion, structures::string_table &info)
reads the entire "section" into a table called "info".
virtual bool delete_entry(const basis::astring §ion, const basis::astring &entry)
removes the entry specified by the "section" and "entry" name.
registry_hives
the hives are major partitions of the registry.
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.
Provides a symbol_table that holds strings as the content.