2003-01-18 22:54:50 +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 > /include/ZE_ZConfigFile.h Source File< / title >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" >
< / head > < body >
<!-- Generated by Doxygen 1.3 - rc2 -->
< 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 > /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 >
00002 < span class = "comment" > This file is Part of the ZEngine Library for 2D game development.< / span >
00003 < span class = "comment" > Copyright (C) 2002, 2003 James Turk< / span >
00004 < span class = "comment" > < / span >
00005 < span class = "comment" > Licensed under a BSD-style license.< / span >
00006 < span class = "comment" > < / span >
00007 < span class = "comment" > The maintainer of this library is James Turk (james@conceptofzero.net) < / span >
00008 < span class = "comment" > and the home of this Library is http://www.zengine.sourceforge.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 >
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 >
00029
00030 < span class = "keyword" > namespace < / span > ZE
00031 {
00032
< a name = "l00038" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile.html" > 00038< / a > < span class = "keyword" > class < / span > < a class = "code" href = "classZE_1_1ZConfigFile.html" > ZConfigFile< / a > : < span class = "keyword" > public< / span > < a class = "code" href = "classZE_1_1ZObject.html" > ZObject< / a >
00039 {
00040 < span class = "keyword" > private< / span > :
00041
00042 < span class = "comment" > //Private Types//< / span >
00043
00044
< a name = "l00051" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html" > 00051< / a > < span class = "keyword" > class < / span > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html" > ZCF_Variable< / a >
00052 {
00053 < span class = "keyword" > public< / span > :
< a name = "l00055" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html#m0" > 00055< / a > string < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html#m0" > var< / a > ;
< a name = "l00057" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html#m1" > 00057< / a > string < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Variable.html#m1" > val< / a > ;
00058 };
00059
< a name = "l00065" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html" > 00065< / a > < span class = "keyword" > class < / span > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html" > ZCF_Section< / a >
00066 {
00067 < span class = "keyword" > public< / span > :
< a name = "l00069" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html#m0" > 00069< / a > string < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html#m0" > section< / a > ;
< a name = "l00071" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html#m1" > 00071< / a > list< ZCF_Variable> < a class = "code" href = "classZE_1_1ZConfigFile_1_1ZCF__Section.html#m1" > varList< / a > ;
00072 };
00073
< a name = "l00075" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile.html#o0" > 00075< / a > list< ZCF_Section> < a class = "code" href = "classZE_1_1ZConfigFile.html#o0" > mFileLayout< / a > ;
00076
< a name = "l00078" > < / a > < a class = "code" href = "classZE_1_1ZConfigFile.html#o1" > 00078< / a > string < a class = "code" href = "classZE_1_1ZConfigFile.html#o1" > mFilename< / a > ;
00079
00087 string < a class = "code" href = "classZE_1_1ZConfigFile.html#c0" > CleanString< / a > (string str) < span class = "keyword" > const< / span > ;
00088
00096 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#c1" > Exists< / a > (string sec) < span class = "keyword" > const< / span > ;
00097
00106 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#c1" > Exists< / a > (string sec, string var) < span class = "keyword" > const< / span > ;
00107
00116 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZConfigFile.html#c3" > SetVariable< / a > (string sec, string var, string val);
00117
00127 string < a class = "code" href = "classZE_1_1ZConfigFile.html#c4" > GetVariable< / a > (string sec, string var, string defVal) < span class = "keyword" > const< / span > ;
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) < span class = "keyword" > const< / span > ;
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) < span class = "keyword" > const< / span > ;
00183
00193 string < a class = "code" href = "classZE_1_1ZConfigFile.html#a6" > GetString< / a > (string section, string var, string defVal) < span class = "keyword" > const< / span > ;
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 >
2003-01-28 21:33:02 +00:00
< / pre > < / div > < hr > < address style = "align: right;" > < small > Generated on Tue Jan 28 16:31:28 2003 for ZEngine by
2003-01-18 22:54:50 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = 0
width=110 height=53>< / a > 1.3-rc2 < / small > < / address >
< / body >
< / html >