IniSection Class Reference

Represent a section in a .ini file. More...

#include <iniparser.h>

Inheritance diagram for IniSection:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool parse (IniParser *parser)=0
 parse text starting right after the "]" token.
virtual void print (FILE *f)
 This method helps IniParser::dumpExampleFile() to do it's job.
virtual ~IniSection ()

Public Attributes

const char * name


Detailed Description

Represent a section in a .ini file.

Grammatical, lexical and semantical information about a .ini section. A section in the .ini file begins by [ section_name ]

Definition at line 26 of file iniparser.h.


Constructor & Destructor Documentation

virtual IniSection::~IniSection (  )  [inline, virtual]

Definition at line 42 of file iniparser.h.


Member Function Documentation

virtual bool IniSection::parse ( IniParser parser  )  [pure virtual]

parse text starting right after the "]" token.

The parser object should be used to read the file in order to remove comments correctly and to count lines. Once parsed, this method do something usefull with the data.

Implemented in ParamSection.

virtual void IniSection::print ( FILE *  f  )  [inline, virtual]

This method helps IniParser::dumpExampleFile() to do it's job.

It prints an example section.

Reimplemented in ParamSection.

Definition at line 40 of file iniparser.h.

References name.


Member Data Documentation

const char* IniSection::name


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

Generated on Tue Mar 30 15:53:25 2010 for Polyora by  doxygen 1.5.9