92 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Prototype of a <a class="el" href="classbdm_1_1UI.html" title="UserInfo is an abstract is for internal purposes only. Use CompoundUserInfo<T>...">UI</a> builder. Return value is by the second argument since it type checking via <code>dynamic_cast</code>. <a href="#946a134eecd2da41c36cb53a371afa57"></a><br></td></tr> |
93 | | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="98baf84be72bcbcc79c61bf4c8619252"></a><!-- doxytag: member="bdm::UI::build" ref="98baf84be72bcbcc79c61bf4c8619252" args="(Setting &element, const string &name)" --> |
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Prototype of a <a class="el" href="classbdm_1_1UI.html" title="This class serves to load and/or save DOMElements into/from files stored on a hard-disk...">UI</a> builder. Return value is by the second argument since it type checking via <code>dynamic_cast</code>. <a href="#f0eccc7bbe4b680f3e1cb84b455a1125"></a><br></td></tr> |
| 93 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="dda27449f8bd19d54db9ccfb2644e908"></a><!-- doxytag: member="bdm::UI::build" ref="dda27449f8bd19d54db9ccfb2644e908" args="(const Setting &element, const string &name)" --> |
97 | | <tr><td class="memTemplParams" nowrap colspan="2">template<class T > </td></tr> |
98 | | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#a86192d0fee67cc5b6f1eabe2bd0732a">save</a> (T &instance, Setting &element, const string &name="")</td></tr> |
99 | | |
100 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7fbba3fc8cf76b1aa297297a9cbf8f03"></a><!-- doxytag: member="bdm::UI::get" ref="7fbba3fc8cf76b1aa297297a9cbf8f03" args="(mat &matrix, const Setting &element, const string &name)" --> |
101 | | static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#7fbba3fc8cf76b1aa297297a9cbf8f03">get</a> (mat &matrix, const Setting &element, const string &name)</td></tr> |
| 97 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="32e63fc6ca11603442d46350bb66a76f"></a><!-- doxytag: member="bdm::UI::get" ref="32e63fc6ca11603442d46350bb66a76f" args="(T &instance, const Setting &element, const string &name)" --> |
| 98 | template<class T > </td></tr> |
| 99 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#32e63fc6ca11603442d46350bb66a76f">get</a> (T &instance, const Setting &element, const string &name)</td></tr> |
104 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e62b97a2df97510af794716eb6c37a"></a><!-- doxytag: member="bdm::UI::get" ref="05e62b97a2df97510af794716eb6c37a" args="(mat &matrix, const Setting &element, const int index)" --> |
105 | | static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#05e62b97a2df97510af794716eb6c37a">get</a> (mat &matrix, const Setting &element, const int index)</td></tr> |
| 102 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="0d197e27bb914fe6cc1ca41b90899742"></a><!-- doxytag: member="bdm::UI::get" ref="0d197e27bb914fe6cc1ca41b90899742" args="(T &instance, const Setting &element, const int index)" --> |
| 103 | template<class T > </td></tr> |
| 104 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#0d197e27bb914fe6cc1ca41b90899742">get</a> (T &instance, const Setting &element, const int index)</td></tr> |
108 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8ba9b7294f2041fd31107726ef735f78"></a><!-- doxytag: member="bdm::UI::save" ref="8ba9b7294f2041fd31107726ef735f78" args="(mat &matrix, Setting &element, const string &name="")" --> |
109 | | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#8ba9b7294f2041fd31107726ef735f78">save</a> (mat &matrix, Setting &element, const string &name="")</td></tr> |
| 107 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="7b83f1e2352f9ed7fb65437dd33e2005"></a><!-- doxytag: member="bdm::UI::get" ref="7b83f1e2352f9ed7fb65437dd33e2005" args="(Array< T > &array_to_load, const Setting &element, const string &name)" --> |
| 108 | template<class T > </td></tr> |
| 109 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#7b83f1e2352f9ed7fb65437dd33e2005">get</a> (Array< T > &array_to_load, const Setting &element, const string &name)</td></tr> |
| 110 | |
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to build a new double matrix. <br></td></tr> |
| 112 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="472abdce7adb048a40ef3d84ed0f592d"></a><!-- doxytag: member="bdm::UI::get" ref="472abdce7adb048a40ef3d84ed0f592d" args="(Array< T > &array_to_load, const Setting &element, const int index)" --> |
| 113 | template<class T > </td></tr> |
| 114 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#472abdce7adb048a40ef3d84ed0f592d">get</a> (Array< T > &array_to_load, const Setting &element, const int index)</td></tr> |
| 115 | |
| 116 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to build a new double matrix. <br></td></tr> |
| 117 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="c83987949e6a9e79d6e093797ab7d917"></a><!-- doxytag: member="bdm::UI::save" ref="c83987949e6a9e79d6e093797ab7d917" args="(const T *const instance, Setting &element, const string &name="")" --> |
| 118 | template<class T > </td></tr> |
| 119 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><b>save</b> (const T *const instance, Setting &element, const string &name="")</td></tr> |
| 120 | |
| 121 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="4514f93573a9d9126c506d176fbd3163"></a><!-- doxytag: member="bdm::UI::save" ref="4514f93573a9d9126c506d176fbd3163" args="(const Array< T > &array_to_save, Setting &element, const string &name="")" --> |
| 122 | template<class T > </td></tr> |
| 123 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#4514f93573a9d9126c506d176fbd3163">save</a> (const Array< T > &array_to_save, Setting &element, const string &name="")</td></tr> |
| 124 | |
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to save a double vec. <br></td></tr> |
| 126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="42e908a4f1b09d701be69c8784a02df7"></a><!-- doxytag: member="bdm::UI::save" ref="42e908a4f1b09d701be69c8784a02df7" args="(const mat &matrix, Setting &element, const string &name="")" --> |
| 127 | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#42e908a4f1b09d701be69c8784a02df7">save</a> (const mat &matrix, Setting &element, const string &name="")</td></tr> |
112 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0eab3627b6a14b932ebde0e5a3d9cad4"></a><!-- doxytag: member="bdm::UI::get" ref="0eab3627b6a14b932ebde0e5a3d9cad4" args="(ivec &vec, const Setting &element, const string &name)" --> |
113 | | static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#0eab3627b6a14b932ebde0e5a3d9cad4">get</a> (ivec &vec, const Setting &element, const string &name)</td></tr> |
114 | | |
115 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to build a new double vec. <br></td></tr> |
116 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de1ff787bb1c2fe8b000189d435575af"></a><!-- doxytag: member="bdm::UI::get" ref="de1ff787bb1c2fe8b000189d435575af" args="(ivec &vec, const Setting &element, const int index)" --> |
117 | | static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#de1ff787bb1c2fe8b000189d435575af">get</a> (ivec &vec, const Setting &element, const int index)</td></tr> |
118 | | |
119 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to build a new double vec. <br></td></tr> |
120 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1524f48ac7c08f5dc339853584c2ad9f"></a><!-- doxytag: member="bdm::UI::save" ref="1524f48ac7c08f5dc339853584c2ad9f" args="(ivec &vec, Setting &element, const string &name="")" --> |
121 | | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#1524f48ac7c08f5dc339853584c2ad9f">save</a> (ivec &vec, Setting &element, const string &name="")</td></tr> |
| 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc2afb61a772d8571f7bb19065da4695"></a><!-- doxytag: member="bdm::UI::save" ref="cc2afb61a772d8571f7bb19065da4695" args="(const ivec &vec, Setting &element, const string &name="")" --> |
| 131 | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#cc2afb61a772d8571f7bb19065da4695">save</a> (const ivec &vec, Setting &element, const string &name="")</td></tr> |
124 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="990baf528b3a87609475ce91931b2a99"></a><!-- doxytag: member="bdm::UI::get" ref="990baf528b3a87609475ce91931b2a99" args="(Array< string > &string_array, const Setting &element, const string &name)" --> |
125 | | static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#990baf528b3a87609475ce91931b2a99">get</a> (<a class="el" href="classitpp_1_1Array.html">Array</a>< string > &string_array, const Setting &element, const string &name)</td></tr> |
126 | | |
127 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to build a new double string_array. <br></td></tr> |
128 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3b6f3d40865e53e7adf7da95e11bc776"></a><!-- doxytag: member="bdm::UI::get" ref="3b6f3d40865e53e7adf7da95e11bc776" args="(Array< string > &string_array, const Setting &element, const int index)" --> |
129 | | static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#3b6f3d40865e53e7adf7da95e11bc776">get</a> (<a class="el" href="classitpp_1_1Array.html">Array</a>< string > &string_array, const Setting &element, const int index)</td></tr> |
130 | | |
131 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to build a new double string_array. <br></td></tr> |
132 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="367963d85dbafd3d4d3af0a5aefb161a"></a><!-- doxytag: member="bdm::UI::save" ref="367963d85dbafd3d4d3af0a5aefb161a" args="(Array< string > &string_array, Setting &element, const string &name="")" --> |
133 | | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1UI.html#367963d85dbafd3d4d3af0a5aefb161a">save</a> (<a class="el" href="classitpp_1_1Array.html">Array</a>< string > &string_array, Setting &element, const string &name="")</td></tr> |
134 | | |
135 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This methods tries to save a double string_array. <br></td></tr> |
149 | | Also, the main functions of the whole UserInfo library are included within this class, see static methods 'build' and 'save'.<p> |
| 147 | Firstly, you associate new RootElement instance with some filename during a time of its construtcion. Then, you save some object into the new RootElement instance, and save it into the file this way: <div class="fragment"><pre class="fragment"> CAudi audi; |
| 148 | RootElement root(<span class="stringliteral">"cars.xml"</span>); |
| 149 | UserInfo::save( audi, root, <span class="stringliteral">"TT"</span>); |
| 150 | root.save(); |
| 151 | </pre></div><p> |
| 152 | In the other way round, when loading object from a XML file, the appropriate code looks like this: <div class="fragment"><pre class="fragment"> RootElement root(<span class="stringliteral">"cars.xml"</span>); |
| 153 | root.load(); |
| 154 | UserInfo::build<T>(root,<span class="stringliteral">"TT"</span>); |
| 155 | </pre></div><p> |
| 156 | UserInfo is an abstract is for internal purposes only. Use CompoundUserInfo<T> or Particular_UI<T> instead. The raison d'etre of this class is to allow pointers to its templated descendants.Also, the main functions of the whole UserInfo library are included within this class, see static methods 'build' and 'save'.<p> |
184 | | <a class="anchor" name="a86192d0fee67cc5b6f1eabe2bd0732a"></a><!-- doxytag: member="bdm::UI::save" ref="a86192d0fee67cc5b6f1eabe2bd0732a" args="(T &instance, Setting &element, const string &name="")" --> |
185 | | <div class="memitem"> |
186 | | <div class="memproto"> |
187 | | <div class="memtemplate"> |
188 | | template<class T > </div> |
189 | | <table class="memname"> |
190 | | <tr> |
191 | | <td class="memname">static void bdm::UI::save </td> |
192 | | <td>(</td> |
193 | | <td class="paramtype">T & </td> |
194 | | <td class="paramname"> <em>instance</em>, </td> |
195 | | </tr> |
196 | | <tr> |
197 | | <td class="paramkey"></td> |
198 | | <td></td> |
199 | | <td class="paramtype">Setting & </td> |
200 | | <td class="paramname"> <em>element</em>, </td> |
201 | | </tr> |
202 | | <tr> |
203 | | <td class="paramkey"></td> |
204 | | <td></td> |
205 | | <td class="paramtype">const string & </td> |
206 | | <td class="paramname"> <em>name</em> = <code>""</code></td><td> </td> |
207 | | </tr> |
208 | | <tr> |
209 | | <td></td> |
210 | | <td>)</td> |
211 | | <td></td><td></td><td><code> [inline, static]</code></td> |
212 | | </tr> |
213 | | </table> |
| 191 | <hr>The documentation for this class was generated from the following files:<ul> |
| 192 | <li><a class="el" href="user__info_8h-source.html">user_info.h</a><li>user_info.cpp</ul> |