Library: Util
Package: Configuration
Header: Poco/Util/IniFileConfiguration.h
This implementation of a Configuration reads properties from a legacy Windows initialization (.ini) file.
The file syntax is implemented as follows.
The name of a property is composed of the section key and the value key, separated by a period (<section key>.<value key>).
Property names are not case sensitive. Leading and trailing whitespace is removed from both keys and values.
Direct Base Classes: AbstractConfiguration
All Base Classes: Poco::RefCountedObject, AbstractConfiguration
Member Functions: enumerate, getRaw, load, removeRaw, setRaw
Inherited Functions: createView, duplicate, enumerate, expand, getBool, getDouble, getInt, getRaw, getRawString, getString, has, hasOption, hasProperty, keys, parseBool, parseInt, referenceCount, release, remove, removeRaw, setBool, setDouble, setInt, setRaw, setRawWithEvent, setString
Creates an empty IniFileConfiguration.
IniFileConfiguration(
std::istream & istr
);
Creates an IniFileConfiguration and loads the configuration data from the given stream, which must be in initialization file format.
IniFileConfiguration(
const std::string & path
);
Creates an IniFileConfiguration and loads the configuration data from the given file, which must be in initialization file format.
void load(
std::istream & istr
);
Loads the configuration data from the given stream, which must be in initialization file format.
void load(
const std::string & path
);
Loads the configuration data from the given file, which must be in initialization file format.
void enumerate(
const std::string & key,
Keys & range
) const;
bool getRaw(
const std::string & key,
std::string & value
) const;
void removeRaw(
const std::string & key
);
void setRaw(
const std::string & key,
const std::string & value
);