|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
24 #include <elm/string.h>
25 #include <elm/data/ListMap.h>
26 #include <elm/data/Vector.h>
27 #include <elm/sys/Path.h>
29 namespace elm {
namespace ini {
42 inline const string&
name(
void)
const {
return _name; }
43 inline string get(
const string& key)
const {
return values.
get(key,
""); }
46 string get(
const string& key,
const string& def)
const;
47 int getInt(
const string& key,
int def);
53 inline const string&
key(
void)
const {
return item().fst; }
54 inline const string&
value(
void)
const {
return item().snd; }
71 inline Section *
get(
const string& name)
const {
return sects.
get(name, 0); }
Definition: MessageException.h:30
base_t::Iter PairIter
Definition: ListMap.h:33
Exception(const string &msg)
Definition: ini.h:33
Section * defaultSection(void) const
Definition: ini.h:70
int getInt(const string &key, int def)
Definition: ini.cpp:92
Iterator(Section *s)
Definition: ini.h:52
bool isDefined(const string &key) const
Definition: ini.h:45
~File(void)
Definition: ini.cpp:158
string get(const string &key) const
Definition: ini.h:43
typename type_info< T >::in_t in
Definition: type_info.h:283
static File * load(const sys::Path &path)
Definition: ini.cpp:170
Section * get(const string &name) const
Definition: ini.h:71
const string & key(void) const
Definition: ini.h:53
const string & value(void) const
Definition: ini.h:54
Section * operator[](const string &name) const
Definition: ini.h:72
Option< T > get(const K &k) const
Definition: ListMap.h:87
void getList(const string &key, Vector< string > &list)
Definition: ini.cpp:112
const string & name(void) const
Definition: ini.h:42
bool hasKey(const K &k) const
Definition: ListMap.h:91
string operator[](const string &key) const
Definition: ini.h:44
Definition: InStream.h:29
Iterator(File *file)
Definition: ini.h:76