Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::ini::File Class Reference

#include <elm/ini.h>

Classes

class  Iterator
 

Public Member Functions

 ~File (void)
 
SectiondefaultSection (void) const
 
Sectionget (const string &name) const
 
Sectionoperator[] (const string &name) const
 

Static Public Member Functions

static Fileload (const sys::Path &path) throw (Exception)
 
static Fileload (io::InStream *in) throw (Exception)
 

Detailed Description

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.

Constructor & Destructor Documentation

elm::ini::File::~File ( void  )

Member Function Documentation

Section * elm::ini::File::defaultSection ( void  ) const

Referenced by load().

Section* elm::ini::File::get ( const string name) const
File * elm::ini::File::load ( const sys::Path path)
throw (Exception
)
static

Load the ".INI" file from the given path.

Parameters
pathPath to load ".INI" from.
Returns
Created INI file.
Exceptions
ExceptionFor any error (IO or format).

References elm::io::in, elm::sys::SystemException::message(), and elm::sys::System::readFile().

File * elm::ini::File::load ( io::InStream in)
throw (Exception
)
static

Load the ".INI" file from the given input stream.

Parameters
instream to read file from.
Returns
Created INI file.
Exceptions
ExceptionFor 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().

Section* elm::ini::File::operator[] ( const string name) const

The documentation for this class was generated from the following files: