2#ifndef __ASE_INIFILE_HH__
3#define __ASE_INIFILE_HH__
14 void load_ini (
const String &inputname,
const String &data);
31 String *valuep = NULL)
const;
36 String *valuep = NULL)
const;
49 Section* find_section (
String name,
bool create);
50 size_t find_entry (Section §ion,
String name,
bool create);
Binary large object storage container.
Class to parse INI configuration file sections and values.
bool has_value(const String &dotpath, String *valuep=NULL) const
Check and possibly retrieve value if present.
bool has_raw_value(const String &dotpath, String *valuep=NULL) const
Check and possibly retrieve raw value if present.
StringS attributes(const String §ion) const
List all attributes available in section.
bool has_attribute(const String §ion, const String &key) const
Return if section contains key.
IniFile & operator=(const IniFile &source)
Assignment operator.
bool has_sections() const
Checks if IniFile is non-empty.
bool has_section(const String §ion) const
Check presence of a section.
static String cook_string(const String &input_string)
Unquote contents of input_string
StringS sections() const
List all sections.
String raw_value(const String &dotpath) const
Retrieve raw (uncooked) value of section.attribute[locale].
StringS raw_values() const
List all section.attribute=value pairs.
String value_as_string(const String &dotpath) const
Retrieve value of section.attribute[locale].
Class to write INI configuration file sections and values.
void set(String key, String value)
Set (or add) a value with INI file semantics: section.key = value.
String output()
Generate INI file syntax for all values store in the class.
The Anklang C++ API namespace.