42 | | <a name="l00036"></a><a class="code" href="classuibase.html#2f0551822ed7af25f8e7ffbe7c0a8f97">00036</a> <a class="code" href="classuibase.html#2f0551822ed7af25f8e7ffbe7c0a8f97" title="Default constructor.">uibase</a> ( <span class="keywordtype">string</span> com = <span class="stringliteral">"Abstract class, please ignore!"</span>, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par=NULL ) :<a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3" title="String identifier of a field.">name</a> ( com ),<a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a" title="Explanation for a user what the field means.">help</a> ( <span class="stringliteral">""</span> ),<a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7" title="Possible parent of the userinfo.">parent</a> ( par ) { |
43 | | <a name="l00037"></a>00037 <span class="keywordflow">if</span> ( <a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7" title="Possible parent of the userinfo.">parent</a>!=NULL ) {<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>=<a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7" title="Possible parent of the userinfo.">parent</a>-><a class="code" href="classuibase.html#e05d51c68e5e690110208ebad4c0a037" title="access function">get_level</a>() +1;} |
44 | | <a name="l00038"></a>00038 <span class="keywordflow">else</span> {<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a> =0;} |
45 | | <a name="l00039"></a>00039 } |
46 | | <a name="l00040"></a>00040 |
47 | | <a name="l00042"></a><a class="code" href="classuibase.html#de805f1ce9c1b261dc47d57c506d36f1">00042</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#de805f1ce9c1b261dc47d57c506d36f1" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) {}; |
48 | | <a name="l00043"></a>00043 |
49 | | <a name="l00045"></a><a class="code" href="classuibase.html#d28232d94715c153afb9280a8a4552eb">00045</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#d28232d94715c153afb9280a8a4552eb" title="interaction with the user">askuser</a>() {}; |
50 | | <a name="l00046"></a>00046 |
51 | | <a name="l00048"></a><a class="code" href="classuibase.html#e7403110752e92a31db563556124742e">00048</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuibase.html#e7403110752e92a31db563556124742e" title="test if the info is valid">isvalid</a>() {<span class="keywordflow">return</span> <span class="keyword">true</span>;} |
52 | | <a name="l00050"></a><a class="code" href="classuibase.html#1972e8d075e083e0f033ac2e4fee3a7a">00050</a> <span class="keyword">virtual</span> <a class="code" href="classuibase.html#1972e8d075e083e0f033ac2e4fee3a7a" title="for future use">~uibase</a>() {}; |
53 | | <a name="l00052"></a><a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2">00052</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">save</a> ( std::ostream &os ) { |
54 | | <a name="l00053"></a>00053 os.width(<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>); |
55 | | <a name="l00054"></a>00054 os.fill(<span class="charliteral">' '</span>); |
56 | | <a name="l00055"></a>00055 os<<<span class="stringliteral">"#"</span><<<a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a" title="Explanation for a user what the field means.">help</a><<endl; |
57 | | <a name="l00056"></a>00056 os.width(<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>); |
58 | | <a name="l00057"></a>00057 os.fill(<span class="charliteral">' '</span>); |
59 | | <a name="l00058"></a>00058 os<<<a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3" title="String identifier of a field.">name</a><<<span class="stringliteral">" = "</span>; |
60 | | <a name="l00059"></a>00059 }; |
61 | | <a name="l00061"></a><a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3">00061</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">load</a> ( std::istream &is ) { |
62 | | <a name="l00062"></a>00062 <span class="keywordtype">char</span> tmp[200]; |
63 | | <a name="l00063"></a>00063 is.ignore ( <a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>+1,<span class="charliteral">'#'</span> ); <span class="comment">// +1 is for #</span> |
64 | | <a name="l00064"></a>00064 is.getline ( tmp,200 );<a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a" title="Explanation for a user what the field means.">help</a>=tmp; |
65 | | <a name="l00065"></a>00065 is.ignore ( <a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>,<span class="charliteral">'\0'</span> ); |
66 | | <a name="l00066"></a>00066 is.getline ( tmp,200,<span class="charliteral">'='</span> ); <a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3" title="String identifier of a field.">name</a>=tmp; |
67 | | <a name="l00067"></a>00067 }; |
68 | | <a name="l00068"></a>00068 |
69 | | <a name="l00070"></a><a class="code" href="classuibase.html#e05d51c68e5e690110208ebad4c0a037">00070</a> <span class="keywordtype">int</span> <a class="code" href="classuibase.html#e05d51c68e5e690110208ebad4c0a037" title="access function">get_level</a>(){<span class="keywordflow">return</span> <a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>;} |
70 | | <a name="l00071"></a>00071 }; |
71 | | <a name="l00072"></a>00072 |
72 | | <a name="l00074"></a>00074 <span class="keyword">template</span><<span class="keyword">class</span> T> |
73 | | <a name="l00075"></a><a class="code" href="classuiscalar.html">00075</a> <span class="keyword">class </span><a class="code" href="classuiscalar.html" title="User info for scalars.">uiscalar</a> : <span class="keyword">public</span> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
74 | | <a name="l00076"></a>00076 <span class="keyword">protected</span>: |
75 | | <a name="l00078"></a><a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8">00078</a> T <a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>; |
76 | | <a name="l00079"></a>00079 <span class="keyword">public</span>: |
77 | | <a name="l00081"></a><a class="code" href="classuiscalar.html#4b71f9d9246a3715df44d9701b1cbfdd">00081</a> <a class="code" href="classuiscalar.html#4b71f9d9246a3715df44d9701b1cbfdd" title="Default constructor.">uiscalar</a> ( std::string com, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par =NULL) :<a class="code" href="classuibase.html" title="User Info base class.">uibase</a> ( com,par ) {<a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>=T ( 0 );}; |
78 | | <a name="l00082"></a>00082 |
79 | | <a name="l00083"></a><a class="code" href="classuiscalar.html#cc3639d49c2577e7c40ebaf48ced444f">00083</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#cc3639d49c2577e7c40ebaf48ced444f" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) {S=<span class="stringliteral">"Scalar"</span>;}; |
80 | | <a name="l00084"></a>00084 |
81 | | <a name="l00085"></a><a class="code" href="classuiscalar.html#9a21e792b929d081c33321714fbfe94f">00085</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#9a21e792b929d081c33321714fbfe94f" title="interaction with the user">askuser</a> () {}; |
82 | | <a name="l00086"></a>00086 |
83 | | <a name="l00087"></a><a class="code" href="classuiscalar.html#ccb9739e4989d7489dca75ea673238dd">00087</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#ccb9739e4989d7489dca75ea673238dd" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a><<endl;} |
84 | | <a name="l00088"></a><a class="code" href="classuiscalar.html#135480b7762b221331076227c292869c">00088</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#135480b7762b221331076227c292869c" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>;} |
85 | | <a name="l00090"></a><a class="code" href="classuiscalar.html#23b474d26466a4b11f3adfd515da5ed1">00090</a> <a class="code" href="classuiscalar.html#23b474d26466a4b11f3adfd515da5ed1" title="for future use">~uiscalar</a>() {}; |
86 | | <a name="l00091"></a>00091 |
87 | | <a name="l00093"></a><a class="code" href="classuiscalar.html#3db4fc9c4970f184d4e78c492842a2d2">00093</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#3db4fc9c4970f184d4e78c492842a2d2" title="access function">set_value</a> ( T N0 ) {<a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>=N0;} |
| 46 | <a name="l00036"></a><a class="code" href="classGlobalXercesConnector.html#8d2d2a3f1b2a21a9647f7bc4c7e82c73">00036</a> DOMImplementation *<a class="code" href="classGlobalXercesConnector.html#8d2d2a3f1b2a21a9647f7bc4c7e82c73" title="DOMImplementation is a base class for the all DOM oparations.">pImplementation</a>; |
| 47 | <a name="l00038"></a><a class="code" href="classGlobalXercesConnector.html#c6c620829e2a2fface1bea202b0608a6">00038</a> DOMWriter *<a class="code" href="classGlobalXercesConnector.html#c6c620829e2a2fface1bea202b0608a6" title="This DOMWriter is used to export internal data into xml files.">pSerializer</a>; |
| 48 | <a name="l00040"></a><a class="code" href="classGlobalXercesConnector.html#ca92055e0f5a5ea3d8cb1c4d6bf0dd51">00040</a> XercesDOMParser *<a class="code" href="classGlobalXercesConnector.html#ca92055e0f5a5ea3d8cb1c4d6bf0dd51" title="This DOMWriter is used to import external data from xml files.">pParser</a>; |
| 49 | <a name="l00041"></a>00041 |
| 50 | <a name="l00042"></a>00042 |
| 51 | <a name="l00044"></a>00044 <a class="code" href="classGlobalXercesConnector.html#5bf4f5c7f9e7b54a318e99bb0e3f186d" title="default constructor">GlobalXercesConnector</a>(); |
| 52 | <a name="l00046"></a>00046 <a class="code" href="classGlobalXercesConnector.html#d61ca15a9bf7d358c5afd8fd1e42c3ca" title="destructor">~GlobalXercesConnector</a>(); |
| 53 | <a name="l00047"></a>00047 |
| 54 | <a name="l00048"></a>00048 |
| 55 | <a name="l00050"></a>00050 <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code" href="classGlobalXercesConnector.html#9800b81014bc6497815e28ad4bd3cf3a" title="function transcodes Xerces&#39; XMLCh-based strings into C++ strings">XMLCh2str</a>( <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> XMLCh_str ); |
| 56 | <a name="l00051"></a>00051 |
| 57 | <a name="l00052"></a>00052 <span class="keyword">class </span>Comparator |
| 58 | <a name="l00053"></a>00053 { |
| 59 | <a name="l00054"></a>00054 <span class="keyword">public</span>: |
| 60 | <a name="l00056"></a>00056 <span class="keywordtype">bool</span> operator()( <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> a , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> b) <span class="keyword">const</span>; |
| 61 | <a name="l00057"></a>00057 }; |
| 62 | <a name="l00058"></a>00058 }; |
| 63 | <a name="l00059"></a>00059 |
| 64 | <a name="l00061"></a>00061 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="classGlobalXercesConnector.html" title="Xerces interface class.">GlobalXercesConnector</a> XMLConnector; |
| 65 | <a name="l00062"></a>00062 |
| 66 | <a name="l00063"></a>00063 |
| 67 | <a name="l00070"></a><a class="code" href="classAttribute.html">00070</a> <span class="keyword">class </span><a class="code" href="classAttribute.html" title="User Info base class.">Attribute</a> |
| 68 | <a name="l00071"></a>00071 { |
| 69 | <a name="l00072"></a>00072 <span class="keyword">private</span>: |
| 70 | <a name="l00075"></a>00075 XMLCh* <span class="keyword">const</span> transcodedName; |
| 71 | <a name="l00076"></a>00076 |
| 72 | <a name="l00077"></a>00077 <span class="keyword">public</span>: |
| 73 | <a name="l00079"></a><a class="code" href="classAttribute.html#342750acf29e4c37d009301ef5075111">00079</a> <span class="keyword">typedef</span> map<const XMLCh* const, Attribute* const, GlobalXercesConnector::Comparator> <a class="code" href="classAttribute.html#342750acf29e4c37d009301ef5075111" title="Type definition of mapping which transforms names to the related attributes.">MappedAttributes</a>; |
| 74 | <a name="l00080"></a>00080 |
| 75 | <a name="l00082"></a>00082 <a class="code" href="classAttribute.html#31c94d75bbe6b2834b1ef633cb8565fb" title="The only constructor which fills the transcodedName attribute.">Attribute</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> name ); |
| 76 | <a name="l00084"></a>00084 <a class="code" href="classAttribute.html#28ab087bb886728670e4ae5791bc2ea8" title="Destructor.">~Attribute</a>(); |
| 77 | <a name="l00085"></a>00085 |
| 78 | <a name="l00087"></a>00087 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classAttribute.html#bfb68f3502af06cda0f61390526e1c2f" title="Set accessor to this attribute converting input string into a properly-typed value...">Set</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> str ) = 0; |
| 79 | <a name="l00089"></a>00089 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="classAttribute.html#ebeef001a0f4176900f643f529c549b8" title="Get accessor converting stored value into a string.">Get</a>() = 0; |
| 80 | <a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="classAttribute.html#abd94a0487d662f28264f4faa214d894" title="This method is the key method to connect the attribute to the related UI element...">Attach</a>( <a class="code" href="classAttribute.html#342750acf29e4c37d009301ef5075111" title="Type definition of mapping which transforms names to the related attributes.">MappedAttributes</a> &externalAttributes); |
| 81 | <a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="classAttribute.html#387a68e5de7b1e31022022493f00cbff" title="This method add and DOMAttribute node to the DOMElement passed as an argument.">FillAttribute</a>(DOMElement &element); |
100 | | <a name="l00109"></a><a class="code" href="classuistring.html#2f3c4c4ed42f720969dd6922063b784a">00109</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#2f3c4c4ed42f720969dd6922063b784a" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a><<endl;} |
101 | | <a name="l00110"></a><a class="code" href="classuistring.html#382d63a6a9ec8f10b9ceb2ed197f6e20">00110</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#382d63a6a9ec8f10b9ceb2ed197f6e20" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a>;} |
102 | | <a name="l00111"></a>00111 |
103 | | <a name="l00112"></a>00112 ~<a class="code" href="classuistring.html" title="User info for strings.">uistring</a>() {}; |
104 | | <a name="l00114"></a><a class="code" href="classuistring.html#89e96a96faca08d1847cd73cf8aaae9a">00114</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#89e96a96faca08d1847cd73cf8aaae9a" title="access function">set_value</a> ( std::string S0 ) {<a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a>=S0;} |
105 | | <a name="l00115"></a>00115 }; |
106 | | <a name="l00116"></a>00116 |
107 | | <a name="l00118"></a>00118 <span class="keyword">template</span><<span class="keyword">class</span> T> |
108 | | <a name="l00119"></a><a class="code" href="classuivector.html">00119</a> <span class="keyword">class </span><a class="code" href="classuivector.html" title="User info for vectors.">uivector</a> : <span class="keyword">public</span> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
109 | | <a name="l00120"></a>00120 <span class="keyword">protected</span>: |
110 | | <a name="l00122"></a><a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253">00122</a> itpp::Vec<T> <a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>; |
111 | | <a name="l00123"></a>00123 <span class="keyword">public</span>: |
112 | | <a name="l00124"></a><a class="code" href="classuivector.html#5ccf01fcd3717975d3a330f03a2bc347">00124</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#5ccf01fcd3717975d3a330f03a2bc347" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) { S=<span class="stringliteral">"Vector of length "</span>+ <a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>.length();}; |
113 | | <a name="l00125"></a>00125 |
114 | | <a name="l00127"></a><a class="code" href="classuivector.html#b9cf7db05fe899cad8f2a42580c7c3cb">00127</a> <a class="code" href="classuivector.html#b9cf7db05fe899cad8f2a42580c7c3cb" title="Default constructor.">uivector</a> ( std::string com, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par=NULL ) :<a class="code" href="classuibase.html" title="User Info base class.">uibase</a> ( com,par ) {}; |
115 | | <a name="l00128"></a>00128 |
116 | | <a name="l00129"></a><a class="code" href="classuivector.html#46f823703a8de31ba14cbcc3406819db">00129</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#46f823703a8de31ba14cbcc3406819db" title="interaction with the user">askuser</a> () {}; |
117 | | <a name="l00130"></a>00130 |
118 | | <a name="l00131"></a><a class="code" href="classuivector.html#bb6488784b36f25eadcfbc02df0c99aa">00131</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#bb6488784b36f25eadcfbc02df0c99aa" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a><<endl;;} |
119 | | <a name="l00132"></a><a class="code" href="classuivector.html#c8e640c8013c4c69f8ce9014009dd8c6">00132</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#c8e640c8013c4c69f8ce9014009dd8c6" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>;} |
120 | | <a name="l00133"></a>00133 |
121 | | <a name="l00135"></a><a class="code" href="classuivector.html#08501b4bb9d1d93097488ec00da8677a">00135</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#08501b4bb9d1d93097488ec00da8677a" title="access function">set_value</a> ( itpp::Vec<T> V0 ) {<a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>=V0;} |
122 | | <a name="l00136"></a>00136 |
123 | | <a name="l00137"></a>00137 }; |
124 | | <a name="l00138"></a>00138 |
125 | | <a name="l00140"></a>00140 <span class="keyword">template</span><<span class="keyword">class</span> T> |
126 | | <a name="l00141"></a><a class="code" href="classuimatrix.html">00141</a> <span class="keyword">class </span><a class="code" href="classuimatrix.html" title="User info for matrices.">uimatrix</a> : <span class="keyword">public</span> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
127 | | <a name="l00142"></a>00142 <span class="keyword">protected</span>: |
128 | | <a name="l00144"></a><a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9">00144</a> itpp::Mat<T> <a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a>; |
129 | | <a name="l00145"></a>00145 |
130 | | <a name="l00146"></a>00146 <span class="keyword">public</span>: |
131 | | <a name="l00148"></a><a class="code" href="classuimatrix.html#5817e2696f293a751b6690792f3e7aa8">00148</a> <a class="code" href="classuimatrix.html#5817e2696f293a751b6690792f3e7aa8" title="Default constructor.">uimatrix</a> ( std::string com, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par=NULL ) :<a class="code" href="classuibase.html" title="User Info base class.">uibase</a> ( com,par ) {} |
132 | | <a name="l00149"></a>00149 |
133 | | <a name="l00150"></a><a class="code" href="classuimatrix.html#72da139481128a8fc979cb38b031504c">00150</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#72da139481128a8fc979cb38b031504c" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) { S=<span class="stringliteral">"Matrix "</span>;}; |
134 | | <a name="l00151"></a>00151 |
135 | | <a name="l00152"></a><a class="code" href="classuimatrix.html#4b1649ae99267ee98164d4a3d3e3fb05">00152</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#4b1649ae99267ee98164d4a3d3e3fb05" title="interaction with the user">askuser</a> () {}; |
136 | | <a name="l00153"></a>00153 |
137 | | <a name="l00154"></a><a class="code" href="classuimatrix.html#8176b9d61acfe32cad75eca372190eb8">00154</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#8176b9d61acfe32cad75eca372190eb8" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a><<endl;} |
138 | | <a name="l00155"></a><a class="code" href="classuimatrix.html#664307ac6fc483e506b831d80a60b7a8">00155</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#664307ac6fc483e506b831d80a60b7a8" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a>;} |
139 | | <a name="l00156"></a>00156 |
140 | | <a name="l00158"></a><a class="code" href="classuimatrix.html#cc00f8af1706d634b11458c49a52a7b3">00158</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#cc00f8af1706d634b11458c49a52a7b3" title="access function">set_value</a> ( itpp::Mat<T> M0 ) {<a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a>=M0;} |
141 | | <a name="l00159"></a>00159 }; |
142 | | <a name="l00160"></a>00160 |
143 | | <a name="l00161"></a>00161 |
144 | | <a name="l00162"></a>00162 <span class="keyword">typedef</span> <a class="code" href="classuimatrix.html" title="User info for matrices.">uimatrix<double></a> <a class="code" href="classuimatrix.html" title="User info for matrices.">uimat</a>; |
145 | | <a name="l00163"></a>00163 <span class="keyword">typedef</span> <a class="code" href="classuimatrix.html" title="User info for matrices.">uimatrix<int></a> <a class="code" href="classuimatrix.html" title="User info for matrices.">uiimat</a>; |
146 | | <a name="l00164"></a>00164 |
147 | | <a name="l00165"></a>00165 <span class="keyword">typedef</span> <a class="code" href="classuivector.html" title="User info for vectors.">uivector<double></a> <a class="code" href="classuivector.html" title="User info for vectors.">uivec</a>; |
148 | | <a name="l00166"></a>00166 <span class="keyword">typedef</span> <a class="code" href="classuivector.html" title="User info for vectors.">uivector<int></a> <a class="code" href="classuivector.html" title="User info for vectors.">uiivec</a>; |
149 | | <a name="l00167"></a>00167 |
| 94 | <a name="l00112"></a><a class="code" href="classIntAttribute.html">00112</a> <span class="keyword">class </span><a class="code" href="classIntAttribute.html" title="Class encapsulating all the necessary stuff to work with an int attribute.">IntAttribute</a> : <span class="keyword">public</span> <a class="code" href="classAttribute.html" title="User Info base class.">Attribute</a> |
| 95 | <a name="l00113"></a>00113 { |
| 96 | <a name="l00114"></a>00114 <span class="keyword">public</span>: |
| 97 | <a name="l00115"></a>00115 <span class="keywordtype">int</span> value; |
| 98 | <a name="l00116"></a>00116 <a class="code" href="classIntAttribute.html#5f958f133ecb1970de50345808d6120a" title="User Info base class.">IntAttribute</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> name ); |
| 99 | <a name="l00117"></a>00117 <span class="keywordtype">void</span> <a class="code" href="classIntAttribute.html#27d584df58c76251f45a15931ee6df3e" title="Set accessor to this attribute converting input string into a properly-typed value...">Set</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> str ); |
| 100 | <a name="l00118"></a>00118 <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="classIntAttribute.html#a7bc8b5ec5291125e6eee9fd09fa54b7" title="Get accessor converting stored value into a string.">Get</a>(); |
| 101 | <a name="l00119"></a>00119 }; |
| 102 | <a name="l00120"></a>00120 |
| 103 | <a name="l00124"></a><a class="code" href="classStringAttribute.html">00124</a> <span class="keyword">class </span><a class="code" href="classStringAttribute.html" title="Class encapsulating all the necessary stuff to work with a string attribute.">StringAttribute</a> : <span class="keyword">public</span> <a class="code" href="classAttribute.html" title="User Info base class.">Attribute</a> |
| 104 | <a name="l00125"></a>00125 { |
| 105 | <a name="l00126"></a>00126 <span class="keyword">public</span>: |
| 106 | <a name="l00127"></a>00127 <span class="keywordtype">string</span> value; |
| 107 | <a name="l00128"></a>00128 <a class="code" href="classStringAttribute.html#a507cdfd19fa54e8a6cf22ffb45e5c81" title="User Info base class.">StringAttribute</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> name ); |
| 108 | <a name="l00129"></a>00129 <span class="keywordtype">void</span> <a class="code" href="classStringAttribute.html#a02e791125f2f8e53e5d9beda8291408" title="Set accessor to this attribute converting input string into a properly-typed value...">Set</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> str ); |
| 109 | <a name="l00130"></a>00130 <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="classStringAttribute.html#2e43e29b9da9b9c1eab65e11f4bf4518" title="Get accessor converting stored value into a string.">Get</a>(); |
| 110 | <a name="l00131"></a>00131 }; |
| 111 | <a name="l00132"></a>00132 |
| 112 | <a name="l00139"></a><a class="code" href="classUserInfoCore.html">00139</a> <span class="keyword">class </span><a class="code" href="classUserInfoCore.html" title="UserInfoCore class is for internal purposes only. Use UserInfo&lt;T&gt; instead.">UserInfoCore</a> |
| 113 | <a name="l00140"></a>00140 { |
| 114 | <a name="l00141"></a>00141 <span class="keyword">public</span>: |
| 115 | <a name="l00143"></a>00143 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classUserInfoCore.html#a09a9b965ca04a186143787c0d049a7f" title="Fills internal attributes and descendant elements according DOMElement.">ParseElement</a>(DOMElement *element) = 0; |
| 116 | <a name="l00144"></a>00144 |
| 117 | <a name="l00146"></a>00146 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classUserInfoCore.html#282c9bfd140bd09777aff395158c35ab" title="Fills DOMElement according internal attributes and descendant elements.">FillElement</a>(DOMElement &element) = 0; |
| 118 | <a name="l00147"></a>00147 }; |
| 119 | <a name="l00148"></a>00148 |
| 120 | <a name="l00154"></a><a class="code" href="classUserInfo.html">00154</a> <span class="keyword">template</span><<span class="keyword">typename</span> T> <span class="keyword">class </span><a class="code" href="classUserInfo.html" title="The main user info template class.">UserInfo</a> : <span class="keyword">public</span> <a class="code" href="classUserInfoCore.html" title="UserInfoCore class is for internal purposes only. Use UserInfo&lt;T&gt; instead.">UserInfoCore</a> |
| 121 | <a name="l00155"></a>00155 { |
| 122 | <a name="l00156"></a>00156 <span class="keyword">private</span>: |
| 123 | <a name="l00159"></a>00159 XMLCh* transcodedName; |
| 124 | <a name="l00160"></a>00160 |
| 125 | <a name="l00162"></a>00162 <span class="keyword">typedef</span> map<const XMLCh* const, UserInfoCore* const, GlobalXercesConnector::Comparator> MappedElements; |
| 126 | <a name="l00163"></a>00163 |
| 127 | <a name="l00164"></a>00164 <span class="keyword">protected</span>: |
| 128 | <a name="l00166"></a><a class="code" href="classUserInfo.html#20783b9cdbef32b584be96851a8f9862">00166</a> MappedElements <a class="code" href="classUserInfo.html#20783b9cdbef32b584be96851a8f9862" title="MappiLength of the output vector.">elements</a>; |
| 129 | <a name="l00168"></a><a class="code" href="classUserInfo.html#aa6753c220a54aba613bfa3cc115d1c8">00168</a> <a class="code" href="classAttribute.html#342750acf29e4c37d009301ef5075111" title="Type definition of mapping which transforms names to the related attributes.">Attribute::MappedAttributes</a> <a class="code" href="classUserInfo.html#aa6753c220a54aba613bfa3cc115d1c8" title="Length of the output vector.">attributes</a>; |
| 130 | <a name="l00169"></a>00169 |
| 131 | <a name="l00170"></a>00170 <span class="keyword">public</span>: |
| 132 | <a name="l00172"></a><a class="code" href="classUserInfo.html#b63907af7cfccefeab209f8381962092">00172</a> <a class="code" href="classStringAttribute.html" title="Class encapsulating all the necessary stuff to work with a string attribute.">StringAttribute</a> <a class="code" href="classUserInfo.html#b63907af7cfccefeab209f8381962092" title="Explanation for an user is the only obligatory attribute.">help</a>; |
| 133 | <a name="l00173"></a>00173 |
| 134 | <a name="l00175"></a>00175 <a class="code" href="classUserInfo.html" title="The main user info template class.">UserInfo<T></a>( |
| 135 | <a name="l00176"></a>00176 <span class="keyword">const</span> <span class="keywordtype">string</span> name, |
| 136 | <a name="l00177"></a>00177 <span class="keyword">const</span> <span class="keywordtype">string</span> help_msg = <span class="stringliteral">""</span> ) |
| 137 | <a name="l00178"></a>00178 : <a class="code" href="classUserInfo.html#b63907af7cfccefeab209f8381962092" title="Explanation for an user is the only obligatory attribute.">help</a>(<span class="stringliteral">"help"</span>), |
| 138 | <a name="l00179"></a>00179 transcodedName( XMLString::transcode( name.c_str() ) ) |
| 139 | <a name="l00180"></a>00180 { |
| 140 | <a name="l00181"></a>00181 XMLString::upperCase( transcodedName ); |
| 141 | <a name="l00182"></a>00182 <a class="code" href="classUserInfo.html#b63907af7cfccefeab209f8381962092" title="Explanation for an user is the only obligatory attribute.">help</a>.<a class="code" href="classAttribute.html#abd94a0487d662f28264f4faa214d894" title="This method is the key method to connect the attribute to the related UI element...">Attach</a>( <a class="code" href="classUserInfo.html#aa6753c220a54aba613bfa3cc115d1c8" title="Length of the output vector.">attributes</a> ); |
| 142 | <a name="l00183"></a>00183 <a class="code" href="classUserInfo.html#b63907af7cfccefeab209f8381962092" title="Explanation for an user is the only obligatory attribute.">help</a>.<a class="code" href="classStringAttribute.html#e55ae245a8ae9e16236695bd5121f744">value</a> = help_msg; |
| 143 | <a name="l00184"></a><a class="code" href="classUserInfo.html#7583dc01223fcd3dfb2a97d80efe4565">00184</a> }; |
| 144 | <a name="l00186"></a>00186 ~<a class="code" href="classUserInfo.html" title="The main user info template class.">UserInfo<T></a>() |
| 145 | <a name="l00187"></a>00187 { |
| 146 | <a name="l00188"></a>00188 XMLString::release( (XMLCh**)&transcodedName ); |
| 147 | <a name="l00189"></a>00189 } |
| 148 | <a name="l00190"></a>00190 |
| 149 | <a name="l00192"></a>00192 <span class="keyword">virtual</span> T* <a class="code" href="classUserInfo.html#a7cab74e8214a87e5f226e9e88ff3d61" title="returns object of templated type filled with data stored in this UserInfo instance...">build</a>(<span class="keywordtype">void</span>) = 0; |
| 150 | <a name="l00193"></a>00193 |
| 151 | <a name="l00195"></a><a class="code" href="classUserInfo.html#089b8a3ad514b17ae564a27328655126">00195</a> <span class="keywordtype">void</span> <a class="code" href="classUserInfo.html#089b8a3ad514b17ae564a27328655126" title="Save UserInfo to the file (typically with an XML extension).">Save</a> ( <span class="keywordtype">char</span>* fileName ) |
| 152 | <a name="l00196"></a>00196 { |
| 153 | <a name="l00197"></a>00197 XMLCh* transcodedFileName = XMLString::transcode( fileName ); |
| 154 | <a name="l00198"></a>00198 LocalFileFormatTarget outputTarget( transcodedFileName ); |
| 155 | <a name="l00199"></a>00199 XMLString::release( &transcodedFileName ); |
| 156 | <a name="l00200"></a>00200 |
| 157 | <a name="l00201"></a>00201 DOMDocument* pDoc = XMLConnector.<a class="code" href="classGlobalXercesConnector.html#8d2d2a3f1b2a21a9647f7bc4c7e82c73" title="DOMImplementation is a base class for the all DOM oparations.">pImplementation</a>->createDocument( |
| 158 | <a name="l00202"></a>00202 XMLString::transcode( <span class="stringliteral">"M3K USER INFO"</span> ), |
| 159 | <a name="l00203"></a>00203 XMLString::transcode( <span class="stringliteral">"ROOT"</span> ), NULL ); |
| 160 | <a name="l00204"></a>00204 DOMElement *pRoot = pDoc->getDocumentElement(); |
| 161 | <a name="l00205"></a>00205 |
| 162 | <a name="l00206"></a>00206 <a class="code" href="classUserInfo.html#22ca1ef5a10740e4107cd5a7e9a72856" title="Fills DOMElement according internal attributes and descendant elements.">FillElement</a>( *pRoot ); |
| 163 | <a name="l00207"></a>00207 |
| 164 | <a name="l00208"></a>00208 XMLConnector.<a class="code" href="classGlobalXercesConnector.html#c6c620829e2a2fface1bea202b0608a6" title="This DOMWriter is used to export internal data into xml files.">pSerializer</a>->writeNode( &outputTarget, *pDoc); |
| 165 | <a name="l00209"></a>00209 <span class="keyword">delete</span> pDoc; |
| 166 | <a name="l00210"></a>00210 } |
| 167 | <a name="l00212"></a><a class="code" href="classUserInfo.html#920c54d79132041a520180d083a6c503">00212</a> <span class="keywordtype">void</span> <a class="code" href="classUserInfo.html#920c54d79132041a520180d083a6c503" title="Load UserInfo from the file (typically with an XML extension).">Load</a> ( <span class="keywordtype">char</span>* fileName ) |
| 168 | <a name="l00213"></a>00213 { |
| 169 | <a name="l00214"></a>00214 <span class="keywordtype">bool</span> bFailed = <span class="keyword">false</span>; |
| 170 | <a name="l00215"></a>00215 |
| 171 | <a name="l00216"></a>00216 <span class="keywordflow">try</span> |
| 172 | <a name="l00217"></a>00217 { |
| 173 | <a name="l00218"></a>00218 XMLCh* transcodedFileName = XMLString::transcode( fileName ) ; |
| 174 | <a name="l00219"></a>00219 <span class="keyword">const</span> LocalFileInputSource inputSource( transcodedFileName ); |
| 175 | <a name="l00220"></a>00220 XMLString::release( &transcodedFileName ); |
| 176 | <a name="l00221"></a>00221 |
| 177 | <a name="l00222"></a>00222 XMLConnector.<a class="code" href="classGlobalXercesConnector.html#ca92055e0f5a5ea3d8cb1c4d6bf0dd51" title="This DOMWriter is used to import external data from xml files.">pParser</a>->parse( inputSource ); |
| 178 | <a name="l00223"></a>00223 bFailed = ( XMLConnector.<a class="code" href="classGlobalXercesConnector.html#ca92055e0f5a5ea3d8cb1c4d6bf0dd51" title="This DOMWriter is used to import external data from xml files.">pParser</a>->getErrorCount() != 0 ); |
| 179 | <a name="l00224"></a>00224 } |
| 180 | <a name="l00225"></a>00225 <span class="keywordflow">catch</span> (...) |
| 181 | <a name="l00226"></a>00226 { |
| 182 | <a name="l00227"></a>00227 bFailed = <span class="keyword">true</span>; |
| 183 | <a name="l00228"></a>00228 } |
| 184 | <a name="l00229"></a>00229 |
| 185 | <a name="l00230"></a>00230 <span class="keywordflow">if</span>( !bFailed) |
| 186 | <a name="l00231"></a>00231 { |
| 187 | <a name="l00232"></a>00232 DOMDocument *pDoc = XMLConnector.<a class="code" href="classGlobalXercesConnector.html#ca92055e0f5a5ea3d8cb1c4d6bf0dd51" title="This DOMWriter is used to import external data from xml files.">pParser</a>->getDocument(); |
| 188 | <a name="l00233"></a>00233 DOMElement *pRoot = pDoc->getDocumentElement(); |
| 189 | <a name="l00234"></a>00234 bFailed = <span class="keyword">true</span>; |
| 190 | <a name="l00235"></a>00235 <span class="keywordflow">for</span>( DOMNode* node = pRoot->getFirstChild(); node != NULL; node = node->getNextSibling() ) |
| 191 | <a name="l00236"></a>00236 <span class="keywordflow">if</span>( node->getNodeType() == DOMNode::ELEMENT_NODE ) |
| 192 | <a name="l00237"></a>00237 { |
| 193 | <a name="l00238"></a>00238 <a class="code" href="classUserInfo.html#f673ea7ee23cc87e89d1530f94817800" title="Fills internal attributes and descendant elements according DOMElement.">ParseElement</a>( (DOMElement*) node ); |
| 194 | <a name="l00239"></a>00239 bFailed = <span class="keyword">false</span>; |
| 195 | <a name="l00240"></a>00240 <span class="keywordflow">break</span>; |
| 196 | <a name="l00241"></a>00241 } |
| 197 | <a name="l00242"></a>00242 } |
| 198 | <a name="l00243"></a>00243 |
| 199 | <a name="l00244"></a>00244 <span class="keywordflow">if</span>( bFailed ) |
| 200 | <a name="l00245"></a>00245 { |
| 201 | <a name="l00246"></a>00246 <span class="comment">// exception?!</span> |
| 202 | <a name="l00247"></a>00247 } |
| 203 | <a name="l00248"></a>00248 } |
| 204 | <a name="l00250"></a><a class="code" href="classUserInfo.html#51c1823208b719eec546b98bb855e272">00250</a> <span class="keywordtype">void</span> <a class="code" href="classUserInfo.html#51c1823208b719eec546b98bb855e272" title="This method is the key method to connect the element to its parent UI element.">Attach</a>( MappedElements &externalElements) |
| 205 | <a name="l00251"></a>00251 { |
| 206 | <a name="l00252"></a>00252 pair<const XMLCh* const, UserInfoCore* const> newPair( transcodedName, <span class="keyword">this</span> ); |
| 207 | <a name="l00253"></a>00253 externalElements.insert(newPair); |
| 208 | <a name="l00254"></a>00254 } |
| 209 | <a name="l00255"></a>00255 |
| 210 | <a name="l00256"></a><a class="code" href="classUserInfo.html#f673ea7ee23cc87e89d1530f94817800">00256</a> <span class="keywordtype">void</span> <a class="code" href="classUserInfo.html#f673ea7ee23cc87e89d1530f94817800" title="Fills internal attributes and descendant elements according DOMElement.">ParseElement</a>(DOMElement *element) |
| 211 | <a name="l00257"></a>00257 { |
| 212 | <a name="l00258"></a>00258 DOMNodeList* nodeList = element->getChildNodes(); |
| 213 | <a name="l00259"></a>00259 <span class="keywordflow">if</span>( nodeList ) |
| 214 | <a name="l00260"></a>00260 <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i = 0; i < nodeList->getLength(); i++ ) |
| 215 | <a name="l00261"></a>00261 { |
| 216 | <a name="l00262"></a>00262 DOMNode* node = nodeList->item(i); |
| 217 | <a name="l00263"></a>00263 <span class="keywordflow">if</span>( node->getNodeType() == DOMNode::ELEMENT_NODE ) |
| 218 | <a name="l00264"></a>00264 { |
| 219 | <a name="l00265"></a>00265 DOMElement* childElement = (DOMElement*) node; |
| 220 | <a name="l00266"></a>00266 MappedElements::const_iterator iter = <a class="code" href="classUserInfo.html#20783b9cdbef32b584be96851a8f9862" title="MappiLength of the output vector.">elements</a>.find( childElement->getTagName() ); |
| 221 | <a name="l00267"></a>00267 |
| 222 | <a name="l00268"></a>00268 <span class="keywordflow">if</span>( iter != <a class="code" href="classUserInfo.html#20783b9cdbef32b584be96851a8f9862" title="MappiLength of the output vector.">elements</a>.end()) |
| 223 | <a name="l00269"></a>00269 iter->second->ParseElement( childElement ); |
| 224 | <a name="l00270"></a>00270 } |
| 225 | <a name="l00271"></a>00271 } |
| 226 | <a name="l00272"></a>00272 |
| 227 | <a name="l00273"></a>00273 DOMNamedNodeMap* nodeMap = element->getAttributes(); |
| 228 | <a name="l00274"></a>00274 <span class="keywordflow">if</span>( nodeMap ) |
| 229 | <a name="l00275"></a>00275 <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i = 0; i < nodeMap->getLength(); i++ ) |
| 230 | <a name="l00276"></a>00276 { |
| 231 | <a name="l00277"></a>00277 DOMNode* node = nodeMap->item(i); |
| 232 | <a name="l00278"></a>00278 <span class="keywordflow">if</span>( node->getNodeType() == DOMNode::ATTRIBUTE_NODE ) |
| 233 | <a name="l00279"></a>00279 { |
| 234 | <a name="l00280"></a>00280 DOMAttr* attribute = (DOMAttr*) node; |
| 235 | <a name="l00281"></a>00281 Attribute::MappedAttributes::const_iterator iter = <a class="code" href="classUserInfo.html#aa6753c220a54aba613bfa3cc115d1c8" title="Length of the output vector.">attributes</a>.find( attribute->getName() ); |
| 236 | <a name="l00282"></a>00282 |
| 237 | <a name="l00283"></a>00283 <span class="keywordflow">if</span>( iter != <a class="code" href="classUserInfo.html#aa6753c220a54aba613bfa3cc115d1c8" title="Length of the output vector.">attributes</a>.end()) |
| 238 | <a name="l00284"></a>00284 { |
| 239 | <a name="l00285"></a>00285 <span class="keywordtype">string</span> attributeValue = <a class="code" href="classGlobalXercesConnector.html#9800b81014bc6497815e28ad4bd3cf3a" title="function transcodes Xerces&#39; XMLCh-based strings into C++ strings">GlobalXercesConnector::XMLCh2str</a>( attribute->getValue() ); |
| 240 | <a name="l00286"></a>00286 iter->second->Set( attributeValue ); |
| 241 | <a name="l00287"></a>00287 } |
| 242 | <a name="l00288"></a>00288 } |
| 243 | <a name="l00289"></a>00289 } |
| 244 | <a name="l00290"></a>00290 } |
| 245 | <a name="l00291"></a>00291 |
| 246 | <a name="l00292"></a><a class="code" href="classUserInfo.html#22ca1ef5a10740e4107cd5a7e9a72856">00292</a> <span class="keywordtype">void</span> <a class="code" href="classUserInfo.html#22ca1ef5a10740e4107cd5a7e9a72856" title="Fills DOMElement according internal attributes and descendant elements.">FillElement</a>(DOMElement &element) |
| 247 | <a name="l00293"></a>00293 { |
| 248 | <a name="l00294"></a>00294 DOMDocument* pDoc = element.getOwnerDocument(); |
| 249 | <a name="l00295"></a>00295 |
| 250 | <a name="l00296"></a>00296 DOMElement* pHead = pDoc->createElement( transcodedName ); |
| 251 | <a name="l00297"></a>00297 element.appendChild( pHead ); |
| 252 | <a name="l00298"></a>00298 |
| 253 | <a name="l00299"></a>00299 <span class="keywordflow">for</span>( MappedElements::const_iterator iter = <a class="code" href="classUserInfo.html#20783b9cdbef32b584be96851a8f9862" title="MappiLength of the output vector.">elements</a>.begin(); iter != <a class="code" href="classUserInfo.html#20783b9cdbef32b584be96851a8f9862" title="MappiLength of the output vector.">elements</a>.end(); iter++) |
| 254 | <a name="l00300"></a>00300 iter->second->FillElement( *pHead ); |
| 255 | <a name="l00301"></a>00301 |
| 256 | <a name="l00302"></a>00302 <span class="keywordflow">for</span>( Attribute::MappedAttributes::iterator iter = <a class="code" href="classUserInfo.html#aa6753c220a54aba613bfa3cc115d1c8" title="Length of the output vector.">attributes</a>.begin(); iter != <a class="code" href="classUserInfo.html#aa6753c220a54aba613bfa3cc115d1c8" title="Length of the output vector.">attributes</a>.end(); iter++) |
| 257 | <a name="l00303"></a>00303 iter->second->FillAttribute( *pHead ); |
| 258 | <a name="l00304"></a>00304 } |
| 259 | <a name="l00305"></a>00305 }; |
| 260 | <a name="l00306"></a>00306 |
| 261 | <a name="l00307"></a>00307 <span class="preprocessor">#endif // #ifndef UI_H</span> |