Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ConfigFile Class Reference

#include <configfile.h>

Public Member Functions

 ConfigFile ()
 
 ~ConfigFile ()
 
bit8 readFile (IN FILE *config)
 
bit8 getString (IN Wstring &key, OUT Wstring &value)
 
bit8 getString (IN char *key, OUT Wstring &value)
 
bit8 getInt (IN Wstring &key, OUT sint32 &value)
 
bit8 getInt (IN char *key, OUT sint32 &value)
 
bit8 getInt (IN Wstring &key, OUT sint16 &value)
 
bit8 getInt (IN char *key, OUT sint16 &value)
 
 ConfigFile ()
 
 ~ConfigFile ()
 
bit8 readFile (FILE *config)
 
bit8 getString (IN Wstring &key, OUT Wstring &value, IN char *section=NULL) const
 
bit8 getString (IN char *key, OUT Wstring &value, IN char *section=NULL) const
 
bit8 getInt (IN Wstring &key, OUT sint32 &value, IN char *section=NULL) const
 
bit8 getInt (IN char *key, OUT sint32 &value, IN char *section=NULL) const
 
bit8 getInt (IN Wstring &key, OUT sint16 &value, IN char *section=NULL) const
 
bit8 getInt (IN char *key, OUT sint16 &value, IN char *section=NULL) const
 
bit8 enumerate (int &index, int &offset, Wstring &key, Wstring &value, IN char *section=NULL) const
 
bit8 setString (IN Wstring &key, IN Wstring &value, IN char *section=NULL)
 
bit8 setString (IN char *key, IN Wstring &value, IN char *section=NULL)
 
bit8 setInt (IN Wstring &key, IN sint32 &value, IN char *section=NULL)
 
bit8 setInt (IN char *key, IN sint32 &value, IN char *section=NULL)
 
bit8 removeEntry (IN Wstring &key, IN char *section=NULL)
 
bit8 removeEntry (IN char *key, IN char *section=NULL)
 
bit8 writeFile (FILE *config)
 
 ConfigFile ()
 
 ~ConfigFile ()
 
bit8 readFile (FILE *config)
 
bit8 getString (IN Wstring &key, OUT Wstring &value, IN char *section=NULL) const
 
bit8 getString (IN char *key, OUT Wstring &value, IN char *section=NULL) const
 
bit8 getInt (IN Wstring &key, OUT sint32 &value, IN char *section=NULL) const
 
bit8 getInt (IN char *key, OUT sint32 &value, IN char *section=NULL) const
 
bit8 getInt (IN Wstring &key, OUT sint16 &value, IN char *section=NULL) const
 
bit8 getInt (IN char *key, OUT sint16 &value, IN char *section=NULL) const
 
bit8 enumerate (int &index, int &offset, Wstring &key, Wstring &value, IN char *section=NULL) const
 
bit8 setString (IN Wstring &key, IN Wstring &value, IN char *section=NULL)
 
bit8 setString (IN char *key, IN Wstring &value, IN char *section=NULL)
 
bit8 setInt (IN Wstring &key, IN sint32 &value, IN char *section=NULL)
 
bit8 setInt (IN char *key, IN sint32 &value, IN char *section=NULL)
 
bit8 removeEntry (IN Wstring &key, IN char *section=NULL)
 
bit8 removeEntry (IN char *key, IN char *section=NULL)
 
bit8 writeFile (FILE *config)
 

Public Attributes

ArrayList< WstringsectionList
 

Detailed Description

Definition at line 35 of file configfile.h.

Constructor & Destructor Documentation

◆ ConfigFile() [1/3]

ConfigFile::ConfigFile ( )

Definition at line 50 of file configfile.cpp.

◆ ~ConfigFile() [1/3]

ConfigFile::~ConfigFile ( )

Definition at line 53 of file configfile.cpp.

◆ ConfigFile() [2/3]

ConfigFile::ConfigFile ( )

◆ ~ConfigFile() [2/3]

ConfigFile::~ConfigFile ( )

◆ ConfigFile() [3/3]

ConfigFile::ConfigFile ( )

◆ ~ConfigFile() [3/3]

ConfigFile::~ConfigFile ( )

Member Function Documentation

◆ enumerate() [1/2]

bit8 ConfigFile::enumerate ( int & index,
int & offset,
Wstring & key,
Wstring & value,
IN char * section = NULL ) const

Definition at line 135 of file configfile.cpp.

◆ enumerate() [2/2]

bit8 ConfigFile::enumerate ( int & index,
int & offset,
Wstring & key,
Wstring & value,
IN char * section = NULL ) const

◆ getInt() [1/12]

bit8 ConfigFile::getInt ( IN char * key,
OUT sint16 & value )

◆ getInt() [2/12]

bit8 ConfigFile::getInt ( IN char * key,
OUT sint16 & value,
IN char * section = NULL ) const

◆ getInt() [3/12]

bit8 ConfigFile::getInt ( IN char * key,
OUT sint16 & value,
IN char * section = NULL ) const

◆ getInt() [4/12]

bit8 ConfigFile::getInt ( IN char * key,
OUT sint32 & value )

◆ getInt() [5/12]

bit8 ConfigFile::getInt ( IN char * key,
OUT sint32 & value,
IN char * section = NULL ) const

◆ getInt() [6/12]

bit8 ConfigFile::getInt ( IN char * key,
OUT sint32 & value,
IN char * section = NULL ) const

◆ getInt() [7/12]

bit8 ConfigFile::getInt ( IN Wstring & key,
OUT sint16 & value )

◆ getInt() [8/12]

bit8 ConfigFile::getInt ( IN Wstring & key,
OUT sint16 & value,
IN char * section = NULL ) const

◆ getInt() [9/12]

bit8 ConfigFile::getInt ( IN Wstring & key,
OUT sint16 & value,
IN char * section = NULL ) const

◆ getInt() [10/12]

bit8 ConfigFile::getInt ( IN Wstring & key,
OUT sint32 & value )

◆ getInt() [11/12]

bit8 ConfigFile::getInt ( IN Wstring & key,
OUT sint32 & value,
IN char * section = NULL ) const

◆ getInt() [12/12]

bit8 ConfigFile::getInt ( IN Wstring & key,
OUT sint32 & value,
IN char * section = NULL ) const

◆ getString() [1/6]

bit8 ConfigFile::getString ( IN char * key,
OUT Wstring & value )

◆ getString() [2/6]

bit8 ConfigFile::getString ( IN char * key,
OUT Wstring & value,
IN char * section = NULL ) const

◆ getString() [3/6]

bit8 ConfigFile::getString ( IN char * key,
OUT Wstring & value,
IN char * section = NULL ) const

◆ getString() [4/6]

bit8 ConfigFile::getString ( IN Wstring & key,
OUT Wstring & value )

◆ getString() [5/6]

bit8 ConfigFile::getString ( IN Wstring & key,
OUT Wstring & value,
IN char * section = NULL ) const

◆ getString() [6/6]

bit8 ConfigFile::getString ( IN Wstring & key,
OUT Wstring & value,
IN char * section = NULL ) const

◆ readFile() [1/3]

bit8 ConfigFile::readFile ( FILE * config)

Definition at line 58 of file configfile.cpp.

◆ readFile() [2/3]

bit8 ConfigFile::readFile ( FILE * config)

◆ readFile() [3/3]

bit8 ConfigFile::readFile ( IN FILE * config)

◆ removeEntry() [1/4]

bit8 ConfigFile::removeEntry ( IN char * key,
IN char * section = NULL )

Definition at line 302 of file configfile.cpp.

◆ removeEntry() [2/4]

bit8 ConfigFile::removeEntry ( IN char * key,
IN char * section = NULL )

◆ removeEntry() [3/4]

bit8 ConfigFile::removeEntry ( IN Wstring & key,
IN char * section = NULL )

Definition at line 277 of file configfile.cpp.

◆ removeEntry() [4/4]

bit8 ConfigFile::removeEntry ( IN Wstring & key,
IN char * section = NULL )

◆ setInt() [1/4]

bit8 ConfigFile::setInt ( IN char * key,
IN sint32 & value,
IN char * section = NULL )

Definition at line 415 of file configfile.cpp.

◆ setInt() [2/4]

bit8 ConfigFile::setInt ( IN char * key,
IN sint32 & value,
IN char * section = NULL )

◆ setInt() [3/4]

bit8 ConfigFile::setInt ( IN Wstring & key,
IN sint32 & value,
IN char * section = NULL )

Definition at line 365 of file configfile.cpp.

◆ setInt() [4/4]

bit8 ConfigFile::setInt ( IN Wstring & key,
IN sint32 & value,
IN char * section = NULL )

◆ setString() [1/4]

bit8 ConfigFile::setString ( IN char * key,
IN Wstring & value,
IN char * section = NULL )

Definition at line 357 of file configfile.cpp.

◆ setString() [2/4]

bit8 ConfigFile::setString ( IN char * key,
IN Wstring & value,
IN char * section = NULL )

◆ setString() [3/4]

bit8 ConfigFile::setString ( IN Wstring & key,
IN Wstring & value,
IN char * section = NULL )

Definition at line 310 of file configfile.cpp.

◆ setString() [4/4]

bit8 ConfigFile::setString ( IN Wstring & key,
IN Wstring & value,
IN char * section = NULL )

◆ writeFile() [1/2]

bit8 ConfigFile::writeFile ( FILE * config)

Definition at line 424 of file configfile.cpp.

◆ writeFile() [2/2]

bit8 ConfigFile::writeFile ( FILE * config)

Member Data Documentation

◆ sectionList

ArrayList< Wstring > ConfigFile::sectionList

Definition at line 65 of file configfile.h.


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