Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/ini.h>
Classes | |
class | Iterator |
Public Member Functions | |
~File (void) | |
Section * | defaultSection (void) const |
Section * | get (const string &name) const |
Section * | operator[] (const string &name) const |
Static Public Member Functions | |
static File * | load (const sys::Path &path) throw (Exception) |
static File * | load (io::InStream *in) throw (Exception) |
Repressents a ".INI" file made of sections. To get the default section, either use the defaultSection() method or get the section wit an empty name.
elm::ini::File::~File | ( | void | ) |
Load the ".INI" file from the given path.
path | Path to load ".INI" from. |
Exception | For any error (IO or format). |
References elm::io::in, elm::sys::SystemException::message(), and elm::sys::System::readFile().
|
static |
Load the ".INI" file from the given input stream.
in | stream to read file from. |
Exception | For any error (IO or format). |
References elm::_, defaultSection(), elm::io::in, elm::String::indexOf(), elm::String::length(), elm::MessageException::message(), elm::ini::Section::name(), elm::genstruct::AssocList< K, T, C, E, N >::put(), elm::io::Input::scanLine(), and elm::String::substring().