| 76 | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
| 77 | <p>This class serves to load and/or save user-infos into/from configuration files stored on a hard-disk. </p> |
| 78 | <p>Firstly, save some user-infos into the new <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. Then, call the save method with a filename as its only argument:</p> |
| 79 | <div class="fragment"><pre class="fragment"> CAudi audi; |
| 80 | <a class="code" href="classbdm_1_1UIFile.html#a77274c827f87f16bd6671df8a0cc1e33" title="Create empty file instance prepared to store Settings.">UIFile</a> file; |
| 81 | <a class="code" href="classbdm_1_1UIFile.html#a1f8af28a0d8ef1a4956e198df0beb5ba" title="Save all the stored Settings into the configuration file file_name.">UI::save</a>( audi, file, <span class="stringliteral">"TT"</span>); |
| 82 | file.save(<span class="stringliteral">"cars.cfg"</span>); |
| 83 | </pre></div><p>In the other way round, when loading object from a configuration file, the appropriate code looks like this:</p> |
| 84 | <div class="fragment"><pre class="fragment"> <a class="code" href="classbdm_1_1UIFile.html#a77274c827f87f16bd6671df8a0cc1e33" title="Create empty file instance prepared to store Settings.">UIFile</a> file(<span class="stringliteral">"cars.cfg"</span>); |
| 85 | CAudi *audi = UI::build<CAudi>(file,<span class="stringliteral">"TT"</span>); |
| 86 | </pre></div><p><a class="el" href="ui_page.html">User Infos and their use</a> </p> |
95 | | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
96 | | <p>This class serves to load and/or save user-infos into/from configuration files stored on a hard-disk. </p> |
97 | | <p>Firstly, save some user-infos into the new <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. Then, call the save method with a filename as its only argument:</p> |
98 | | <div class="fragment"><pre class="fragment"> CAudi audi; |
99 | | <a class="code" href="classbdm_1_1UIFile.html#a77274c827f87f16bd6671df8a0cc1e33" title="Create empty file instance prepared to store Settings.">UIFile</a> file; |
100 | | <a class="code" href="classbdm_1_1UIFile.html#a1f8af28a0d8ef1a4956e198df0beb5ba" title="Save all the stored Settings into the configuration file file_name.">UI::save</a>( audi, file, <span class="stringliteral">"TT"</span>); |
101 | | file.save(<span class="stringliteral">"cars.cfg"</span>); |
102 | | </pre></div><p>In the other way round, when loading object from a configuration file, the appropriate code looks like this:</p> |
103 | | <div class="fragment"><pre class="fragment"> <a class="code" href="classbdm_1_1UIFile.html#a77274c827f87f16bd6671df8a0cc1e33" title="Create empty file instance prepared to store Settings.">UIFile</a> file(<span class="stringliteral">"cars.cfg"</span>); |
104 | | CAudi *audi = UI::build<CAudi>(file,<span class="stringliteral">"TT"</span>); |
105 | | </pre></div><p><a class="el" href="ui_page.html">User Infos and their use</a> </p> |