2002-11-21 05:40:49 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< html > < head > < meta http-equiv = "Content-Type" content = "text/html;charset=iso-8859-1" >
< title > ZE::ZConfigFile class Reference< / title >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" >
< / head > < body >
2002-12-01 07:56:17 +00:00
<!-- Generated by Doxygen 1.2.18 -->
2002-11-21 05:40:49 +00:00
< center >
< a class = "qindex" href = "index.html" > Main Page< / a > < a class = "qindex" href = "namespaces.html" > Namespace List< / a > < a class = "qindex" href = "hierarchy.html" > Class Hierarchy< / a > < a class = "qindex" href = "annotated.html" > Compound List< / a > < a class = "qindex" href = "files.html" > File List< / a > < a class = "qindex" href = "namespacemembers.html" > Namespace Members< / a > < a class = "qindex" href = "functions.html" > Compound Members< / a > < a class = "qindex" href = "globals.html" > File Members< / a > < / center >
< hr > < h1 > ZE::ZConfigFile Class Reference< / h1 > < code > #include < < a class = "el" href = "ZE__ZConfigFile_8h-source.html" > ZE_ZConfigFile.h< / a > > < / code >
< p >
Inherits < a class = "el" href = "classZE_1_1ZObject.html" > ZE::ZObject< / a > .
< p >
< a href = "classZE_1_1ZConfigFile-members.html" > List of all members.< / a > < hr > < a name = "_details" > < / a > < h2 > Detailed Description< / h2 >
< a class = "el" href = "classZE_1_1ZConfigFile.html" > ZConfigFile< / a > class for INI-style configuration files for games or applications. Inherited from < a class = "el" href = "classZE_1_1ZObject.html" > ZObject< / a > .
< p >
< table border = 0 cellpadding = 0 cellspacing = 0 >
< tr > < td > < / td > < / tr >
< tr > < td colspan = 2 > < br > < h2 > Public Methods< / h2 > < / td > < / tr >
< tr > < td nowrap align = right valign = top > < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a0" > ZConfigFile< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Default constructor.< / em > < a href = "#a0" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a1" > ZConfigFile< / a > (string filename)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Constructor which takes filename.< / em > < a href = "#a1" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a2" > ~ZConfigFile< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Destructor, flushes file.< / em > < a href = "#a2" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a3" > Process< / a > (string filename)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Parse a file.< / em > < a href = "#a3" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a4" > GetInt< / a > (string section, string var, int defVal)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get value in integer format from file.< / em > < a href = "#a4" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a5" > GetBool< / a > (string section, string var, bool defVal)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get value in boolean format from file.< / em > < a href = "#a5" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > string < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a6" > GetString< / a > (string section, string var, string defVal)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get value in string format from file.< / em > < a href = "#a6" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a7" > SetInt< / a > (string section, string var, int val)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Set value in integer format in file.< / em > < a href = "#a7" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a8" > SetBool< / a > (string section, string var, bool val)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Set value in boolean format in file.< / em > < a href = "#a8" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a9" > SetString< / a > (string section, string var, string val)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Set value in string format in file.< / em > < a href = "#a9" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a10" > Flush< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Write all values to file.< / em > < a href = "#a10" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#a11" > Close< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Close the file.< / em > < a href = "#a11" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td colspan = 2 > < br > < h2 > Private Methods< / h2 > < / td > < / tr >
< tr > < td nowrap align = right valign = top > string < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#c0" > CleanString< / a > (string str)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Reformat a string in a form more suitable to parsing.< / em > < a href = "#c0" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td colspan = 2 > < br > < h2 > Private Attributes< / h2 > < / td > < / tr >
< tr > < td nowrap align = right valign = top > < a name = "o0" doxytag = "ZE::ZConfigFile::mFileLayout" > < / a >
2002-12-01 07:56:17 +00:00
list< < a class = "el" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html" > ZCF_Section< / a > > < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#o0" > mFileLayout< / a > < / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / td > < td > < font size = -1 > < em > List of sections of internal type.< / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > < a name = "o1" doxytag = "ZE::ZConfigFile::mFilename" > < / a >
string < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZConfigFile.html#o1" > mFilename< / a > < / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Filename of file currently open.< / em > < / font > < br > < br > < / td > < / tr >
< / table >
< hr > < h2 > Constructor & Destructor Documentation< / h2 >
< a name = "a0" doxytag = "ZE::ZConfigFile::ZConfigFile" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > ZE::ZConfigFile::ZConfigFile < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
A no-op default constructor. < / td >
< / tr >
< / table >
< a name = "a1" doxytag = "ZE::ZConfigFile::ZConfigFile" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > ZE::ZConfigFile::ZConfigFile < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname1" valign = "top" nowrap > < em > filename< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Constructor takes filename, and calls process on it. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > filename< / em > < / td > < td >
File to load as < a class = "el" href = "classZE_1_1ZConfigFile.html" > ZConfigFile< / a > . < / td > < / tr >
< / table >
< / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a2" doxytag = "ZE::ZConfigFile::~ZConfigFile" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > ZE::ZConfigFile::~ZConfigFile < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Flushes the file, ensures a flush if the file is left open. < / td >
< / tr >
< / table >
< hr > < h2 > Member Function Documentation< / h2 >
< a name = "c0" doxytag = "ZE::ZConfigFile::CleanString" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > string ZE::ZConfigFile::CleanString < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname1" valign = "top" nowrap > < em > str< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < code > [private]< / code > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Removes whitespace from a string and makes all characters lowercase. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > str< / em > < / td > < td >
The string to get a clean version of. < / td > < / tr >
< / table >
< / dl > < dl compact > < dt > < b > Returns: < / b > < / dt > < dd >
Cleaned string. < / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a3" doxytag = "ZE::ZConfigFile::Process" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > void ZE::ZConfigFile::Process < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname1" valign = "top" nowrap > < em > filename< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Parses the file, reading the contents into the fileLayout map. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > filename< / em > < / td > < td >
File to parse and attach this ZDataFile to. < / td > < / tr >
< / table >
< / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a4" doxytag = "ZE::ZConfigFile::GetInt" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > int ZE::ZConfigFile::GetInt < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > section< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > var< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > int < / td >
< td class = "mdname" nowrap > < em > defVal< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Get the current value of a variable in the file, or defVal if not found in file. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > section< / em > < / td > < td >
Name of section to seek variable under. < / td > < / tr >
< tr > < td valign = top > < em > var< / em > < / td > < td >
Name of variable to seek value for. < / td > < / tr >
< tr > < td valign = top > < em > defVal< / em > < / td > < td >
Value to return if var does not exist within section. < / td > < / tr >
< / table >
< / dl > < dl compact > < dt > < b > Returns: < / b > < / dt > < dd >
Contents of the variable in integer format. < / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a5" doxytag = "ZE::ZConfigFile::GetBool" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > bool ZE::ZConfigFile::GetBool < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > section< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > var< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > bool < / td >
< td class = "mdname" nowrap > < em > defVal< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Get the current value of a variable in the file, or defVal if not found in file. (Valid values are "0","1","true" and "false") < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > section< / em > < / td > < td >
Name of section to seek variable under. < / td > < / tr >
< tr > < td valign = top > < em > var< / em > < / td > < td >
Name of variable to seek value for. < / td > < / tr >
< tr > < td valign = top > < em > defVal< / em > < / td > < td >
Value to return if var does not exist within section. < / td > < / tr >
< / table >
< / dl > < dl compact > < dt > < b > Returns: < / b > < / dt > < dd >
Contents of the variable in boolean format. < / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a6" doxytag = "ZE::ZConfigFile::GetString" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > string ZE::ZConfigFile::GetString < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > section< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > var< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > defVal< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Get the current value of a variable in the file, or defVal if not found in file. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > section< / em > < / td > < td >
Name of section to seek variable under. < / td > < / tr >
< tr > < td valign = top > < em > var< / em > < / td > < td >
Name of variable to seek value for. < / td > < / tr >
< tr > < td valign = top > < em > defVal< / em > < / td > < td >
Value to return if var does not exist within section. < / td > < / tr >
< / table >
< / dl > < dl compact > < dt > < b > Returns: < / b > < / dt > < dd >
Contents of the variable in string format. < / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a7" doxytag = "ZE::ZConfigFile::SetInt" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > void ZE::ZConfigFile::SetInt < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > section< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > var< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > int < / td >
< td class = "mdname" nowrap > < em > val< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Set the new value of a variable in the file to val, creating the section and variable if not already found in file. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > section< / em > < / td > < td >
Name of section to edit variable under. < / td > < / tr >
< tr > < td valign = top > < em > var< / em > < / td > < td >
Name of variable to set value for. < / td > < / tr >
< tr > < td valign = top > < em > val< / em > < / td > < td >
Integer value to set variable to in file. < / td > < / tr >
< / table >
< / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a8" doxytag = "ZE::ZConfigFile::SetBool" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > void ZE::ZConfigFile::SetBool < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > section< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > var< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > bool < / td >
< td class = "mdname" nowrap > < em > val< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Set the new value of a variable in the file to val, creating the section and variable if not already found in file. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > section< / em > < / td > < td >
Name of section to edit variable under. < / td > < / tr >
< tr > < td valign = top > < em > var< / em > < / td > < td >
Name of variable to set value for. < / td > < / tr >
< tr > < td valign = top > < em > val< / em > < / td > < td >
Boolean value to set variable to in file. < / td > < / tr >
< / table >
< / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a9" doxytag = "ZE::ZConfigFile::SetString" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > void ZE::ZConfigFile::SetString < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > section< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > var< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > val< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Set the new value of a variable in the file to val, creating the section and variable if not already found in file. < dl compact > < dt > < b > Parameters: < / b > < / dt > < dd >
< table border = 0 cellspacing = 2 cellpadding = 0 >
< tr > < td valign = top > < em > section< / em > < / td > < td >
Name of section to edit variable under. < / td > < / tr >
< tr > < td valign = top > < em > var< / em > < / td > < td >
Name of variable to set value for. < / td > < / tr >
< tr > < td valign = top > < em > val< / em > < / td > < td >
String value to set variable to in file. < / td > < / tr >
< / table >
< / dl > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a10" doxytag = "ZE::ZConfigFile::Flush" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > void ZE::ZConfigFile::Flush < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Writes all values and sections to file. < / td >
< / tr >
< / table >
< a name = "a11" doxytag = "ZE::ZConfigFile::Close" > < / a > < p >
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
< td class = "md" nowrap valign = "top" > void ZE::ZConfigFile::Close < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Flush the file and clear the filename. < / td >
< / tr >
< / table >
< hr > The documentation for this class was generated from the following files:< ul >
2002-12-01 07:56:17 +00:00
< li > /include/< a class = "el" href = "ZE__ZConfigFile_8h-source.html" > ZE_ZConfigFile.h< / a > < li > /src/< a class = "el" href = "ZE__ZConfigFile_8cpp.html" > ZE_ZConfigFile.cpp< / a > < / ul >
< hr > < address style = "align: right;" > < small > Generated on Sun Dec 1 02:44:14 2002 for ZEngine by
2002-11-21 05:40:49 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = 0
2002-12-01 07:56:17 +00:00
width=110 height=53>< / a > 1.2.18 < / small > < / address >
2002-11-21 05:40:49 +00:00
< / body >
< / html >