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" >
2002-12-05 00:05:06 +00:00
< title > /home/James/ZEngine-dev/include/ZE_ZConfigFile.h Source File< / title >
2002-11-21 05:40:49 +00:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" >
< / head > < body >
2002-12-05 00:05:06 +00:00
<!-- Generated by Doxygen 1.3 - rc1 -->
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 >
2002-12-05 00:05:06 +00:00
< hr > < h1 > /home/James/ZEngine-dev/include/ZE_ZConfigFile.h< / h1 > < a href = "ZE__ZConfigFile_8h.html" > Go to the documentation of this file.< / a > < div class = "fragment" > < pre > 00001 < span class = "comment" > /*******************************************************************************< / span >
2002-11-21 05:40:49 +00:00
00002 < span class = "comment" > This file is Part of the ZEngine Library for SDL Game Development.< / span >
00003 < span class = "comment" > Copyright (C) 2002 ConceptOfZero.net< / span >
00004 < span class = "comment" > < / span >
00005 < span class = "comment" > Licensed under the BSD License, see licensing.txt.< / span >
00006 < span class = "comment" > < / span >
00007 < span class = "comment" > The maintainer of this library is James Turk (jturk@conceptofzero.net) < / span >
00008 < span class = "comment" > and the home of this Library is http://www.conceptofzero.net/< / span >
00009 < span class = "comment" > *******************************************************************************/< / span >
00010
00025 < span class = "preprocessor" > #ifndef __ze_zconfigfile_h__< / span >
00026 < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define __ze_zconfigfile_h__< / span >
00027 < span class = "preprocessor" > < / span >
2002-12-01 07:56:17 +00:00
00028 < span class = "preprocessor" > #include "< a class = "code" href = "ZE__ZObject_8h.html" > ZE_ZObject.h< / a > "< / span > < span class = "comment" > //included even though ZCF isn't derived (to obtain all other needed headers)< / span >
2002-11-21 05:40:49 +00:00
00029
00030 < span class = "keyword" > namespace < / span > ZE
00031 {
00032
2002-12-05 00:05:06 +00:00
00038 < span class = "keyword" > class < / span > ZConfigFile : < span class = "keyword" > public< / span > ZObject
2002-11-21 05:40:49 +00:00
00039 {
2002-12-01 07:56:17 +00:00
00040 < span class = "keyword" > private< / span > :
2002-11-21 05:40:49 +00:00
00041
2002-12-01 07:56:17 +00:00
00042 < span class = "comment" > //Private Types//< / span >
00043
00044
2002-12-05 00:05:06 +00:00
00051 < span class = "keyword" > class < / span > ZCF_Variable
2002-12-01 07:56:17 +00:00
00052 {
00053 < span class = "keyword" > public< / span > :
2002-12-05 00:05:06 +00:00
00055 string < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html#m0" > var< / a > ;
00057 string < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html#m1" > val< / a > ;
2002-12-01 07:56:17 +00:00
00058 };
00059
2002-12-05 00:05:06 +00:00
00065 < span class = "keyword" > class < / span > ZCF_Section
2002-12-01 07:56:17 +00:00
00066 {
00067 < span class = "keyword" > public< / span > :
2002-12-05 00:05:06 +00:00
00069 string < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html#m0" > section< / a > ;
00071 list< ZCF_Variable> < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html#m1" > varList< / a > ;
2002-12-01 07:56:17 +00:00
00072 };
00073
2002-12-05 00:05:06 +00:00
00075 list< ZCF_Section> < a class = "code" href = "classZE_1_1ZConfigFile.html#o0" > mFileLayout< / a > ;
2002-12-01 07:56:17 +00:00
00076
2002-12-05 00:05:06 +00:00
00078 string < a class = "code" href = "classZE_1_1ZConfigFile.html#o1" > mFilename< / a > ;
2002-12-01 07:56:17 +00:00
00079
00087 string < a class = "code" href = "classZE_1_1ZConfigFile.html#c0" > CleanString< / a > (string str);
00088
2002-12-05 00:05:06 +00:00
00096 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#c1" > Exists< / a > (string sec);
00097
00106 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#c1" > Exists< / a > (string sec, string var);
00107
00116 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#c3" > SetVariable< / a > (string sec, string var, string val);
2002-12-01 07:56:17 +00:00
00117
2002-12-05 00:05:06 +00:00
00127 string < a class = "code" href = "classZE_1_1ZConfigFile.html#c4" > GetVariable< / a > (string sec, string var, string defVal);
00128
00129 < span class = "keyword" > public< / span > :
00130
00136 < a class = "code" href = "classZE_1_1ZConfigFile.html#a0" > ZConfigFile< / a > ();
00137
00144 < a class = "code" href = "classZE_1_1ZConfigFile.html#a0" > ZConfigFile< / a > (string filename);
00145
00151 < a class = "code" href = "classZE_1_1ZConfigFile.html#a2" > ~ZConfigFile< / a > ();
00152
00159 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a3" > Process< / a > (string filename);
00160
00170 < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a4" > GetInt< / a > (string section, string var, < span class = "keywordtype" > int< / span > defVal);
00171
00182 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a5" > GetBool< / a > (string section, string var, < span class = "keywordtype" > bool< / span > defVal);
00183
00193 string < a class = "code" href = "classZE_1_1ZConfigFile.html#a6" > GetString< / a > (string section, string var, string defVal);
00194
00204 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a7" > SetInt< / a > (string section, string var, < span class = "keywordtype" > int< / span > val);
00205
00215 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a8" > SetBool< / a > (string section, string var, < span class = "keywordtype" > bool< / span > val);
00216
00226 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a9" > SetString< / a > (string section, string var, string val);
00227
00233 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a10" > Flush< / a > ();
00234
00240 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#a11" > Close< / a > ();
00241 };
00242
00243 }
00244
00245 < span class = "preprocessor" > #endif //__ze_zconfigfile_h__< / span >
< / pre > < / div > < hr > < address style = "align: right;" > < small > Generated on Wed Dec 4 19:01:30 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-05 00:05:06 +00:00
width=110 height=53>< / a > 1.3-rc1 < / small > < / address >
2002-11-21 05:40:49 +00:00
< / body >
< / html >