INIFile Class Reference

INI File class. More...

#include <inifile.h>

List of all members.

Public Member Functions

 INIFile ()
 Empty constructor.
bool OpenFile (const char *const fname)
 Loads given INI file.
 ~INIFile ()
 Destructor.
INISectionGetSection (const char *const name) const
 Gets pointer to requested section.
INISectionoperator[] (const char *const name) const
 [] operator : alias for GetSection().
unsigned GetLength () const

Detailed Description

INI File class.

Definition at line 15 of file inifile.h.


Constructor & Destructor Documentation

INIFile::INIFile (  ) 

Empty constructor.

Definition at line 17 of file inifile.cpp.

INIFile::~INIFile (  ) 

Destructor.

Deletes loaded INI file (if any)

Definition at line 190 of file inifile.cpp.


Member Function Documentation

unsigned INIFile::GetLength (  )  const
Returns:
number of sections in the file.

Definition at line 223 of file inifile.cpp.

INISection * INIFile::GetSection ( const char *const   name  )  const

Gets pointer to requested section.

Parameters:
name Name of the section to get. Must be a valid, zero terminated string.
Returns:
pointer to requested section if the section exists.
NULL if the section does not exist.

Definition at line 203 of file inifile.cpp.

bool INIFile::OpenFile ( const char *const   fname  ) 

Loads given INI file.

Parameters:
fname Filename of the file to load. Must be a valid, zero terminated string.
Returns:
true if the file is succesfully loaded.
false if the file does not exist, can not be accessed or is otherwise invalid.

Definition at line 22 of file inifile.cpp.

INISection * INIFile::operator[] ( const char *const   name  )  const

[] operator : alias for GetSection().

Parameters:
name Name of the section to get. Must be a valid, zero terminated string.
Returns:
pointer to requested section if the section exists.
NULL if the section does not exist.

Definition at line 218 of file inifile.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Defines

Generated by  doxygen 1.6.2