Elm
2
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) |
static File * | load (io::InStream *in) |
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.
References ListMap< K, T, C, E, A >::items().
Referenced by File::load().
References ListMap< K, T, C, E, A >::get().
Referenced by File::operator[]().
Load the ".INI" file from the given path.
path | Path to load ".INI" from. |
Exception | For any error (IO or format). |
References SystemException::message(), and 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::_, File::defaultSection(), String::indexOf(), String::length(), MessageException::message(), Section::name(), elm::io::p(), ListMap< K, T, C, E, A >::put(), Input::scanLine(), and String::substring().
References File::get().