Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CIniSection Class Reference

#include <Ini.h>

List of all members.

Public Member Functions

 CIniSection (const char *section)
 ~CIniSection (void)
void Set (const char *key, float f)
void Set (const char *key, int i)
void Set (const char *key, const char *s)
void Get (const char *key, float *f)
void Get (const char *key, int *i)
void Get (const char *key, char *s, int maxLength)
void Save (FILE *f)
void Remove (const char *key)

Public Attributes

char section [64]
std::map< std::string, CIniSetting * > setting

Protected Member Functions

CIniSettingFindSetting (const char *key)
void Clear (void)


Detailed Description

Definition at line 74 of file Ini.h.


Constructor & Destructor Documentation

CIniSection::CIniSection const char *  section  ) 
 

Definition at line 135 of file Ini.cpp.

CIniSection::~CIniSection void   ) 
 

Definition at line 141 of file Ini.cpp.

References Clear().


Member Function Documentation

void CIniSection::Clear void   )  [protected]
 

Definition at line 150 of file Ini.cpp.

References setting.

Referenced by ~CIniSection().

CIniSetting * CIniSection::FindSetting const char *  key  )  [protected]
 

Definition at line 170 of file Ini.cpp.

References gtfo, section, and setting.

Referenced by Get(), and Set().

void CIniSection::Get const char *  key,
char *  s,
int  maxLength
 

Definition at line 264 of file Ini.cpp.

References FindSetting(), CIniSetting::Get(), and setting.

void CIniSection::Get const char *  key,
int *  i
 

Definition at line 250 of file Ini.cpp.

References FindSetting(), CIniSetting::Get(), and setting.

void CIniSection::Get const char *  key,
float *  f
 

Definition at line 236 of file Ini.cpp.

References FindSetting(), CIniSetting::Get(), and setting.

Referenced by CIniFile::Get().

void CIniSection::Remove const char *  key  ) 
 

Definition at line 293 of file Ini.cpp.

Referenced by CIniFile::Remove().

void CIniSection::Save FILE *  f  ) 
 

Definition at line 278 of file Ini.cpp.

References section, and setting.

void CIniSection::Set const char *  key,
const char *  s
 

Definition at line 222 of file Ini.cpp.

References FindSetting(), CIniSetting::Set(), and setting.

void CIniSection::Set const char *  key,
int  i
 

Definition at line 208 of file Ini.cpp.

References FindSetting(), CIniSetting::Set(), and setting.

void CIniSection::Set const char *  key,
float  f
 

Definition at line 194 of file Ini.cpp.

References FindSetting(), CIniSetting::Set(), and setting.

Referenced by CIniFile::Set().


Member Data Documentation

char CIniSection::section[64]
 

Definition at line 96 of file Ini.h.

Referenced by FindSetting(), CIniFile::GetSectionName(), and Save().

std::map<std::string,CIniSetting*> CIniSection::setting
 

Definition at line 97 of file Ini.h.

Referenced by Clear(), FindSetting(), Get(), Save(), and Set().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen