1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
3 | <title>mixpp: ValuedUserInfo< T > Class Template Reference</title> |
---|
4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
8 | <div class="navigation" id="top"> |
---|
9 | <div class="tabs"> |
---|
10 | <ul> |
---|
11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
13 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
14 | <li><a href="files.html"><span>Files</span></a></li> |
---|
15 | </ul> |
---|
16 | </div> |
---|
17 | <div class="tabs"> |
---|
18 | <ul> |
---|
19 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
20 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
21 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
22 | </ul> |
---|
23 | </div> |
---|
24 | </div> |
---|
25 | <div class="contents"> |
---|
26 | <h1>ValuedUserInfo< T > Class Template Reference</h1><!-- doxytag: class="ValuedUserInfo" --><!-- doxytag: inherits="TypedUserInfo" -->The main userinfo template class. It should be derived whenever you need a new userinfo of a class which does not contain any subelements. It is the case of basic classes(or types) like int, string, double, etc. |
---|
27 | <a href="#_details">More...</a> |
---|
28 | <p> |
---|
29 | <code>#include <<a class="el" href="userinfo_8h-source.html">userinfo.h</a>></code> |
---|
30 | <p> |
---|
31 | <div class="dynheader"> |
---|
32 | Inheritance diagram for ValuedUserInfo< T >:</div> |
---|
33 | <div class="dynsection"> |
---|
34 | <p><center><img src="classValuedUserInfo__inherit__graph.png" border="0" usemap="#ValuedUserInfo_3_01T_01_4__inherit__map" alt="Inheritance graph"></center> |
---|
35 | <map name="ValuedUserInfo_3_01T_01_4__inherit__map"> |
---|
36 | <area shape="rect" href="classValuedUserInfo.html" title="ValuedUserInfo\< double \>" alt="" coords="769,5,959,32"><area shape="rect" href="classValuedUserInfo.html" title="ValuedUserInfo\< int \>" alt="" coords="783,56,945,83"><area shape="rect" href="classValuedUserInfo.html" title="ValuedUserInfo\< string \>" alt="" coords="772,107,956,133"><area shape="rect" href="classValuedUserInfo.html" title="ValuedUserInfo\< bool \>" alt="" coords="777,157,951,184"><area shape="rect" href="classTypedUserInfo.html" title="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is..." alt="" coords="292,83,439,109"><area shape="rect" href="classUserInfo.html" title="UserInfo is an abstract is for internal purposes only. Use CompoundUserInfo<T>..." alt="" coords="165,83,240,109"><area shape="rect" href="classBindingFrame.html" title="Abstract class declaring general properties of a frame for data binding." alt="" coords="7,83,113,109"></map> |
---|
37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
38 | <div class="dynheader"> |
---|
39 | Collaboration diagram for ValuedUserInfo< T >:</div> |
---|
40 | <div class="dynsection"> |
---|
41 | <p><center><img src="classValuedUserInfo__coll__graph.png" border="0" usemap="#ValuedUserInfo_3_01T_01_4__coll__map" alt="Collaboration graph"></center> |
---|
42 | <map name="ValuedUserInfo_3_01T_01_4__coll__map"> |
---|
43 | <area shape="rect" href="classTypedUserInfo.html" title="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is..." alt="" coords="79,311,225,337"><area shape="rect" href="classUserInfo.html" title="UserInfo is an abstract is for internal purposes only. Use CompoundUserInfo<T>..." alt="" coords="84,215,159,241"><area shape="rect" href="classBindingFrame.html" title="Abstract class declaring general properties of a frame for data binding." alt="" coords="24,103,131,129"><area shape="rect" href="classAssertXercesIsAlive.html" title="Class initializing Xerces library." alt="" coords="5,7,149,33"></map> |
---|
44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
45 | |
---|
46 | <p> |
---|
47 | <a href="classValuedUserInfo-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
48 | <tr><td></td></tr> |
---|
49 | <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> |
---|
50 | <tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr> |
---|
51 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static T * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classUserInfo.html#0f090c6525a3e8fb11634a553f467ede">Assembly</a> (DOMElement &element, const string tagName)</td></tr> |
---|
52 | |
---|
53 | <tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr> |
---|
54 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classUserInfo.html#1d402661b82feccb5265a70f65c242e1">Disassembly</a> (T &<a class="el" href="classTypedUserInfo.html#c7ad10a9ff002383518155c965ade85c">instance</a>, DOMElement &element, const string tagName, const string help)</td></tr> |
---|
55 | |
---|
56 | <tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr> |
---|
57 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classUserInfo.html#917b2257abc31b94c89ef3cd270e4a42">Disassembly</a> (T &<a class="el" href="classTypedUserInfo.html#c7ad10a9ff002383518155c965ade85c">instance</a>, DOMElement &element, const string tagName)</td></tr> |
---|
58 | |
---|
59 | <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> |
---|
60 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="86897fcfe4666183bcecf16a23715cdb"></a><!-- doxytag: member="ValuedUserInfo::ValuedUserInfo" ref="86897fcfe4666183bcecf16a23715cdb" args="(string userFriendlyTypeName)" --> |
---|
61 | </td><td class="memItemRight" valign="bottom"><b>ValuedUserInfo</b> (string userFriendlyTypeName)</td></tr> |
---|
62 | |
---|
63 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2244bd5181c3d1e70f3a6be2b72e9424"></a><!-- doxytag: member="ValuedUserInfo::XMLCh2str" ref="2244bd5181c3d1e70f3a6be2b72e9424" args="(const XMLCh *const XMLCh_str)" --> |
---|
64 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classBindingFrame.html#2244bd5181c3d1e70f3a6be2b72e9424">XMLCh2str</a> (const XMLCh *const XMLCh_str)</td></tr> |
---|
65 | |
---|
66 | <tr><td class="mdescLeft"> </td><td class="mdescRight">function which transcodes Xerces' XMLCh-based strings into C++ strings <br></td></tr> |
---|
67 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="820e4df85c0dc545e3079e407fcdbbaa"></a><!-- doxytag: member="ValuedUserInfo::removeSpaces" ref="820e4df85c0dc545e3079e407fcdbbaa" args="(const string &str)" --> |
---|
68 | string </td><td class="memItemRight" valign="bottom"><b>removeSpaces</b> (const string &<a class="el" href="classstr.html">str</a>)</td></tr> |
---|
69 | |
---|
70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d4dc5902ee71a473983d6a8fa3c8b7a"></a><!-- doxytag: member="ValuedUserInfo::ReleaseMemory" ref="8d4dc5902ee71a473983d6a8fa3c8b7a" args="()" --> |
---|
71 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBindingFrame.html#8d4dc5902ee71a473983d6a8fa3c8b7a">ReleaseMemory</a> ()</td></tr> |
---|
72 | |
---|
73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">A method for releasing memory allocated within the 'AssemblyComponentsFromXML()' method. <br></td></tr> |
---|
74 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
75 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="10a0acb3696018386451881ebcc797ea"></a><!-- doxytag: member="ValuedUserInfo::value" ref="10a0acb3696018386451881ebcc797ea" args="" --> |
---|
76 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classValuedUserInfo.html#10a0acb3696018386451881ebcc797ea">value</a></td></tr> |
---|
77 | |
---|
78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">string variable which is automatically binded to a proper DOMElement attribute <br></td></tr> |
---|
79 | <tr><td colspan="2"><br><h2>Static Protected Attributes</h2></td></tr> |
---|
80 | <tr><td class="memItemLeft" nowrap align="right" valign="top">static const <a class="el" href="classTypedUserInfo.html">TypedUserInfo</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classTypedUserInfo.html#c7ad10a9ff002383518155c965ade85c">instance</a></td></tr> |
---|
81 | |
---|
82 | </table> |
---|
83 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
84 | <h3>template<typename T><br> |
---|
85 | class ValuedUserInfo< T ></h3> |
---|
86 | |
---|
87 | The main userinfo template class. It should be derived whenever you need a new userinfo of a class which does not contain any subelements. It is the case of basic classes(or types) like int, string, double, etc. |
---|
88 | <p> |
---|
89 | The only thing left is to translate its public string attribute 'value' into a value of type T and also implement conversion in the other way round. For that, an overloading of methods T* AssemblyInstance() / bool DisassemblyInstance(T &instance) is fruitful. See some valued userinfo below as an example. <hr><h2>Member Function Documentation</h2> |
---|
90 | <a class="anchor" name="0f090c6525a3e8fb11634a553f467ede"></a><!-- doxytag: member="ValuedUserInfo::Assembly" ref="0f090c6525a3e8fb11634a553f467ede" args="(DOMElement &element, const string tagName)" --> |
---|
91 | <div class="memitem"> |
---|
92 | <div class="memproto"> |
---|
93 | <div class="memtemplate"> |
---|
94 | template<class T> </div> |
---|
95 | <table class="memname"> |
---|
96 | <tr> |
---|
97 | <td class="memname">static T* UserInfo::Assembly </td> |
---|
98 | <td>(</td> |
---|
99 | <td class="paramtype">DOMElement & </td> |
---|
100 | <td class="paramname"> <em>element</em>, </td> |
---|
101 | </tr> |
---|
102 | <tr> |
---|
103 | <td class="paramkey"></td> |
---|
104 | <td></td> |
---|
105 | <td class="paramtype">const string </td> |
---|
106 | <td class="paramname"> <em>tagName</em></td><td> </td> |
---|
107 | </tr> |
---|
108 | <tr> |
---|
109 | <td></td> |
---|
110 | <td>)</td> |
---|
111 | <td></td><td></td><td><code> [inline, static, inherited]</code></td> |
---|
112 | </tr> |
---|
113 | </table> |
---|
114 | </div> |
---|
115 | <div class="memdoc"> |
---|
116 | |
---|
117 | <p> |
---|
118 | This methods tries to assembly a new instance of type T (or some of its descendant types) according to a data stored in a DOMNode named tagName within a child nodes of the passed element. If an error occurs, it returns a NULL pointer. |
---|
119 | <p>References <a class="el" href="userinfo_8cpp-source.html#l00040">Attribute::Get()</a>, and <a class="el" href="userinfo_8h-source.html#l00152">Attribute::type</a>.</p> |
---|
120 | |
---|
121 | </div> |
---|
122 | </div><p> |
---|
123 | <a class="anchor" name="1d402661b82feccb5265a70f65c242e1"></a><!-- doxytag: member="ValuedUserInfo::Disassembly" ref="1d402661b82feccb5265a70f65c242e1" args="(T &instance, DOMElement &element, const string tagName, const string help)" --> |
---|
124 | <div class="memitem"> |
---|
125 | <div class="memproto"> |
---|
126 | <div class="memtemplate"> |
---|
127 | template<class T> </div> |
---|
128 | <table class="memname"> |
---|
129 | <tr> |
---|
130 | <td class="memname">static bool UserInfo::Disassembly </td> |
---|
131 | <td>(</td> |
---|
132 | <td class="paramtype">T & </td> |
---|
133 | <td class="paramname"> <em>instance</em>, </td> |
---|
134 | </tr> |
---|
135 | <tr> |
---|
136 | <td class="paramkey"></td> |
---|
137 | <td></td> |
---|
138 | <td class="paramtype">DOMElement & </td> |
---|
139 | <td class="paramname"> <em>element</em>, </td> |
---|
140 | </tr> |
---|
141 | <tr> |
---|
142 | <td class="paramkey"></td> |
---|
143 | <td></td> |
---|
144 | <td class="paramtype">const string </td> |
---|
145 | <td class="paramname"> <em>tagName</em>, </td> |
---|
146 | </tr> |
---|
147 | <tr> |
---|
148 | <td class="paramkey"></td> |
---|
149 | <td></td> |
---|
150 | <td class="paramtype">const string </td> |
---|
151 | <td class="paramname"> <em>help</em></td><td> </td> |
---|
152 | </tr> |
---|
153 | <tr> |
---|
154 | <td></td> |
---|
155 | <td>)</td> |
---|
156 | <td></td><td></td><td><code> [inline, static, inherited]</code></td> |
---|
157 | </tr> |
---|
158 | </table> |
---|
159 | </div> |
---|
160 | <div class="memdoc"> |
---|
161 | |
---|
162 | <p> |
---|
163 | This methods tries to disassembly an instance of type T (or some of its descendant types) and build DOM tree accordingly. Then, it creates a new DOMNode named according tagName and connecti it to the passed DOMElement as a new child node (with a help attribute filled). |
---|
164 | <p>References <a class="el" href="userinfo_8h-source.html#l00149">Attribute::help</a>, <a class="el" href="userinfo_8cpp-source.html#l00046">Attribute::Set()</a>, and <a class="el" href="userinfo_8h-source.html#l00152">Attribute::type</a>.</p> |
---|
165 | |
---|
166 | <p>Referenced by <a class="el" href="userinfo_8h-source.html#l00327">UserInfo::Disassembly()</a>, and <a class="el" href="userinfo_8h-source.html#l00479">CompoundUserInfo< T >::BindedElement< U >::DisassemblyComponentsToXML()</a>.</p> |
---|
167 | |
---|
168 | </div> |
---|
169 | </div><p> |
---|
170 | <a class="anchor" name="917b2257abc31b94c89ef3cd270e4a42"></a><!-- doxytag: member="ValuedUserInfo::Disassembly" ref="917b2257abc31b94c89ef3cd270e4a42" args="(T &instance, DOMElement &element, const string tagName)" --> |
---|
171 | <div class="memitem"> |
---|
172 | <div class="memproto"> |
---|
173 | <div class="memtemplate"> |
---|
174 | template<class T> </div> |
---|
175 | <table class="memname"> |
---|
176 | <tr> |
---|
177 | <td class="memname">static bool UserInfo::Disassembly </td> |
---|
178 | <td>(</td> |
---|
179 | <td class="paramtype">T & </td> |
---|
180 | <td class="paramname"> <em>instance</em>, </td> |
---|
181 | </tr> |
---|
182 | <tr> |
---|
183 | <td class="paramkey"></td> |
---|
184 | <td></td> |
---|
185 | <td class="paramtype">DOMElement & </td> |
---|
186 | <td class="paramname"> <em>element</em>, </td> |
---|
187 | </tr> |
---|
188 | <tr> |
---|
189 | <td class="paramkey"></td> |
---|
190 | <td></td> |
---|
191 | <td class="paramtype">const string </td> |
---|
192 | <td class="paramname"> <em>tagName</em></td><td> </td> |
---|
193 | </tr> |
---|
194 | <tr> |
---|
195 | <td></td> |
---|
196 | <td>)</td> |
---|
197 | <td></td><td></td><td><code> [inline, static, inherited]</code></td> |
---|
198 | </tr> |
---|
199 | </table> |
---|
200 | </div> |
---|
201 | <div class="memdoc"> |
---|
202 | |
---|
203 | <p> |
---|
204 | This methods tries to disassembly an instance of type T (or some of its descendant types) and build DOM tree accordingly. Then, it creates a new DOMNode named according tagName and connecti it to the passed DOMElement as a new child node. |
---|
205 | <p>References <a class="el" href="userinfo_8h-source.html#l00297">UserInfo::Disassembly()</a>.</p> |
---|
206 | |
---|
207 | </div> |
---|
208 | </div><p> |
---|
209 | <hr><h2>Member Data Documentation</h2> |
---|
210 | <a class="anchor" name="c7ad10a9ff002383518155c965ade85c"></a><!-- doxytag: member="ValuedUserInfo::instance" ref="c7ad10a9ff002383518155c965ade85c" args="" --> |
---|
211 | <div class="memitem"> |
---|
212 | <div class="memproto"> |
---|
213 | <div class="memtemplate"> |
---|
214 | template<typename T> </div> |
---|
215 | <table class="memname"> |
---|
216 | <tr> |
---|
217 | <td class="memname">const <a class="el" href="classTypedUserInfo.html">TypedUserInfo</a><T>& <a class="el" href="classTypedUserInfo.html">TypedUserInfo</a>< T >::<a class="el" href="classTypedUserInfo.html#c7ad10a9ff002383518155c965ade85c">instance</a><code> [static, protected, inherited]</code> </td> |
---|
218 | </tr> |
---|
219 | </table> |
---|
220 | </div> |
---|
221 | <div class="memdoc"> |
---|
222 | |
---|
223 | <p> |
---|
224 | the only instance of this class (each type T has its own instance) which is used as a factory for processing related userinfos |
---|
225 | </div> |
---|
226 | </div><p> |
---|
227 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
228 | <li>work/git/mixpp/bdm/<a class="el" href="userinfo_8h-source.html">userinfo.h</a></ul> |
---|
229 | </div> |
---|
230 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 23 16:00:56 2008 for mixpp by |
---|
231 | <a href="http://www.doxygen.org/index.html"> |
---|
232 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
233 | </body> |
---|
234 | </html> |
---|