1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
3 | <compounddef id="testUI_8cpp" kind="file"> |
---|
4 | <compoundname>testUI.cpp</compoundname> |
---|
5 | <includes refid="userinfo_8h" local="yes">userinfo.h</includes> |
---|
6 | <incdepgraph> |
---|
7 | <node id="938"> |
---|
8 | <label>xercesc/framework/LocalFileInputSource.hpp</label> |
---|
9 | </node> |
---|
10 | <node id="936"> |
---|
11 | <label>xercesc/util/XMLString.hpp</label> |
---|
12 | </node> |
---|
13 | <node id="940"> |
---|
14 | <label>xercesc/parsers/XercesDOMParser.hpp</label> |
---|
15 | </node> |
---|
16 | <node id="929"> |
---|
17 | <label>string</label> |
---|
18 | </node> |
---|
19 | <node id="931"> |
---|
20 | <label>map</label> |
---|
21 | </node> |
---|
22 | <node id="925"> |
---|
23 | <label>userinfo.h</label> |
---|
24 | <link refid="userinfo_8h-source"/> |
---|
25 | <childnode refid="926" relation="include"> |
---|
26 | </childnode> |
---|
27 | <childnode refid="927" relation="include"> |
---|
28 | </childnode> |
---|
29 | <childnode refid="928" relation="include"> |
---|
30 | </childnode> |
---|
31 | <childnode refid="929" relation="include"> |
---|
32 | </childnode> |
---|
33 | <childnode refid="930" relation="include"> |
---|
34 | </childnode> |
---|
35 | <childnode refid="931" relation="include"> |
---|
36 | </childnode> |
---|
37 | <childnode refid="932" relation="include"> |
---|
38 | </childnode> |
---|
39 | <childnode refid="933" relation="include"> |
---|
40 | </childnode> |
---|
41 | <childnode refid="934" relation="include"> |
---|
42 | </childnode> |
---|
43 | <childnode refid="935" relation="include"> |
---|
44 | </childnode> |
---|
45 | <childnode refid="936" relation="include"> |
---|
46 | </childnode> |
---|
47 | <childnode refid="937" relation="include"> |
---|
48 | </childnode> |
---|
49 | <childnode refid="938" relation="include"> |
---|
50 | </childnode> |
---|
51 | <childnode refid="939" relation="include"> |
---|
52 | </childnode> |
---|
53 | <childnode refid="940" relation="include"> |
---|
54 | </childnode> |
---|
55 | </node> |
---|
56 | <node id="930"> |
---|
57 | <label>typeinfo</label> |
---|
58 | </node> |
---|
59 | <node id="933"> |
---|
60 | <label>vector</label> |
---|
61 | </node> |
---|
62 | <node id="932"> |
---|
63 | <label>utility</label> |
---|
64 | </node> |
---|
65 | <node id="926"> |
---|
66 | <label>sstream</label> |
---|
67 | </node> |
---|
68 | <node id="927"> |
---|
69 | <label>iostream</label> |
---|
70 | </node> |
---|
71 | <node id="924"> |
---|
72 | <label>work/git/mixpp/tests/testUI.cpp</label> |
---|
73 | <link refid="testUI.cpp"/> |
---|
74 | <childnode refid="925" relation="include"> |
---|
75 | </childnode> |
---|
76 | </node> |
---|
77 | <node id="939"> |
---|
78 | <label>xercesc/dom/DOMWriter.hpp</label> |
---|
79 | </node> |
---|
80 | <node id="937"> |
---|
81 | <label>xercesc/framework/LocalFileFormatTarget.hpp</label> |
---|
82 | </node> |
---|
83 | <node id="934"> |
---|
84 | <label>xercesc/dom/DOM.hpp</label> |
---|
85 | </node> |
---|
86 | <node id="935"> |
---|
87 | <label>xercesc/util/PlatformUtils.hpp</label> |
---|
88 | </node> |
---|
89 | <node id="928"> |
---|
90 | <label>stdio.h</label> |
---|
91 | </node> |
---|
92 | </incdepgraph> |
---|
93 | <innerclass refid="classTransport" prot="public">Transport</innerclass> |
---|
94 | <innerclass refid="classCar" prot="public">Car</innerclass> |
---|
95 | <innerclass refid="classBike" prot="public">Bike</innerclass> |
---|
96 | <innerclass refid="classCarUI" prot="public">CarUI</innerclass> |
---|
97 | <innerclass refid="classBikeUI" prot="public">BikeUI</innerclass> |
---|
98 | <sectiondef kind="func"> |
---|
99 | <memberdef kind="function" id="testUI_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
100 | <type>int</type> |
---|
101 | <definition>int main</definition> |
---|
102 | <argsstring>()</argsstring> |
---|
103 | <name>main</name> |
---|
104 | <briefdescription> |
---|
105 | </briefdescription> |
---|
106 | <detaileddescription> |
---|
107 | </detaileddescription> |
---|
108 | <inbodydescription> |
---|
109 | </inbodydescription> |
---|
110 | <location file="/home/smidl/work/git/mixpp/tests/testUI.cpp" line="135" bodyfile="/home/smidl/work/git/mixpp/tests/testUI.cpp" bodystart="134" bodyend="173"/> |
---|
111 | </memberdef> |
---|
112 | </sectiondef> |
---|
113 | <briefdescription> |
---|
114 | </briefdescription> |
---|
115 | <detaileddescription> |
---|
116 | </detaileddescription> |
---|
117 | <programlisting> |
---|
118 | <codeline lineno="1"><highlight class="preprocessor">#include<sp/>"userinfo.h"</highlight><highlight class="normal"></highlight></codeline> |
---|
119 | <codeline lineno="2"><highlight class="normal"></highlight></codeline> |
---|
120 | <codeline lineno="3"><highlight class="normal"></highlight></codeline> |
---|
121 | <codeline lineno="7"><highlight class="keyword">class<sp/></highlight><highlight class="normal">Transport</highlight></codeline> |
---|
122 | <codeline lineno="8"><highlight class="normal">{</highlight></codeline> |
---|
123 | <codeline lineno="9"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
124 | <codeline lineno="10"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>year;</highlight></codeline> |
---|
125 | <codeline lineno="11"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>manufacturer;</highlight></codeline> |
---|
126 | <codeline lineno="12"><highlight class="normal"></highlight></codeline> |
---|
127 | <codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Transport(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>year,<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>manufacturer<sp/>)</highlight></codeline> |
---|
128 | <codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>year(<sp/>year<sp/>),<sp/>manufacturer(<sp/>manufacturer<sp/>)</highlight></codeline> |
---|
129 | <codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
130 | <codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
131 | <codeline lineno="17"><highlight class="normal"></highlight></codeline> |
---|
132 | <codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>ToString()<sp/>=<sp/>0;</highlight></codeline> |
---|
133 | <codeline lineno="19"><highlight class="normal">};</highlight></codeline> |
---|
134 | <codeline lineno="20"><highlight class="normal"></highlight></codeline> |
---|
135 | <codeline lineno="21"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">Car<sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/>Transport</highlight></codeline> |
---|
136 | <codeline lineno="22"><highlight class="normal">{</highlight></codeline> |
---|
137 | <codeline lineno="23"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
138 | <codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>kilometers;</highlight></codeline> |
---|
139 | <codeline lineno="25"><highlight class="normal"></highlight></codeline> |
---|
140 | <codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Car(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>year,<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>manufacturer,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>kilometers<sp/>)</highlight></codeline> |
---|
141 | <codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>Transport(<sp/>year,<sp/>manufacturer<sp/>),<sp/>kilometers(<sp/>kilometers<sp/>)</highlight></codeline> |
---|
142 | <codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
143 | <codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
144 | <codeline lineno="30"><highlight class="normal"></highlight></codeline> |
---|
145 | <codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>ToString()</highlight></codeline> |
---|
146 | <codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
147 | <codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/></highlight><highlight class="stringliteral">"a<sp/>car<sp/>made<sp/>in<sp/>"</highlight><highlight class="normal"><sp/><<<sp/>year<sp/><<<sp/></highlight><highlight class="stringliteral">"<sp/>by<sp/>"</highlight><highlight class="normal"><sp/><<<sp/>manufacturer<sp/><<<sp/></highlight><highlight class="stringliteral">",<sp/>having<sp/>"</highlight><highlight class="normal"><sp/><<<sp/>kilometers<sp/><<<sp/></highlight><highlight class="stringliteral">"<sp/>kilometers<sp/>on<sp/>the<sp/>clock."</highlight><highlight class="normal"><sp/><<<sp/>endl;</highlight></codeline> |
---|
148 | <codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
149 | <codeline lineno="35"><highlight class="normal">};</highlight></codeline> |
---|
150 | <codeline lineno="36"><highlight class="normal"></highlight></codeline> |
---|
151 | <codeline lineno="37"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">Bike<sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/>Transport</highlight></codeline> |
---|
152 | <codeline lineno="38"><highlight class="normal">{</highlight></codeline> |
---|
153 | <codeline lineno="39"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
154 | <codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>electricLights;</highlight></codeline> |
---|
155 | <codeline lineno="41"><highlight class="normal"></highlight></codeline> |
---|
156 | <codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Bike(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>age,<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>manufacturer,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>electricLights<sp/>)</highlight></codeline> |
---|
157 | <codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>Transport(<sp/>age,<sp/>manufacturer<sp/>),<sp/>electricLights(<sp/>electricLights<sp/>)</highlight></codeline> |
---|
158 | <codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
159 | <codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
160 | <codeline lineno="46"><highlight class="normal"></highlight></codeline> |
---|
161 | <codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>ToString()</highlight></codeline> |
---|
162 | <codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
163 | <codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/></highlight><highlight class="stringliteral">"a<sp/>bike<sp/>made<sp/>in<sp/>"</highlight><highlight class="normal"><sp/><<<sp/>year<sp/><<<sp/></highlight><highlight class="stringliteral">"<sp/>by<sp/>"</highlight><highlight class="normal"><sp/><<<sp/>manufacturer;</highlight></codeline> |
---|
164 | <codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>electricLights<sp/>)<sp/>cout<sp/><<<sp/></highlight><highlight class="stringliteral">"<sp/>with<sp/>electric<sp/>lights<sp/>included"</highlight><highlight class="normal">;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
165 | <codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/>endl;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
166 | <codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
167 | <codeline lineno="53"><highlight class="normal">};</highlight></codeline> |
---|
168 | <codeline lineno="54"><highlight class="normal"></highlight></codeline> |
---|
169 | <codeline lineno="58"><highlight class="normal"></highlight></codeline> |
---|
170 | <codeline lineno="59"><highlight class="normal"></highlight></codeline> |
---|
171 | <codeline lineno="60"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">CarUI:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classCompoundUserInfo" kindref="compound" tooltip="The main userinfo template class. You should derive this class whenever you need...">CompoundUserInfo</ref><Car></highlight></codeline> |
---|
172 | <codeline lineno="61"><highlight class="normal">{</highlight></codeline> |
---|
173 | <codeline lineno="62"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
---|
174 | <codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BindedElement<int><sp/>year;<sp/></highlight></codeline> |
---|
175 | <codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BindedElement<int><sp/>kilometers;<sp/></highlight></codeline> |
---|
176 | <codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BindedElement<string><sp/>manufacturer;<sp/></highlight></codeline> |
---|
177 | <codeline lineno="66"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
178 | <codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>CarUI()</highlight></codeline> |
---|
179 | <codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<ref refid="classCompoundUserInfo" kindref="compound" tooltip="The main userinfo template class. You should derive this class whenever you need...">CompoundUserInfo</ref><Car>(</highlight><highlight class="stringliteral">"car"</highlight><highlight class="normal">),</highlight></codeline> |
---|
180 | <codeline lineno="69"><highlight class="normal">#pragma<sp/>warning(push)</highlight></codeline> |
---|
181 | <codeline lineno="70"><highlight class="normal">#pragma<sp/>warning(disable:<sp/>4355)</highlight></codeline> |
---|
182 | <codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>year(<sp/>this,<sp/></highlight><highlight class="stringliteral">"year"</highlight><highlight class="normal">,<sp/>0<sp/>),</highlight></codeline> |
---|
183 | <codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>kilometers(<sp/>this,<sp/></highlight><highlight class="stringliteral">"kilometers"</highlight><highlight class="normal">,<sp/>0<sp/>),</highlight></codeline> |
---|
184 | <codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>manufacturer(<sp/>this,<sp/></highlight><highlight class="stringliteral">"manufacturer"</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"unknown"</highlight><highlight class="normal">)</highlight></codeline> |
---|
185 | <codeline lineno="74"><highlight class="normal">#<sp/>pragma<sp/>warning(pop)</highlight></codeline> |
---|
186 | <codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
187 | <codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
188 | <codeline lineno="77"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
---|
189 | <codeline lineno="78"><highlight class="normal"></highlight></codeline> |
---|
190 | <codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Car*<sp/>AssemblyInstance()</highlight></codeline> |
---|
191 | <codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
192 | <codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>assembly<sp/>new<sp/>instance</highlight><highlight class="normal"></highlight></codeline> |
---|
193 | <codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>Car(<sp/>year.value,<sp/>manufacturer.value,<sp/>kilometers.value<sp/>);</highlight></codeline> |
---|
194 | <codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
195 | <codeline lineno="84"><highlight class="normal"></highlight></codeline> |
---|
196 | <codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>DisassemblyInstance(Car&<sp/>instance)</highlight></codeline> |
---|
197 | <codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
198 | <codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>year.value<sp/>=<sp/>instance.year;</highlight></codeline> |
---|
199 | <codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>manufacturer.value<sp/>=<sp/>instance.manufacturer;</highlight></codeline> |
---|
200 | <codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>kilometers.value<sp/>=<sp/>instance.kilometers;</highlight></codeline> |
---|
201 | <codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline> |
---|
202 | <codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
203 | <codeline lineno="92"><highlight class="normal">};</highlight></codeline> |
---|
204 | <codeline lineno="93"><highlight class="normal"></highlight></codeline> |
---|
205 | <codeline lineno="94"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo<Car></ref>&<sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo<Car>::instance</ref><sp/>=<sp/>CarUI(<sp/>);</highlight></codeline> |
---|
206 | <codeline lineno="95"><highlight class="normal"></highlight></codeline> |
---|
207 | <codeline lineno="96"><highlight class="normal"></highlight></codeline> |
---|
208 | <codeline lineno="97"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">BikeUI:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classCompoundUserInfo" kindref="compound" tooltip="The main userinfo template class. You should derive this class whenever you need...">CompoundUserInfo</ref><Bike></highlight></codeline> |
---|
209 | <codeline lineno="98"><highlight class="normal">{</highlight></codeline> |
---|
210 | <codeline lineno="99"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
---|
211 | <codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BindedElement<int><sp/>year;<sp/></highlight></codeline> |
---|
212 | <codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BindedElement<bool><sp/>lights;<sp/></highlight></codeline> |
---|
213 | <codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BindedElement<string><sp/>manufacturer;<sp/></highlight></codeline> |
---|
214 | <codeline lineno="103"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
215 | <codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>BikeUI()</highlight></codeline> |
---|
216 | <codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<ref refid="classCompoundUserInfo" kindref="compound" tooltip="The main userinfo template class. You should derive this class whenever you need...">CompoundUserInfo</ref><Bike>(</highlight><highlight class="stringliteral">"bike"</highlight><highlight class="normal">),</highlight></codeline> |
---|
217 | <codeline lineno="106"><highlight class="normal">#pragma<sp/>warning(push)</highlight></codeline> |
---|
218 | <codeline lineno="107"><highlight class="normal">#pragma<sp/>warning(disable:<sp/>4355)</highlight></codeline> |
---|
219 | <codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>year(<sp/>this,<sp/></highlight><highlight class="stringliteral">"year"</highlight><highlight class="normal">,<sp/>0<sp/>),</highlight></codeline> |
---|
220 | <codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lights(<sp/>this,<sp/></highlight><highlight class="stringliteral">"electric<sp/>lights"</highlight><highlight class="normal">,<sp/>false<sp/>),<sp/></highlight></codeline> |
---|
221 | <codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>manufacturer(<sp/>this,<sp/></highlight><highlight class="stringliteral">"manufacturer"</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"unknown"</highlight><highlight class="normal">)</highlight></codeline> |
---|
222 | <codeline lineno="111"><highlight class="normal">#pragma<sp/>warning(pop)</highlight></codeline> |
---|
223 | <codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
224 | <codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
225 | <codeline lineno="114"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
---|
226 | <codeline lineno="115"><highlight class="normal"></highlight></codeline> |
---|
227 | <codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Bike*<sp/>AssemblyInstance()</highlight></codeline> |
---|
228 | <codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
229 | <codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>assembly<sp/>new<sp/>instance</highlight><highlight class="normal"></highlight></codeline> |
---|
230 | <codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>Bike(<sp/>year.value,<sp/>manufacturer.value,<sp/>lights.value<sp/>);</highlight></codeline> |
---|
231 | <codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
232 | <codeline lineno="121"><highlight class="normal"></highlight></codeline> |
---|
233 | <codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>DisassemblyInstance(Bike&<sp/>instance)</highlight></codeline> |
---|
234 | <codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
235 | <codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>year.value<sp/>=<sp/>instance.year;</highlight></codeline> |
---|
236 | <codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>manufacturer.value<sp/>=<sp/>instance.manufacturer;</highlight></codeline> |
---|
237 | <codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lights.value<sp/>=<sp/>instance.electricLights;</highlight></codeline> |
---|
238 | <codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline> |
---|
239 | <codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
240 | <codeline lineno="129"><highlight class="normal">};</highlight></codeline> |
---|
241 | <codeline lineno="130"><highlight class="normal"></highlight></codeline> |
---|
242 | <codeline lineno="131"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo<Bike></ref>&<sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo<Bike>::instance</ref><sp/>=<sp/>BikeUI(<sp/>);</highlight></codeline> |
---|
243 | <codeline lineno="132"><highlight class="normal"></highlight></codeline> |
---|
244 | <codeline lineno="133"><highlight class="normal"></highlight></codeline> |
---|
245 | <codeline lineno="134"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="sim__var_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" kindref="member" tooltip="Extended Kalman filter with unknown Q.">main</ref>()</highlight></codeline> |
---|
246 | <codeline lineno="135"><highlight class="normal">{</highlight></codeline> |
---|
247 | <codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Car<sp/>audi(<sp/>1998,<sp/></highlight><highlight class="stringliteral">"audi"</highlight><highlight class="normal">,<sp/>25000);</highlight></codeline> |
---|
248 | <codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Car<sp/>liaz(<sp/>1992,<sp/></highlight><highlight class="stringliteral">"liaz"</highlight><highlight class="normal">,<sp/>1555000);</highlight></codeline> |
---|
249 | <codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Bike<sp/>author(<sp/>1996,<sp/></highlight><highlight class="stringliteral">"author"</highlight><highlight class="normal">,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
250 | <codeline lineno="139"><highlight class="normal"></highlight></codeline> |
---|
251 | <codeline lineno="141"><highlight class="normal"></highlight></codeline> |
---|
252 | <codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRootElement" kindref="compound" tooltip="This class serves to load and/or save DOMElements into/from files stored on a hard-disk...">RootElement</ref><sp/>root(</highlight><highlight class="stringliteral">"transport.xml"</highlight><highlight class="normal">);</highlight></codeline> |
---|
253 | <codeline lineno="143"><highlight class="normal"></highlight></codeline> |
---|
254 | <codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>!<ref refid="classUserInfo_11d402661b82feccb5265a70f65c242e1" kindref="member">UserInfo::Disassembly</ref>(<sp/>audi,<sp/>root,<sp/></highlight><highlight class="stringliteral">"pepikovo"</highlight><highlight class="normal">)<sp/></highlight></codeline> |
---|
255 | <codeline lineno="145"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>||<sp/>!<ref refid="classUserInfo_11d402661b82feccb5265a70f65c242e1" kindref="member">UserInfo::Disassembly</ref>(<sp/>liaz,<sp/>root,<sp/></highlight><highlight class="stringliteral">"jardovo"</highlight><highlight class="normal">)<sp/></highlight></codeline> |
---|
256 | <codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>||<sp/>!<ref refid="classUserInfo_11d402661b82feccb5265a70f65c242e1" kindref="member">UserInfo::Disassembly</ref>(<sp/>author,<sp/>root,<sp/></highlight><highlight class="stringliteral">"ondrejovo"</highlight><highlight class="normal">)<sp/><sp/>)</highlight></codeline> |
---|
257 | <codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline> |
---|
258 | <codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/></highlight><highlight class="stringliteral">"there<sp/>was<sp/>some<sp/>error!"</highlight><highlight class="normal"><sp/><<<sp/>endl;</highlight></codeline> |
---|
259 | <codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>getchar();</highlight></codeline> |
---|
260 | <codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
261 | <codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
262 | <codeline lineno="152"><highlight class="normal"></highlight></codeline> |
---|
263 | <codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>root.Save();</highlight></codeline> |
---|
264 | <codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/></highlight><highlight class="stringliteral">"all<sp/>the<sp/>transport<sp/>means<sp/>were<sp/>saved<sp/>correctly"</highlight><highlight class="normal"><sp/><<<sp/>endl;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
265 | <codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>getchar();</highlight></codeline> |
---|
266 | <codeline lineno="156"><highlight class="normal"></highlight></codeline> |
---|
267 | <codeline lineno="158"><highlight class="normal"></highlight></codeline> |
---|
268 | <codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>whichone<sp/>=<sp/></highlight><highlight class="stringliteral">"pepikovo"</highlight><highlight class="normal">;</highlight></codeline> |
---|
269 | <codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>whichone<sp/>=<sp/></highlight><highlight class="stringliteral">"jardovo"</highlight><highlight class="normal">;</highlight></codeline> |
---|
270 | <codeline lineno="161"><highlight class="normal"></highlight><highlight class="comment">//<sp/><sp/><sp/><sp/><sp/><sp/>whichone<sp/>=<sp/>"ondrejovo";</highlight><highlight class="normal"></highlight></codeline> |
---|
271 | <codeline lineno="162"><highlight class="normal"></highlight></codeline> |
---|
272 | <codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>root.Load();</highlight></codeline> |
---|
273 | <codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Transport<sp/>*loaded<sp/>=<sp/>UserInfo::Assembly<Transport>(<sp/>root,whichone);</highlight></codeline> |
---|
274 | <codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
275 | <codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>loaded<sp/>)</highlight></codeline> |
---|
276 | <codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>loaded->ToString();</highlight></codeline> |
---|
277 | <codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline> |
---|
278 | <codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/></highlight><highlight class="stringliteral">"there<sp/>was<sp/>some<sp/>error<sp/>during<sp/>loading!"</highlight><highlight class="normal"><sp/><<<sp/>endl;</highlight></codeline> |
---|
279 | <codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
280 | <codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>getchar();<sp/></highlight></codeline> |
---|
281 | <codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline> |
---|
282 | <codeline lineno="173"><highlight class="normal">}</highlight></codeline> |
---|
283 | </programlisting> |
---|
284 | <location file="/home/smidl/work/git/mixpp/tests/testUI.cpp"/> |
---|
285 | </compounddef> |
---|
286 | </doxygen> |
---|