aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/classNLMISC_1_1CConfigFile.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/classNLMISC_1_1CConfigFile.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/classNLMISC_1_1CConfigFile.html1060
1 files changed, 1060 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNLMISC_1_1CConfigFile.html b/docs/doxygen/nel/classNLMISC_1_1CConfigFile.html
new file mode 100644
index 00000000..29fbc2d2
--- /dev/null
+++ b/docs/doxygen/nel/classNLMISC_1_1CConfigFile.html
@@ -0,0 +1,1060 @@
+<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+<HTML>
+<HEAD>
+ <TITLE>nevrax.org : docs</TITLE>
+ <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css">
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
+</HEAD>
+<BODY MARGINHEIGHT="0" MARGINWIDTH="0">
+
+<!-- uplinks -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ </TR>
+</TABLE>
+
+<!-- banner Nevrax -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%>
+ <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
+</TABLE>
+
+<!-- main table -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+ <!------ Begin Box ------>
+ <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
+ <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF>
+ <TABLE cellspacing=0 cellpadding=1 border=0>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
+ </TABLE>
+ </TD></TR></TABLE></TD></TR></TABLE>
+ <!------ End Box ------>
+
+ </TD>
+ <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+<!-- title -->
+<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
+<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
+</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
+</td></tr></table>
+&nbsp;
+
+<!-- block -->
+<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD>
+ <TD><B>Documentation</B></TD>
+ <TD ALIGN=RIGHT>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
+<hr><h1>NLMISC::CConfigFile Class Reference</h1><a class="el" href="classNLMISC_1_1CConfigFile.html">CConfigFile</a> class.
+<a href="#_details">More...</a>
+<p>
+<code>#include &lt;<a class="el" href="config__file_8h-source.html">config_file.h</a>&gt;</code>
+<p>
+<a href="classNLMISC_1_1CConfigFile-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
+<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
+<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a0">CConfigFile</a> ()</td></tr>
+<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a1">~CConfigFile</a> ()</td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CVar</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a2">getVar</a> (const std::string &amp;varName)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Get a variable with the variable name.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CVar</a> *&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a3">getVarPtr</a> (const std::string &amp;varName)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Get a variable pointer with the variable name, without throwing exception. Return NULL if not found.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a4">exists</a> (const std::string &amp;varName)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Return true if the variable exists, false otherwise.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a5">load</a> (const std::string &amp;fileName)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>load and parse the file.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a6">save</a> () const</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>save the config file.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a7">loaded</a> ()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Returns true if the file has been loaded.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a8">reparse</a> (const char *filename=NULL, bool callingCallback=true)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>reload and reparse the file.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a9">print</a> () const</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>display all variables with nlinfo (debug use).</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a10">print</a> (<a class="el" href="classNLMISC_1_1CLog.html">CLog</a> *log) const</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>display all variables with nlinfo (debug use).</em> <a href="#a10">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a11">setCallback</a> (void(*cb)())</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>set a callback function that is called when the config file is modified.</em> <a href="#a11">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a12">setCallback</a> (const std::string &amp;VarName, void(*cb)(<a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CConfigFile::CVar</a> &amp;var))</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>set a callback function to a variable, it will be called when this variable is modified.</em> <a href="#a12">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a13">setLastModifiedNow</a> ()</td></tr>
+<tr><td nowrap align=right valign=top>std::string&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#a14">getFilename</a> () const</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>returns the configfile name.</em> <a href="#a14">More...</a><em></em></font><br><br></td></tr>
+<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#d0">CConfigFile::setTimeout</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> timeout)</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>set the time between 2 file checking (default value is 1 second) <dl compact><dt><b>
+Parameters: </b><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em>timeout</em>&nbsp;</td><td>
+time in millisecond, if timeout=0, the check will be made each "frame".</td></tr>
+</table>
+</dl></em> <a href="#d0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#d1">checkConfigFiles</a> ()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Internal use only.</em> <a href="#d1">More...</a><em></em></font><br><br></td></tr>
+<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
+<tr><td nowrap align=right valign=top>std::vector&lt; std::string &gt;&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#m0">UnknownVariables</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>contains the variable names that <a class="el" href="classNLMISC_1_1CConfigFile.html#a2">getVar</a>() and <a class="el" href="classNLMISC_1_1CConfigFile.html#a3">getVarPtr</a>() tried to access but not present in the cfg.</em> <a href="#m0">More...</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><a class="el" href="memory__common_8h.html#a11">uint32</a>&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#c0">getLastModified</a> ()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Internal use only.</em> <a href="#c0">More...</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>void(*&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#o0">_Callback</a> )()</td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Internal use only.</em> <a href="#o0">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CVar</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#o1">_Vars</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Internal use only.</em> <a href="#o1">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top>std::string&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#o2">_FileName</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Internal use only.</em> <a href="#o2">More...</a><em></em></font><br><br></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a>&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#o3">_LastModified</a></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Internal use only.</em> <a href="#o3">More...</a><em></em></font><br><br></td></tr>
+<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
+<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a>&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#r0">_Timeout</a> = 1000</td></tr>
+<tr><td nowrap align=right valign=top>std::vector&lt; CConfigFile * &gt; *&nbsp;</td><td valign=bottom><a class="el" href="classNLMISC_1_1CConfigFile.html#r1">_ConfigFiles</a> = NULL</td></tr>
+</table>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+<a class="el" href="classNLMISC_1_1CConfigFile.html">CConfigFile</a> class.
+<p>
+Useful when you want to have a configuration file with variables. It manages integers, real (double), and string basic types. A variable can be an array of basic type. In this case, all elements of the array must have the same type.
+<p>
+If you setup the global callback before loading, it'll be call after the <a class="el" href="classNLMISC_1_1CConfigFile.html#a5">load</a>() function.
+<p>
+Example: <div class="fragment"><pre> <font class="keywordflow">try</font>
+ {
+ <a class="code" href="classNLMISC_1_1CConfigFile.html#a0">CConfigFile</a> cf;
+
+ <font class="comment">// Load and parse "test.txt" file</font>
+ cf.load (<font class="stringliteral">"test.txt"</font>);
+
+ <font class="comment">// Attach a callback to the var1 variable. When the var1 will changed, this cvar1cb function will be called</font>
+ cf.setCallback (<font class="stringliteral">"var1"</font>, var1cb);
+
+ <font class="comment">// Get the foo variable (suppose it's a string variable)</font>
+ CConfigFile::CVar &amp;foo = cf.getVar (<font class="stringliteral">"foo"</font>);
+
+ <font class="comment">// Display the content of the variable</font>
+ printf (<font class="stringliteral">"foo = %s\n"</font>, foo.asString ().c_str ());
+
+ <font class="comment">// Get the bar variable (suppose it's an array of int)</font>
+ CConfigFile::CVar &amp;<a class="code" href="namespaceNLNET.html#a63">bar</a> = cf.getVar (<font class="stringliteral">"bar"</font>);
+
+ <font class="comment">// Display the content of the all elements of the bar variable</font>
+ printf (<font class="stringliteral">"bar have %d elements : \n"</font>, <a class="code" href="namespaceNLNET.html#a63">bar</a>.size ());
+ <font class="keywordflow">for</font> (<font class="keywordtype">int</font> i = 0; i &lt; <a class="code" href="namespaceNLNET.html#a63">bar</a>.size (); i++)
+ printf (<font class="stringliteral">"%d "</font>, <a class="code" href="namespaceNLNET.html#a63">bar</a>.asInt (i));
+ printf(<font class="stringliteral">"\n"</font>);
+ }
+ <font class="keywordflow">catch</font> (EConfigFile &amp;e)
+ {
+ <font class="comment">// Something goes wrong... catch that</font>
+ printf (<font class="stringliteral">"%s\n"</font>, e.what ());
+ }
+ *
+</pre></div>
+<p>
+Example of config file: <div class="fragment"><pre> <font class="comment">// one line comment</font>
+ / * big <a class="code" href="cf__lexical_8cpp.html#a115">comment</a>
+ on more than one line * /
+
+ var1 = 123; <font class="comment">// var1 type:int, value:123</font>
+ var2 = <font class="stringliteral">"456.25"</font>; <font class="comment">// var2 type:string, value:"456.25"</font>
+ var3 = 123.123; <font class="comment">// var3 type:real, value:123.123</font>
+
+ <font class="comment">// the resulting type is type of the first left value</font>
+ var4 = 123.123 + 2; <font class="comment">// var4 type:real, value:125.123</font>
+ var5 = 123 + 2.1; <font class="comment">// var5 type:int, value:125</font>
+
+ var6 = (-112+1) * 3 - 14; <font class="comment">// var6 type:int, value:-347</font>
+
+ var7 = var1 + 1; <font class="comment">// var7 type:int, value:124</font>
+
+ var8 = var2 + 10; <font class="comment">// var8 type:string, value:456.2510 (convert 10 into a string and concat it)</font>
+ var9 = 10.15 + var2; <font class="comment">// var9 type:real, value:466.4 (convert var2 into a real and add it)</font>
+
+ var10 = { 10.0, 51.1 }; <font class="comment">// var10 type:realarray, value:{10.0,51.1}</font>
+ var11 = { <font class="stringliteral">"str1"</font>, <font class="stringliteral">"str2"</font>, <font class="stringliteral">"str3"</font> }; <font class="comment">// var11 type:stringarray, value:{"str1", "str2", "str3"}</font>
+
+ var12 = { 10+var1, var1-var7 }; <font class="comment">// var12 type:intarray, value:{133,-1}</font>
+ *
+</pre></div>
+<p>
+Operators are '+', '-', '*', '/'. You can't use operators on a array variable, for example, you can't do \cvar13=var12+1. If you have 2 variables with the same name, the first value will be remplaced by the second one.
+<p>
+
+<p>
+<dl compact><dt><b>
+<a class="el" href="bug.html#_bug000001">Bug: </a></b><dd>
+if you terminate the config file with a comment without carriage returns it'll generate an exception, add a carriage returns</dl>
+<p>
+<dl compact><dt><b>
+Author: </b><dd>
+Vianney Lecroart , Nevrax France </dl><dl compact><dt><b>
+Date: </b><dd>
+2000 </dl>
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8h-source.html#l00119">119</a> of file <a class="el" href="config__file_8h-source.html">config_file.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a name="a0" doxytag="NLMISC::CConfigFile::CConfigFile"></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"> NLMISC::CConfigFile::CConfigFile </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8h-source.html#l00198">198</a> of file <a class="el" href="config__file_8h-source.html">config_file.h</a>.
+<p>
+References <a class="el" href="classNLMISC_1_1CConfigFile.html#o0">_Callback</a>. </td>
+ </tr>
+</table>
+<a name="a1" doxytag="NLMISC::CConfigFile::~CConfigFile"></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"> NLMISC::CConfigFile::~CConfigFile </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00209">209</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8cpp-source.html#l00602">_ConfigFiles</a>. </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a name="d0" doxytag="NLMISC::CConfigFile::CConfigFile::setTimeout"></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 NLMISC::CConfigFile::CConfigFile::setTimeout </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>timeout</em> </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [static]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+set the time between 2 file checking (default value is 1 second) <dl compact><dt><b>
+Parameters: </b><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em>timeout</em>&nbsp;</td><td>
+time in millisecond, if timeout=0, the check will be made each "frame".</td></tr>
+</table>
+</dl>
+<p>
+ </td>
+ </tr>
+</table>
+<a name="d1" doxytag="NLMISC::CConfigFile::checkConfigFiles"></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 NLMISC::CConfigFile::checkConfigFiles </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [static]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Internal use only.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00631">631</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8cpp-source.html#l00602">_ConfigFiles</a>, <a class="el" href="config__file_8cpp-source.html#l00604">_Timeout</a>, and <a class="el" href="debug_8h-source.html#l00114">nlwarning</a>. </td>
+ </tr>
+</table>
+<a name="a4" doxytag="NLMISC::CConfigFile::exists"></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 NLMISC::CConfigFile::exists </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>varName</em> </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return true if the variable exists, false otherwise.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00410">410</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00256">_Vars</a>. </td>
+ </tr>
+</table>
+<a name="a14" doxytag="NLMISC::CConfigFile::getFilename"></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"> std::string NLMISC::CConfigFile::getFilename </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+returns the configfile name.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8h-source.html#l00241">241</a> of file <a class="el" href="config__file_8h-source.html">config_file.h</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00259">_FileName</a>. </td>
+ </tr>
+</table>
+<a name="c0" doxytag="NLMISC::CConfigFile::getLastModified"></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"> <a class="el" href="memory__common_8h.html#a11">uint32</a> NLMISC::CConfigFile::getLastModified </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Internal use only.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00606">606</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00259">_FileName</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00270">reparse</a>, and <a class="el" href="config__file_8cpp-source.html#l00593">setLastModifiedNow</a>. </td>
+ </tr>
+</table>
+<a name="a2" doxytag="NLMISC::CConfigFile::getVar"></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"> <a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CConfigFile::CVar</a> &amp; NLMISC::CConfigFile::getVar </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>varName</em> </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get a variable with the variable name.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00364">364</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00259">_FileName</a>, <a class="el" href="config__file_8h-source.html#l00256">_Vars</a>, and <a class="el" href="config__file_8h-source.html#l00238">UnknownVariables</a>.
+<p>
+Referenced by <a class="el" href="service_8cpp-source.html#l00473">NLNET::IService::main</a>, and <a class="el" href="udp__sim__sock_8cpp-source.html#l00202">NLNET::CUdpSimSock::setSimValues</a>. </td>
+ </tr>
+</table>
+<a name="a3" doxytag="NLMISC::CConfigFile::getVarPtr"></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"> <a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CConfigFile::CVar</a> * NLMISC::CConfigFile::getVarPtr </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>varName</em> </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get a variable pointer with the variable name, without throwing exception. Return NULL if not found.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00388">388</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00256">_Vars</a>, and <a class="el" href="config__file_8h-source.html#l00238">UnknownVariables</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00226">load</a>, and <a class="el" href="service_8cpp-source.html#l00473">NLNET::IService::main</a>. </td>
+ </tr>
+</table>
+<a name="a5" doxytag="NLMISC::CConfigFile::load"></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 NLMISC::CConfigFile::load </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>fileName</em> </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+load and parse the file.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00226">226</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8cpp-source.html#l00602">_ConfigFiles</a>, <a class="el" href="config__file_8h-source.html#l00259">_FileName</a>, <a class="el" href="config__file_8cpp-source.html#l00388">getVarPtr</a>, <a class="el" href="debug_8h-source.html#l00094">nlinfo</a>, <a class="el" href="debug_8h-source.html#l00114">nlwarning</a>, and <a class="el" href="config__file_8cpp-source.html#l00270">reparse</a>.
+<p>
+Referenced by <a class="el" href="service_8cpp-source.html#l00473">NLNET::IService::main</a>. </td>
+ </tr>
+</table>
+<a name="a7" doxytag="NLMISC::CConfigFile::loaded"></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 NLMISC::CConfigFile::loaded </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Returns true if the file has been loaded.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00264">264</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>. </td>
+ </tr>
+</table>
+<a name="a10" doxytag="NLMISC::CConfigFile::print"></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 NLMISC::CConfigFile::print </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="classNLMISC_1_1CLog.html">CLog</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>log</em> </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+display all variables with nlinfo (debug use).
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00492">492</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00259">_FileName</a>, <a class="el" href="config__file_8h-source.html#l00256">_Vars</a>, and <a class="el" href="debug_8cpp-source.html#l00774">NLMISC::createDebug</a>. </td>
+ </tr>
+</table>
+<a name="a9" doxytag="NLMISC::CConfigFile::print"></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 NLMISC::CConfigFile::print </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+display all variables with nlinfo (debug use).
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00487">487</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="debug_8cpp-source.html#l00088">NLMISC::InfoLog</a>. </td>
+ </tr>
+</table>
+<a name="a8" doxytag="NLMISC::CConfigFile::reparse"></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 NLMISC::CConfigFile::reparse </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const char *&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>filename</em> = NULL, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>callingCallback</em> = true</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+reload and reparse the file.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00270">270</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="classNLMISC_1_1CConfigFile.html#o0">_Callback</a>, <a class="el" href="config__file_8h-source.html#l00259">_FileName</a>, <a class="el" href="config__file_8h-source.html#l00264">_LastModified</a>, <a class="el" href="config__file_8h-source.html#l00256">_Vars</a>, <a class="el" href="config__file_8cpp-source.html#l00043">cf_CurrentLine</a>, <a class="el" href="config__file_8cpp-source.html#l00045">cf_ifile</a>, <a class="el" href="config__file_8cpp-source.html#l00044">cf_OverwriteExistingVariable</a>, <a class="el" href="config__file_8cpp.html#a5">cfparse</a>, <a class="el" href="config__file_8cpp.html#a4">cfrestart</a>, <a class="el" href="config__file_8cpp-source.html#l00606">getLastModified</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, and <a class="el" href="debug_8h-source.html#l00114">nlwarning</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00226">load</a>. </td>
+ </tr>
+</table>
+<a name="a6" doxytag="NLMISC::CConfigFile::save"></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 NLMISC::CConfigFile::save </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+save the config file.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00423">423</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00259">_FileName</a>, <a class="el" href="config__file_8h-source.html#l00256">_Vars</a>, and <a class="el" href="debug_8h-source.html#l00114">nlwarning</a>. </td>
+ </tr>
+</table>
+<a name="a12" doxytag="NLMISC::CConfigFile::setCallback"></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 NLMISC::CConfigFile::setCallback </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>VarName</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>void(*&nbsp;</td>
+ <td class="mdname" nowrap>&nbsp; <em>cb</em>)(<a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CConfigFile::CVar</a> &amp;var)</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+set a callback function to a variable, it will be called when this variable is modified.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00575">575</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00256">_Vars</a>. </td>
+ </tr>
+</table>
+<a name="a11" doxytag="NLMISC::CConfigFile::setCallback"></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 NLMISC::CConfigFile::setCallback </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">void(*&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; <em>cb</em>)() </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+set a callback function that is called when the config file is modified.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00570">570</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="classNLMISC_1_1CConfigFile.html#o0">_Callback</a>.
+<p>
+Referenced by <a class="el" href="service_8cpp-source.html#l00473">NLNET::IService::main</a>, and <a class="el" href="udp__sim__sock_8cpp-source.html#l00202">NLNET::CUdpSimSock::setSimValues</a>. </td>
+ </tr>
+</table>
+<a name="a13" doxytag="NLMISC::CConfigFile::setLastModifiedNow"></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 NLMISC::CConfigFile::setLastModifiedNow </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap>&nbsp; </td>
+ <td class="md" valign="top">)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00593">593</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+References <a class="el" href="config__file_8h-source.html#l00264">_LastModified</a>, and <a class="el" href="config__file_8cpp-source.html#l00606">getLastModified</a>. </td>
+ </tr>
+</table>
+<hr><h2>Member Data Documentation</h2>
+<a name="o0" doxytag="NLMISC::CConfigFile::_Callback"></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(* NLMISC::CConfigFile::_Callback)()<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Internal use only.
+<p>
+
+<p>
+Referenced by <a class="el" href="config__file_8h-source.html#l00198">CConfigFile</a>, <a class="el" href="config__file_8cpp-source.html#l00270">reparse</a>, and <a class="el" href="config__file_8cpp-source.html#l00570">setCallback</a>. </td>
+ </tr>
+</table>
+<a name="r1" doxytag="NLMISC::CConfigFile::_ConfigFiles"></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"> vector&lt; CConfigFile * &gt; * NLMISC::CConfigFile::_ConfigFiles = NULL<code> [static, private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00602">602</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00631">checkConfigFiles</a>, <a class="el" href="config__file_8cpp-source.html#l00226">load</a>, and <a class="el" href="config__file_8cpp-source.html#l00209">~CConfigFile</a>. </td>
+ </tr>
+</table>
+<a name="o2" doxytag="NLMISC::CConfigFile::_FileName"></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"> std::string NLMISC::CConfigFile::_FileName<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Internal use only.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8h-source.html#l00259">259</a> of file <a class="el" href="config__file_8h-source.html">config_file.h</a>.
+<p>
+Referenced by <a class="el" href="config__file_8h-source.html#l00241">getFilename</a>, <a class="el" href="config__file_8cpp-source.html#l00606">getLastModified</a>, <a class="el" href="config__file_8cpp-source.html#l00364">getVar</a>, <a class="el" href="config__file_8cpp-source.html#l00226">load</a>, <a class="el" href="config__file_8cpp-source.html#l00492">print</a>, <a class="el" href="config__file_8cpp-source.html#l00270">reparse</a>, and <a class="el" href="config__file_8cpp-source.html#l00423">save</a>. </td>
+ </tr>
+</table>
+<a name="o3" doxytag="NLMISC::CConfigFile::_LastModified"></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"> <a class="el" href="memory__common_8h.html#a11">uint32</a> NLMISC::CConfigFile::_LastModified<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Internal use only.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8h-source.html#l00264">264</a> of file <a class="el" href="config__file_8h-source.html">config_file.h</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00270">reparse</a>, and <a class="el" href="config__file_8cpp-source.html#l00593">setLastModifiedNow</a>. </td>
+ </tr>
+</table>
+<a name="r0" doxytag="NLMISC::CConfigFile::_Timeout"></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"> <a class="el" href="memory__common_8h.html#a11">uint32</a> NLMISC::CConfigFile::_Timeout = 1000<code> [static, private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8cpp-source.html#l00604">604</a> of file <a class="el" href="config__file_8cpp-source.html">config_file.cpp</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00631">checkConfigFiles</a>. </td>
+ </tr>
+</table>
+<a name="o1" doxytag="NLMISC::CConfigFile::_Vars"></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"> std::vector&lt;<a class="el" href="structNLMISC_1_1CConfigFile_1_1CVar.html">CVar</a>&gt; NLMISC::CConfigFile::_Vars<code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Internal use only.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8h-source.html#l00256">256</a> of file <a class="el" href="config__file_8h-source.html">config_file.h</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00410">exists</a>, <a class="el" href="config__file_8cpp-source.html#l00364">getVar</a>, <a class="el" href="config__file_8cpp-source.html#l00388">getVarPtr</a>, <a class="el" href="config__file_8cpp-source.html#l00492">print</a>, <a class="el" href="config__file_8cpp-source.html#l00270">reparse</a>, <a class="el" href="config__file_8cpp-source.html#l00423">save</a>, and <a class="el" href="config__file_8cpp-source.html#l00575">setCallback</a>. </td>
+ </tr>
+</table>
+<a name="m0" doxytag="NLMISC::CConfigFile::UnknownVariables"></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"> std::vector&lt;std::string&gt; NLMISC::CConfigFile::UnknownVariables
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+contains the variable names that <a class="el" href="classNLMISC_1_1CConfigFile.html#a2">getVar</a>() and <a class="el" href="classNLMISC_1_1CConfigFile.html#a3">getVarPtr</a>() tried to access but not present in the cfg.
+<p>
+
+<p>
+Definition at line <a class="el" href="config__file_8h-source.html#l00238">238</a> of file <a class="el" href="config__file_8h-source.html">config_file.h</a>.
+<p>
+Referenced by <a class="el" href="config__file_8cpp-source.html#l00364">getVar</a>, and <a class="el" href="config__file_8cpp-source.html#l00388">getVarPtr</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="config__file_8h-source.html">config_file.h</a><li><a class="el" href="config__file_8cpp-source.html">config_file.cpp</a></ul>
+
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
+</TD>
+<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>