Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Config_Section Class Reference

The configuration section. More...

#include <Fl_Config.h>

Inheritance diagram for Fl_Config_Section:

Fl_Config List of all members.

Public Methods

 Fl_Config_Section (const Fl_String &name, const Fl_String &path, Fl_Config_Section *par)
virtual ~Fl_Config_Section ()
virtual void clear ()
 Destroys all sections and entries.

Fl_Config_Section * parent () const
 Returns pointer to parent section, NULL for Fl_Config (root).

const Fl_Stringname () const
 Returns name of section, without path. More...

const Fl_Stringpath () const
 Returns path to section, without name. More...

const Fl_Config_Lineslines () const
 Returns const reference to entry map.

Fl_Config_Lineslines ()
 Returns reference to entry map.

const Fl_Config_Sectionssections () const
 Returns const reference to section list.

Fl_Config_Sectionssections ()
 Returns reference to section list.

Fl_Config_Section * find (const char *section_name, bool recursive=false) const
 Find section named 'name'. More...


Protected Methods

void write_section (int indent, FILE *fp) const
void add_entry (const Fl_String &key, const Fl_String &value)
bool remove_entry (const Fl_String &key)
Fl_Stringfind_entry (const char *key) const

Protected Attributes

Fl_Config_Section * m_parent
Fl_String m_name
Fl_String m_path
Fl_Config_Lines m_lines
Fl_Config_Sections m_sections

Friends

class Fl_Config

Detailed Description

The configuration section.

Represents one section in config (ini) file.

See also:
Fl_Config

Definition at line 72 of file Fl_Config.h.


Member Function Documentation

Fl_Config_Section* Fl_Config_Section::find const char *    section_name,
bool    recursive = false
const
 

Find section named 'name'.

Parameters:
section_name  name of section to find
recursive  set true to perform recursive search.

const Fl_String& Fl_Config_Section::name   const [inline]
 

Returns name of section, without path.

See also:
path()

Definition at line 93 of file Fl_Config.h.

const Fl_String& Fl_Config_Section::path   const [inline]
 

Returns path to section, without name.

See also:
name()

Definition at line 99 of file Fl_Config.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 15:33:47 2003 for eFLTK by doxygen1.2.15