aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02528.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/a02528.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/a02528.html756
1 files changed, 756 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02528.html b/docs/doxygen/nel/a02528.html
new file mode 100644
index 00000000..92aa77b4
--- /dev/null
+++ b/docs/doxygen/nel/a02528.html
@@ -0,0 +1,756 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NLGEORGES::CFileHeader class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLGEORGES::CFileHeader Class Reference</h1><code>#include &lt;<a class="el" href="a05774.html">header.h</a>&gt;</code>
+<p>
+<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3">TState</a> { <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1">Modified</a> = 0,
+<a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw0">Checked</a>,
+<a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw2">StateCount</a>
+ }</td></tr>
+
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadera0">addLog</a> (const char *log)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a log. <a href="#NLGEORGES_1_1CFileHeadera0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadera1">CFileHeader</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <a href="#NLGEORGES_1_1CFileHeadera1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadera2">read</a> (xmlNodePtr root)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">** IO functions <a href="#NLGEORGES_1_1CFileHeadera2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadera3">setComments</a> (const char *comments)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the comment. <a href="#NLGEORGES_1_1CFileHeadera3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadera4">warning</a> (bool exception, const char *function, const char *<a class="el" href="a04223.html#a641">format</a>,...) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadera5">write</a> (xmlNodePtr node, bool georges4CVS) const </td></tr>
+
+<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>const char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadere0">getStateString</a> (<a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3">TState</a> state)</td></tr>
+
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero0">Comments</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comments of the form. <a href="#NLGEORGES_1_1CFileHeadero0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Log of the form. <a href="#NLGEORGES_1_1CFileHeadero1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero2">MajorVersion</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Major version number. <a href="#NLGEORGES_1_1CFileHeadero2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero3">MinorVersion</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Minor version number. <a href="#NLGEORGES_1_1CFileHeadero3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero4">Revision</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">CVS Revision string. <a href="#NLGEORGES_1_1CFileHeadero4"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3">TState</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero5">State</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">State of the form. <a href="#NLGEORGES_1_1CFileHeadero5"></a><br><br></td></tr>
+</table>
+<hr><h2>Member Enumeration Documentation</h2>
+<a class="anchor" name="NLGEORGES_1_1CFileHeaderw3" doxytag="NLGEORGES::CFileHeader::TState" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> enum <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3">NLGEORGES::CFileHeader::TState</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<dl compact><dt><b>Enumeration values: </b></dt><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em><a class="anchor" name="NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1" doxytag="Modified" ></a>Modified</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign=top><em><a class="anchor" name="NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw0" doxytag="Checked" ></a>Checked</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign=top><em><a class="anchor" name="NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw2" doxytag="StateCount" ></a>StateCount</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05774.html#l00041">41</a> of file <a class="el" href="a05774.html">header.h</a>.
+<p>
+<div class="fragment"><pre>00042 {
+00043 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1">Modified</a> =0,
+00044 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw0">Checked</a>,
+00045 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw2">StateCount</a>,
+00046 };
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadera1" doxytag="NLGEORGES::CFileHeader::CFileHeader" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLGEORGES::CFileHeader::CFileHeader </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&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>
+Default constructor.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05773.html#l00044">44</a> of file <a class="el" href="a05773.html">header.cpp</a>.
+<p>
+References <a class="el" href="a05774.html#l00055">MajorVersion</a>, <a class="el" href="a05774.html#l00058">MinorVersion</a>, and <a class="el" href="a05774.html#l00064">Revision</a>.
+<p>
+<div class="fragment"><pre>00045 {
+00046 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero2">MajorVersion</a> = 0;
+00047 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero3">MinorVersion</a> = 0;
+00048 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero5">State</a> = <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1">Modified</a>;
+00049 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero4">Revision</a> = <span class="stringliteral">"$R"</span>;
+00050 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero4">Revision</a> += <span class="stringliteral">"evision$"</span>;
+00051 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadera0" doxytag="NLGEORGES::CFileHeader::addLog" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLGEORGES::CFileHeader::addLog </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const char *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>log</em> </td>
+ <td class="md" valign="top">&nbsp;)&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>
+Add a log.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05773.html#l00098">98</a> of file <a class="el" href="a05773.html">header.cpp</a>.
+<p>
+References <a class="el" href="a05774.html#l00070">Log</a>, and <a class="el" href="a05646.html#l00985">t</a>.
+<p>
+<div class="fragment"><pre>00099 {
+00100 time_t <a class="code" href="a04223.html#a627">t</a>;
+00101 time (&amp;t);
+00102 <span class="keywordflow">if</span> (!<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a>.empty())
+00103 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> += <span class="stringliteral">"\n"</span>;
+00104 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> += ctime(&amp;t);
+00105 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a>.resize (<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a>.size()-1);
+00106 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> += <span class="stringliteral">" ("</span>;
+00107 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> += IThread::getCurrentThread ()-&gt;getUserName ();
+00108 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> += <span class="stringliteral">") "</span>;
+00109 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> += log;
+00110 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadere0" doxytag="NLGEORGES::CFileHeader::getStateString" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> const char * NLGEORGES::CFileHeader::getStateString </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3">TState</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>state</em> </td>
+ <td class="md" valign="top">&nbsp;)&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>
+
+<p>
+Definition at line <a class="el" href="a05773.html#l00240">240</a> of file <a class="el" href="a05773.html">header.cpp</a>.
+<p>
+<div class="fragment"><pre>00241 {
+00242 <span class="keywordflow">if</span> (state == <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1">Modified</a>)
+00243 <span class="keywordflow">return</span> <span class="stringliteral">"Modified"</span>;
+00244 <span class="keywordflow">else</span>
+00245 <span class="keywordflow">return</span> <span class="stringliteral">"Checked"</span>;
+00246 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadera2" doxytag="NLGEORGES::CFileHeader::read" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLGEORGES::CFileHeader::read </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">xmlNodePtr&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>root</em> </td>
+ <td class="md" valign="top">&nbsp;)&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>
+** IO functions
+<p>
+
+<p>
+Definition at line <a class="el" href="a05773.html#l00121">121</a> of file <a class="el" href="a05773.html">header.cpp</a>.
+<p>
+References <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw0">Checked</a>, <a class="el" href="a05774.html#l00067">Comments</a>, <a class="el" href="a05774.html#l00070">Log</a>, <a class="el" href="a05774.html#l00055">MajorVersion</a>, <a class="el" href="a05774.html#l00058">MinorVersion</a>, <a class="el" href="a05774.html#l00064">Revision</a>, <a class="el" href="a05646.html#l01132">value</a>, and <a class="el" href="a05773.html#l00250">warning()</a>.
+<p>
+Referenced by <a class="el" href="a06586.html#l00116">NLGEORGES::CType::read()</a>, <a class="el" href="a05726.html#l00118">NLGEORGES::CFormDfn::read()</a>, and <a class="el" href="a05724.html#l00188">NLGEORGES::CForm::read()</a>.
+<p>
+<div class="fragment"><pre>00122 {
+00123 <span class="comment">// Get the version</span>
+00124 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a04223.html#a658">value</a> = (<span class="keyword">const</span> <span class="keywordtype">char</span>*)xmlGetProp (root, (xmlChar*)<span class="stringliteral">"Version"</span>);
+00125 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a658">value</a>)
+00126 {
+00127 <span class="comment">// Read the version</span>
+00128 <span class="keywordflow">if</span> (sscanf (value, <span class="stringliteral">"%d.%d"</span>, &amp;MajorVersion, &amp;MinorVersion) != 2)
+00129 {
+00130 <span class="comment">// Delete the value</span>
+00131 xmlFree ((<span class="keywordtype">void</span>*)value);
+00132
+00133 <span class="comment">// Throw exception</span>
+00134 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadera4">warning</a> (<span class="keyword">true</span>, <span class="stringliteral">"read"</span>, <span class="stringliteral">"XML Syntax error in TYPE block line %d, the Version argument is invalid."</span>,
+00135 (<span class="keywordtype">int</span>)root-&gt;content);
+00136 }
+00137
+00138 <span class="comment">// Delete the value</span>
+00139 xmlFree ((<span class="keywordtype">void</span>*)value);
+00140 }
+00141 <span class="keywordflow">else</span>
+00142 {
+00143 <span class="comment">// Set default</span>
+00144 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero2">MajorVersion</a> = 0;
+00145 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero3">MinorVersion</a> = 0;
+00146 }
+00147
+00148 <span class="comment">// Get the revision</span>
+00149 <a class="code" href="a04223.html#a658">value</a> = (<span class="keyword">const</span> <span class="keywordtype">char</span>*)xmlGetProp (root, (xmlChar*)<span class="stringliteral">"Revision"</span>);
+00150 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a658">value</a>)
+00151 {
+00152 <span class="comment">// Set the value</span>
+00153 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero4">Revision</a> = <a class="code" href="a04223.html#a658">value</a>;
+00154
+00155 <span class="comment">// Delete the value</span>
+00156 xmlFree ((<span class="keywordtype">void</span>*)value);
+00157 }
+00158 <span class="keywordflow">else</span>
+00159 {
+00160 <span class="comment">// Set default</span>
+00161 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero4">Revision</a> = <span class="stringliteral">"$R"</span>;
+00162 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero4">Revision</a> += <span class="stringliteral">"evision$"</span>;
+00163 }
+00164
+00165 <span class="comment">// Get the version</span>
+00166 <a class="code" href="a04223.html#a658">value</a> = (<span class="keyword">const</span> <span class="keywordtype">char</span>*)xmlGetProp (root, (xmlChar*)<span class="stringliteral">"State"</span>);
+00167 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a658">value</a>)
+00168 {
+00169 <span class="comment">// Read the version</span>
+00170 <span class="keywordflow">if</span> (strcmp (value, <span class="stringliteral">"modified"</span>) == 0)
+00171 {
+00172 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero5">State</a> = <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1">Modified</a>;
+00173 }
+00174 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp (value, <span class="stringliteral">"checked"</span>) == 0)
+00175 {
+00176 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero5">State</a> = <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw0">Checked</a>;
+00177 }
+00178 <span class="keywordflow">else</span>
+00179 {
+00180 <span class="comment">// Delete the value</span>
+00181 xmlFree ((<span class="keywordtype">void</span>*)value);
+00182
+00183 <span class="comment">// Throw exception</span>
+00184 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadera4">warning</a> (<span class="keyword">true</span>, <span class="stringliteral">"read"</span>, <span class="stringliteral">"XML Syntax error in TYPE block line %d, the State argument is invalid."</span>,
+00185 (<span class="keywordtype">int</span>)root-&gt;content);
+00186 }
+00187
+00188 <span class="comment">// Delete the value</span>
+00189 xmlFree ((<span class="keywordtype">void</span>*)value);
+00190 }
+00191 <span class="keywordflow">else</span>
+00192 {
+00193 <span class="comment">// Set default</span>
+00194 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero5">State</a> = <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1">Modified</a>;
+00195 }
+00196
+00197 <span class="comment">// Look for the comment node</span>
+00198 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero0">Comments</a> = <span class="stringliteral">""</span>;
+00199 xmlNodePtr node = CIXml::getFirstChildNode (root, <span class="stringliteral">"COMMENTS"</span>);
+00200 <span class="keywordflow">if</span> (node)
+00201 {
+00202 <span class="comment">// Get a text node</span>
+00203 <span class="keywordflow">if</span> ((node = CIXml::getFirstChildNode (node, XML_TEXT_NODE)))
+00204 {
+00205 <span class="comment">// Get content</span>
+00206 <span class="keyword">const</span> <span class="keywordtype">char</span> *comments = (<span class="keyword">const</span> <span class="keywordtype">char</span>*)xmlNodeGetContent (node);
+00207 <span class="keywordflow">if</span> (comments)
+00208 {
+00209 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero0">Comments</a> = comments;
+00210
+00211 <span class="comment">// Delete the value</span>
+00212 xmlFree ((<span class="keywordtype">void</span>*)comments);
+00213 }
+00214 }
+00215 }
+00216
+00217 <span class="comment">// Look for the log node</span>
+00218 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> = <span class="stringliteral">""</span>;
+00219 node = CIXml::getFirstChildNode (root, <span class="stringliteral">"LOG"</span>);
+00220 <span class="keywordflow">if</span> (node)
+00221 {
+00222 <span class="comment">// Get a text node</span>
+00223 <span class="keywordflow">if</span> ((node = CIXml::getFirstChildNode (node, XML_TEXT_NODE)))
+00224 {
+00225 <span class="comment">// Get content</span>
+00226 <span class="keyword">const</span> <span class="keywordtype">char</span> *log = (<span class="keyword">const</span> <span class="keywordtype">char</span>*)xmlNodeGetContent (node);
+00227 <span class="keywordflow">if</span> (log)
+00228 {
+00229 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a> = log;
+00230
+00231 <span class="comment">// Delete the value</span>
+00232 xmlFree ((<span class="keywordtype">void</span>*)log);
+00233 }
+00234 }
+00235 }
+00236 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadera3" doxytag="NLGEORGES::CFileHeader::setComments" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLGEORGES::CFileHeader::setComments </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const char *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>comments</em> </td>
+ <td class="md" valign="top">&nbsp;)&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 the comment.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05773.html#l00114">114</a> of file <a class="el" href="a05773.html">header.cpp</a>.
+<p>
+References <a class="el" href="a05774.html#l00067">Comments</a>.
+<p>
+<div class="fragment"><pre>00115 {
+00116 <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero0">Comments</a> = comments;
+00117 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadera4" doxytag="NLGEORGES::CFileHeader::warning" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLGEORGES::CFileHeader::warning </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>exception</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>function</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>format</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>...&nbsp;</td>
+ <td class="mdname" nowrap></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"> const</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="a05773.html#l00250">250</a> of file <a class="el" href="a05773.html">header.cpp</a>.
+<p>
+References <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05646.html#l01016">format</a>, and <a class="el" href="a05724.html#l00045">NLGEORGES::warning()</a>.
+<p>
+Referenced by <a class="el" href="a05773.html#l00121">read()</a>.
+<p>
+<div class="fragment"><pre>00251 {
+00252 <span class="comment">// Make a buffer string</span>
+00253 va_list args;
+00254 va_start( args, format );
+00255 <span class="keywordtype">char</span> <a class="code" href="a04223.html#a589">buffer</a>[1024];
+00256 vsnprintf( buffer, 1024, format, args );
+00257 va_end( args );
+00258
+00259 <span class="comment">// Set the warning</span>
+00260 <a class="code" href="a05374.html#a0">NLGEORGES::warning</a> (exception, <span class="stringliteral">"(CFileHeader::%s) : %s"</span>, function, buffer);
+00261 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadera5" doxytag="NLGEORGES::CFileHeader::write" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLGEORGES::CFileHeader::write </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">xmlNodePtr&nbsp;</td>
+ <td class="mdname" nowrap> <em>node</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>georges4CVS</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"> const</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="a05773.html#l00055">55</a> of file <a class="el" href="a05773.html">header.cpp</a>.
+<p>
+References <a class="el" href="a05774.html#l00067">Comments</a>, <a class="el" href="a05774.html#l00070">Log</a>, <a class="el" href="a05774.html#l00055">MajorVersion</a>, <a class="el" href="a05774.html#l00058">MinorVersion</a>, <a class="el" href="a05774.html#l00064">Revision</a>, and <a class="el" href="a05586.html#l00161">NLMISC::smprintf()</a>.
+<p>
+Referenced by <a class="el" href="a06586.html#l00067">NLGEORGES::CType::write()</a>, <a class="el" href="a05726.html#l00053">NLGEORGES::CFormDfn::write()</a>, and <a class="el" href="a05724.html#l00116">NLGEORGES::CForm::write()</a>.
+<p>
+<div class="fragment"><pre>00056 {
+00057 <span class="comment">// Version for CVS ?</span>
+00058 <span class="keywordflow">if</span> (georges4CVS)
+00059 {
+00060 <span class="comment">// Georges version system</span>
+00061 xmlSetProp (node, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"Revision"</span>, (<span class="keyword">const</span> xmlChar*)<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero4">Revision</a>.c_str ());
+00062 }
+00063 <span class="keywordflow">else</span>
+00064 {
+00065 <span class="comment">// Georges version system</span>
+00066 <span class="keywordtype">char</span> tmp[512];
+00067 <a class="code" href="a05378.html#a259">smprintf</a> (tmp, 512, <span class="stringliteral">"%d.%d"</span>, MajorVersion, MinorVersion);
+00068 xmlSetProp (node, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"Version"</span>, (<span class="keyword">const</span> xmlChar*)tmp);
+00069 }
+00070
+00071 <span class="comment">// State</span>
+00072 <span class="keywordflow">if</span> (<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero5">State</a> == <a class="code" href="a02528.html#NLGEORGES_1_1CFileHeaderw3NLGEORGES_1_1CFileHeaderw1">Modified</a>)
+00073 xmlSetProp (node, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"State"</span>, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"modified"</span>);
+00074 <span class="keywordflow">else</span>
+00075 xmlSetProp (node, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"State"</span>, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"checked"</span>);
+00076
+00077 <span class="comment">// Comments of the form</span>
+00078 <span class="keywordflow">if</span> (!<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero0">Comments</a>.empty ())
+00079 {
+00080 <span class="comment">// Create a new node</span>
+00081 xmlNodePtr child = xmlNewChild ( node, NULL, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"COMMENTS"</span>, NULL);
+00082 xmlNodePtr textNode = xmlNewText ((<span class="keyword">const</span> xmlChar *)<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero0">Comments</a>.c_str());
+00083 xmlAddChild (child, textNode);
+00084 }
+00085
+00086 <span class="comment">// Logs</span>
+00087 <span class="keywordflow">if</span> (!<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a>.empty ())
+00088 {
+00089 <span class="comment">// Create a new node</span>
+00090 xmlNodePtr child = xmlNewChild ( node, NULL, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"LOG"</span>, NULL);
+00091 xmlNodePtr textNode = xmlNewText ((<span class="keyword">const</span> xmlChar *)<a class="code" href="a02528.html#NLGEORGES_1_1CFileHeadero1">Log</a>.c_str());
+00092 xmlAddChild (child, textNode);
+00093 }
+00094 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadero0" doxytag="NLGEORGES::CFileHeader::Comments" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::string <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero0">NLGEORGES::CFileHeader::Comments</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Comments of the form.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05774.html#l00067">67</a> of file <a class="el" href="a05774.html">header.h</a>.
+<p>
+Referenced by <a class="el" href="a06586.html#l00908">NLGEORGES::CType::getComment()</a>, <a class="el" href="a05726.html#l00827">NLGEORGES::CFormDfn::getComment()</a>, <a class="el" href="a05724.html#l00264">NLGEORGES::CForm::getComment()</a>, <a class="el" href="a05773.html#l00121">read()</a>, <a class="el" href="a05773.html#l00114">setComments()</a>, and <a class="el" href="a05773.html#l00055">write()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadero1" doxytag="NLGEORGES::CFileHeader::Log" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::string <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero1">NLGEORGES::CFileHeader::Log</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Log of the form.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05774.html#l00070">70</a> of file <a class="el" href="a05774.html">header.h</a>.
+<p>
+Referenced by <a class="el" href="a05773.html#l00098">addLog()</a>, <a class="el" href="a05773.html#l00121">read()</a>, and <a class="el" href="a05773.html#l00055">write()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadero2" doxytag="NLGEORGES::CFileHeader::MajorVersion" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero2">NLGEORGES::CFileHeader::MajorVersion</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Major version number.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05774.html#l00055">55</a> of file <a class="el" href="a05774.html">header.h</a>.
+<p>
+Referenced by <a class="el" href="a05773.html#l00044">CFileHeader()</a>, <a class="el" href="a05773.html#l00121">read()</a>, and <a class="el" href="a05773.html#l00055">write()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadero3" doxytag="NLGEORGES::CFileHeader::MinorVersion" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero3">NLGEORGES::CFileHeader::MinorVersion</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Minor version number.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05774.html#l00058">58</a> of file <a class="el" href="a05774.html">header.h</a>.
+<p>
+Referenced by <a class="el" href="a05773.html#l00044">CFileHeader()</a>, <a class="el" href="a05773.html#l00121">read()</a>, and <a class="el" href="a05773.html#l00055">write()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadero4" doxytag="NLGEORGES::CFileHeader::Revision" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::string <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero4">NLGEORGES::CFileHeader::Revision</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+CVS Revision string.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05774.html#l00064">64</a> of file <a class="el" href="a05774.html">header.h</a>.
+<p>
+Referenced by <a class="el" href="a05773.html#l00044">CFileHeader()</a>, <a class="el" href="a05773.html#l00121">read()</a>, and <a class="el" href="a05773.html#l00055">write()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLGEORGES_1_1CFileHeadero5" doxytag="NLGEORGES::CFileHeader::State" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeaderw3">TState</a> <a class="el" href="a02528.html#NLGEORGES_1_1CFileHeadero5">NLGEORGES::CFileHeader::State</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+State of the form.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05774.html#l00061">61</a> of file <a class="el" href="a05774.html">header.h</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05774.html">header.h</a><li><a class="el" href="a05773.html">header.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 12:39:50 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>