Show
Ignore:
Timestamp:
08/05/09 00:16:53 (16 years ago)
Author:
mido
Message:

obnovena dokumentace, vcetne pridani mnoha novych doc-souboru do svn

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/classbdm_1_1SettingResolver.html

    r401 r472  
    55<link href="doxygen.css" rel="stylesheet" type="text/css"> 
    66</head><body> 
    7 <!-- Generated by Doxygen 1.5.8 --> 
     7<!-- Generated by Doxygen 1.5.9 --> 
    88<script type="text/javascript"> 
    99<!-- 
     
    5252      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li> 
    5353      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> 
    54       <li><a href="modules.html"><span>Modules</span></a></li> 
    5554      <li class="current"><a href="annotated.html"><span>Classes</span></a></li> 
    5655      <li><a href="files.html"><span>Files</span></a></li> 
     
    7271<a href="#_details">More...</a> 
    7372<p> 
    74 <code>#include &lt;<a class="el" href="user__info_8h-source.html">user_info.h</a>&gt;</code> 
     73<code>#include &lt;<a class="el" href="user__info_8h_source.html">user_info.h</a>&gt;</code> 
    7574<p> 
    7675 
     
    116115Link have three parts, &lt;name&gt; : &lt;path&gt; &lt;@filename&gt;. Field &lt;name&gt; contains the name of the new setting, &lt;path&gt; is the relative path to the referenced setting, which has to be taken from the root Setting element. The last part &lt;@filename&gt; is optional, it contains filename in the case the link should refer to a variable stored in a different file. From the previous part &lt;path&gt;, it has to be separated by '@'.<p> 
    117116<div class="fragment"><pre class="fragment">    ... 
    118         jardovo :  
     117        jardovo : 
    119118        { 
    120119          <span class="keyword">class </span>= "Car"; 
     
    123122          kilometers = 1555000; 
    124123        }; 
    125         ondrejovo :  
     124        ondrejovo : 
    126125        { 
    127126          <span class="keyword">class </span>= "Bike"; 
     
    131130          matr = ( 2, 2, [ 1.0, 0.0, 0.0, 1.0 ] ); 
    132131        }; 
    133          
    134 <span class="preprocessor">        #this is the example of local link to another mean of transport </span> 
     132 
     133<span class="preprocessor">        #this is the example of local link to another mean of transport</span> 
    135134<span class="preprocessor"></span>        elisky = <span class="stringliteral">"jardovo"</span>; 
    136135 
    137136        ... 
    138137 
    139         # and <span class="keyword">this</span> link is external link pointing to file <span class="stringliteral">"other_cars.cfg"</span> stored in the 
    140 <span class="preprocessor">        # same directory, in that file, it refers to the local Setting "magic_cars.skubankovo"</span> 
     138        # And <span class="keyword">this</span> link is external link pointing to the file <span class="stringliteral">"other_cars.cfg"</span> stored in the 
     139<span class="preprocessor">        # same directory. In that file, it refers to the local Setting "magic_cars.skubankovo".</span> 
    141140<span class="preprocessor"></span>        kati = <span class="stringliteral">"magic_cars.skubankovo@other_cars.cfg"</span>; 
    142141 
     
    154153        ... 
    155154</pre></div><p> 
    156 The whole point is that a resolved link (class member <a class="el" href="classbdm_1_1SettingResolver.html#adfcd0a81d025c52c8335b6aea07b498" title="Reference to a resolved link or to the original Setting in the case it does not contain...">result</a>, i.e., "link.result" in the previous example) could point into a different configuration file. In that case there has to be an <a class="el" href="classbdm_1_1UIFile.html" title="This class serves to load and/or save user-infos into/from configuration files stored...">UIFile</a> instance managing reading from this file. As the libconfig::Config deletes all its Settings when dealocated, <a class="el" href="classbdm_1_1UIFile.html" title="This class serves to load and/or save user-infos into/from configuration files stored...">UIFile</a> must not be dealocated until all the necessary operation on the linked Setting are finished (otherwise, the link <a class="el" href="classbdm_1_1SettingResolver.html#adfcd0a81d025c52c8335b6aea07b498" title="Reference to a resolved link or to the original Setting in the case it does not contain...">result</a> would be invalid just after the <a class="el" href="classbdm_1_1UIFile.html" title="This class serves to load and/or save user-infos into/from configuration files stored...">UIFile</a> dealocation). And that is exactly the mechanism implemented within <a class="el" href="classbdm_1_1SettingResolver.html" title="This class serves to expand links used within configuration files.">SettingResolver</a> class. It assures, that the <a class="el" href="classbdm_1_1SettingResolver.html#adfcd0a81d025c52c8335b6aea07b498" title="Reference to a resolved link or to the original Setting in the case it does not contain...">result</a> Setting reference is valid within the scope of <a class="el" href="classbdm_1_1SettingResolver.html" title="This class serves to expand links used within configuration files.">SettingResolver</a> instance. <hr>The documentation for this class was generated from the following files:<ul> 
    157 <li><a class="el" href="user__info_8h-source.html">user_info.h</a><li>user_info.cpp</ul> 
     155The whole point is that a resolved link (class member <a class="el" href="classbdm_1_1SettingResolver.html#adfcd0a81d025c52c8335b6aea07b498" title="Reference to a resolved link or to the original Setting in the case it does not contain...">result</a>, i.e., "link.result" in the previous example) could point into a different configuration file. In that case there has to be an <a class="el" href="classbdm_1_1UIFile.html" title="This class serves to load and/or save user-infos into/from configuration files stored...">UIFile</a> instance managing reading from this file. As the libconfig::Config deletes all its Settings when dealocated, <a class="el" href="classbdm_1_1UIFile.html" title="This class serves to load and/or save user-infos into/from configuration files stored...">UIFile</a> must not be dealocated until all the necessary operation on the linked Setting are finished (otherwise, the link <a class="el" href="classbdm_1_1SettingResolver.html#adfcd0a81d025c52c8335b6aea07b498" title="Reference to a resolved link or to the original Setting in the case it does not contain...">result</a> would be invalid just after the <a class="el" href="classbdm_1_1UIFile.html" title="This class serves to load and/or save user-infos into/from configuration files stored...">UIFile</a> dealocation). And that is exactly the mechanism implemented within <a class="el" href="classbdm_1_1SettingResolver.html" title="This class serves to expand links used within configuration files.">SettingResolver</a> class. It assures, that the <a class="el" href="classbdm_1_1SettingResolver.html#adfcd0a81d025c52c8335b6aea07b498" title="Reference to a resolved link or to the original Setting in the case it does not contain...">result</a> Setting reference is valid within the scope of <a class="el" href="classbdm_1_1SettingResolver.html" title="This class serves to expand links used within configuration files.">SettingResolver</a> instance.<p> 
     156<a class="el" href="ui_page.html">User Infos and their use</a> <hr>The documentation for this class was generated from the following files:<ul> 
     157<li><a class="el" href="user__info_8h_source.html">user_info.h</a><li>user_info.cpp</ul> 
    158158</div> 
    159 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 1 13:05:57 2009 for mixpp by&nbsp; 
     159<hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:06:56 2009 for mixpp by&nbsp; 
    160160<a href="http://www.doxygen.org/index.html"> 
    161 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> 
     161<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 
    162162</body> 
    163163</html>