Pol  Rev 533
ConfigSection Class Reference

#include <cfgsect.h>

+ Collaboration diagram for ConfigSection:

List of all members.

Public Member Functions

 ConfigSection (ConfigFile &cf, const std::string &sectname, unsigned flags=CST_MANDATORY|CST_UNIQUE)
 ~ConfigSection ()
bool matches (const ConfigElem &elem)
ConfigSectionoperator= (const ConfigSection &)

Private Attributes

ConfigFile_cf
unsigned _flags
bool _found
std::string _sectname

Detailed Description

Definition at line 20 of file cfgsect.h.


Constructor & Destructor Documentation

ConfigSection::ConfigSection ( ConfigFile cf,
const std::string &  sectname,
unsigned  flags = CST_MANDATORY|CST_UNIQUE 
)

Definition at line 16 of file cfgsect.cpp.

References _cf, and ConfigFile::allowed_types_.

Definition at line 25 of file cfgsect.cpp.

References _cf, _flags, _found, _sectname, CST_MANDATORY, ConfigFile::display_error(), and ConfigFile::filename().

+ Here is the call graph for this function:


Member Function Documentation

bool ConfigSection::matches ( const ConfigElem elem)

Definition at line 35 of file cfgsect.cpp.

References _flags, _found, _sectname, CST_UNIQUE, ConfigElem::throw_error(), and ConfigElemBase::type_is().

Referenced by load_party_cfg(), load_repsys_cfg(), read_guilds_dat(), and read_party_dat().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ConfigSection& ConfigSection::operator= ( const ConfigSection ) [inline]

Definition at line 25 of file cfgsect.h.


Member Data Documentation

Definition at line 29 of file cfgsect.h.

Referenced by ConfigSection(), and ~ConfigSection().

unsigned ConfigSection::_flags [private]

Definition at line 32 of file cfgsect.h.

Referenced by matches(), and ~ConfigSection().

bool ConfigSection::_found [private]

Definition at line 31 of file cfgsect.h.

Referenced by matches(), and ~ConfigSection().

std::string ConfigSection::_sectname [private]

Definition at line 30 of file cfgsect.h.

Referenced by matches(), and ~ConfigSection().


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