<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6">
  <compounddef id="userinfo_8cpp" kind="file">
    <compoundname>userinfo.cpp</compoundname>
    <includes refid="userinfo_8h" local="yes">userinfo.h</includes>
    <incdepgraph>
      <node id="471">
        <label>xercesc/framework/LocalFileInputSource.hpp</label>
      </node>
      <node id="469">
        <label>xercesc/util/XMLString.hpp</label>
      </node>
      <node id="457">
        <label>work/git/mixpp/bdm/userinfo.cpp</label>
        <link refid="userinfo.cpp"/>
        <childnode refid="458" relation="include">
        </childnode>
      </node>
      <node id="473">
        <label>xercesc/parsers/XercesDOMParser.hpp</label>
      </node>
      <node id="462">
        <label>string</label>
      </node>
      <node id="464">
        <label>map</label>
      </node>
      <node id="458">
        <label>userinfo.h</label>
        <link refid="userinfo_8h-source"/>
        <childnode refid="459" relation="include">
        </childnode>
        <childnode refid="460" relation="include">
        </childnode>
        <childnode refid="461" relation="include">
        </childnode>
        <childnode refid="462" relation="include">
        </childnode>
        <childnode refid="463" relation="include">
        </childnode>
        <childnode refid="464" relation="include">
        </childnode>
        <childnode refid="465" relation="include">
        </childnode>
        <childnode refid="466" relation="include">
        </childnode>
        <childnode refid="467" relation="include">
        </childnode>
        <childnode refid="468" relation="include">
        </childnode>
        <childnode refid="469" relation="include">
        </childnode>
        <childnode refid="470" relation="include">
        </childnode>
        <childnode refid="471" relation="include">
        </childnode>
        <childnode refid="472" relation="include">
        </childnode>
        <childnode refid="473" relation="include">
        </childnode>
      </node>
      <node id="463">
        <label>typeinfo</label>
      </node>
      <node id="466">
        <label>vector</label>
      </node>
      <node id="465">
        <label>utility</label>
      </node>
      <node id="459">
        <label>sstream</label>
      </node>
      <node id="460">
        <label>iostream</label>
      </node>
      <node id="472">
        <label>xercesc/dom/DOMWriter.hpp</label>
      </node>
      <node id="470">
        <label>xercesc/framework/LocalFileFormatTarget.hpp</label>
      </node>
      <node id="467">
        <label>xercesc/dom/DOM.hpp</label>
      </node>
      <node id="468">
        <label>xercesc/util/PlatformUtils.hpp</label>
      </node>
      <node id="461">
        <label>stdio.h</label>
      </node>
    </incdepgraph>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">//<sp/>C++<sp/>Implementation:<sp/>itpp_ext</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="comment">//<sp/>Description:</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="comment">//<sp/>Author:<sp/>smidl<sp/>&lt;smidl@utia.cas.cz&gt;,<sp/>(C)<sp/>2008</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="9"><highlight class="normal"></highlight><highlight class="comment">//<sp/>Copyright:<sp/>See<sp/>COPYING<sp/>file<sp/>that<sp/>comes<sp/>with<sp/>this<sp/>distribution</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="12"><highlight class="normal"></highlight></codeline>
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;userinfo.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="14"><highlight class="normal"></highlight></codeline>
<codeline lineno="15" refid="classBindingFrame_165bec8fcde1865e2e211f42ca52a816f" refkind="member"><highlight class="normal"><ref refid="classBindingFrame_165bec8fcde1865e2e211f42ca52a816f" kindref="member" tooltip="default constructor">BindingFrame::BindingFrame</ref>()</highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>dummy()</highlight></codeline>
<codeline lineno="17"><highlight class="normal">{</highlight></codeline>
<codeline lineno="18"><highlight class="normal">}</highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight></codeline>
<codeline lineno="20" refid="classBindingFrame_12244bd5181c3d1e70f3a6be2b72e9424" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/><ref refid="classBindingFrame_12244bd5181c3d1e70f3a6be2b72e9424" kindref="member" tooltip="function which transcodes Xerces&amp;#39; XMLCh-based strings into C++ strings">BindingFrame::XMLCh2str</ref>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>XMLCh*<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><sp/>XMLCh_str<sp/>)</highlight></codeline>
<codeline lineno="21"><highlight class="normal">{</highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*local<sp/>=<sp/>XMLString::transcode(<sp/>XMLCh_str<sp/>);</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>res<sp/>=<sp/>local;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XMLString::release(<sp/>&amp;local<sp/>);</highlight></codeline>
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>res;</highlight></codeline>
<codeline lineno="26"><highlight class="normal">}</highlight></codeline>
<codeline lineno="27"><highlight class="normal"></highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight></codeline>
<codeline lineno="29" refid="classAttribute_14c4c80e6b59e3356324ef02d0e92d813" refkind="member"><highlight class="normal"><ref refid="classAttribute_14c4c80e6b59e3356324ef02d0e92d813" kindref="member" tooltip="Default constructor fixing a name of the related attribute.">Attribute::Attribute</ref>(<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>attributeName<sp/>)</highlight></codeline>
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>dummy(),<sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>transcodedAttributeName(<sp/>XMLString::transcode(<sp/>attributeName.c_str()<sp/>)<sp/>)</highlight></codeline>
<codeline lineno="32"><highlight class="normal">{</highlight></codeline>
<codeline lineno="33"><highlight class="normal">}</highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight></codeline>
<codeline lineno="35"><highlight class="normal">Attribute::~Attribute()</highlight></codeline>
<codeline lineno="36"><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/></highlight></codeline>
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XMLString::release(<sp/>(XMLCh**)&amp;transcodedAttributeName<sp/>);</highlight></codeline>
<codeline lineno="38"><highlight class="normal">}</highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight></codeline>
<codeline lineno="40" refid="classAttribute_16ebbcaaf9c90a979e645f469e02bb940" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">string</highlight><highlight class="normal">&amp;<sp/><ref refid="classAttribute_16ebbcaaf9c90a979e645f469e02bb940" kindref="member" tooltip="This method parse DOMElement, finds proper attribute and returns its value.">Attribute::Get</ref>(<sp/>DOMElement<sp/>&amp;element<sp/>)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
<codeline lineno="41"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>XMLCh*<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>transcoded_str<sp/>=<sp/>element.getAttribute(<sp/>transcodedAttributeName<sp/>);</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><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/>string(<sp/>XMLString::transcode(<sp/>transcoded_str<sp/>)<sp/>);</highlight></codeline>
<codeline lineno="44"><highlight class="normal">}</highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight></codeline>
<codeline lineno="46" refid="classAttribute_1e011d84e2e3c40390807a8b8e58e3c35" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classAttribute_1e011d84e2e3c40390807a8b8e58e3c35" kindref="member" tooltip="This method adds the passed string as an new attribute into the passed DOMElement...">Attribute::Set</ref>(<sp/>DOMElement<sp/>&amp;element,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>&amp;<ref refid="classstr" kindref="compound" tooltip="Structure of RV (used internally).">str</ref><sp/>)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
<codeline lineno="47"><highlight class="keyword"></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>!str.length()<sp/>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;<sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>XMLCh*<sp/>transcoded_str<sp/>=<sp/>XMLString::transcode(str.c_str());</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>element.setAttribute(<sp/>transcodedAttributeName,<sp/>transcoded_str<sp/>);</highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XMLString::release(<sp/>(XMLCh**)<sp/>&amp;transcoded_str<sp/>);</highlight></codeline>
<codeline lineno="52"><highlight class="normal">}</highlight></codeline>
<codeline lineno="53"><highlight class="normal"></highlight></codeline>
<codeline lineno="54"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classAttribute" kindref="compound" tooltip="Abstract class declaring general properties of a frame for data binding.">Attribute</ref><sp/><ref refid="classAttribute_1d6474fd976f505e70e10c497199c6770" kindref="member" tooltip="Static member, an instance related to an attribute named &amp;#39;help&amp;#39;.">Attribute::help</ref>(<sp/></highlight><highlight class="stringliteral">&quot;help&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
<codeline lineno="55"><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classAttribute" kindref="compound" tooltip="Abstract class declaring general properties of a frame for data binding.">Attribute</ref><sp/><ref refid="classAttribute_15f6cce980606fa8943857204aacb5478" kindref="member" tooltip="Static member, a constant instance related to an attribute named &amp;#39;type&amp;#39;.">Attribute::type</ref>(<sp/></highlight><highlight class="stringliteral">&quot;type&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
<codeline lineno="57"><highlight class="normal"></highlight></codeline>
<codeline lineno="58"><highlight class="normal"></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classAttribute" kindref="compound" tooltip="Abstract class declaring general properties of a frame for data binding.">Attribute</ref><sp/><ref refid="classAttribute_1452441da4ebfda23cdc668943ffe8da7" kindref="member" tooltip="Static member, a constant instance related to the attribute named &amp;#39;value&amp;#39;...">Attribute::value</ref>(<sp/></highlight><highlight class="stringliteral">&quot;value&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
<codeline lineno="59"><highlight class="normal"></highlight></codeline>
<codeline lineno="60"><highlight class="normal"></highlight></codeline>
<codeline lineno="61"><highlight class="normal">UserInfo::StringToUIMap::MappedString2UI&amp;<sp/>UserInfo::StringToUIMap::privateMap()</highlight></codeline>
<codeline lineno="62"><highlight class="normal">{</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>MappedString2UI<sp/>var;</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>var;</highlight></codeline>
<codeline lineno="65"><highlight class="normal">}</highlight></codeline>
<codeline lineno="66"><highlight class="normal"></highlight></codeline>
<codeline lineno="67"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>UserInfo::StringToUIMap::Add(<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>key,<sp/>pUserInfo<sp/>pInstance<sp/>)</highlight></codeline>
<codeline lineno="68"><highlight class="normal">{</highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>privateMap().insert(<sp/>make_pair(<sp/>key,<sp/>pInstance<sp/>)<sp/>);</highlight></codeline>
<codeline lineno="70"><highlight class="normal">}</highlight></codeline>
<codeline lineno="71"><highlight class="normal"></highlight></codeline>
<codeline lineno="72"><highlight class="normal">UserInfo::pUserInfo<sp/>UserInfo::StringToUIMap::Retrieve(<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>key<sp/>)</highlight></codeline>
<codeline lineno="73"><highlight class="normal">{</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MappedString2UI::const_iterator<sp/>iter<sp/>=<sp/>privateMap().find(<sp/>key<sp/>);</highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>iter<sp/>==<sp/>privateMap().end())<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>iter-&gt;second;</highlight></codeline>
<codeline lineno="77"><highlight class="normal">}<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="78"><highlight class="normal"></highlight></codeline>
<codeline lineno="79" refid="classRootElement_125cd0a3019e91c5bbe8bc09cdf6e61aa" refkind="member"><highlight class="normal"><ref refid="classRootElement_125cd0a3019e91c5bbe8bc09cdf6e61aa" kindref="member" tooltip="attach new RootElement instance to a file (typically with an XML extension)">RootElement::RootElement</ref>(<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*<sp/>fileName<sp/>)</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>dummy(),</highlight></codeline>
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>transcodedFileName(<sp/>XMLString::transcode(<sp/>fileName<sp/>)<sp/>)</highlight></codeline>
<codeline lineno="82"><highlight class="normal">{<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>get<sp/>a<sp/>serializer,<sp/>an<sp/>instance<sp/>of<sp/>DOMWriter<sp/>(the<sp/>&quot;LS&quot;<sp/>stands<sp/>for<sp/>load-save).</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pImplementation<sp/>=<sp/>DOMImplementationRegistry::getDOMImplementation(<sp/>XMLString::transcode(<sp/></highlight><highlight class="stringliteral">&quot;LS&quot;</highlight><highlight class="normal"><sp/>));</highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pSerializer<sp/>=<sp/>(<sp/>(DOMImplementationLS*)pImplementation<sp/>)-&gt;createDOMWriter();</highlight></codeline>
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>set<sp/>user<sp/>specified<sp/>end<sp/>of<sp/>line<sp/>sequence<sp/>and<sp/>output<sp/>encoding</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pSerializer-&gt;setNewLine(<sp/>XMLString::transcode(<sp/></highlight><highlight class="stringliteral">&quot;\n&quot;</highlight><highlight class="normal"><sp/>)<sp/>);</highlight></codeline>
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>optionally,<sp/>set<sp/>the<sp/>format-pretty-print<sp/>feature</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(pSerializer-&gt;canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">))</highlight></codeline>
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pSerializer-&gt;setFeature(XMLUni::fgDOMWRTFormatPrettyPrint,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="92"><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pDoc<sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Clean();</highlight></codeline>
<codeline lineno="95"><highlight class="normal">}</highlight></codeline>
<codeline lineno="96"><highlight class="normal"></highlight></codeline>
<codeline lineno="97"><highlight class="normal">RootElement::~RootElement()</highlight></codeline>
<codeline lineno="98"><highlight class="normal">{</highlight></codeline>
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XMLString::release(<sp/>(XMLCh**)&amp;transcodedFileName<sp/>);</highlight></codeline>
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pSerializer-&gt;release();</highlight></codeline>
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pDoc-&gt;release();</highlight></codeline>
<codeline lineno="102"><highlight class="normal"></highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classAssertXercesIsAlive" kindref="compound" tooltip="Class initializing Xerces library.">AssertXercesIsAlive</ref><sp/>dummy;<sp/></highlight><highlight class="comment">//<sp/>TODO<sp/>je<sp/>zde<sp/>treba?</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="104"><highlight class="normal">}</highlight></codeline>
<codeline lineno="105"><highlight class="normal"></highlight></codeline>
<codeline lineno="106"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>RootElement::Clean()</highlight></codeline>
<codeline lineno="107"><highlight class="normal">{</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>pDoc<sp/>)<sp/>pDoc-&gt;release();</highlight></codeline>
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pDoc<sp/>=<sp/>pImplementation-&gt;createDocument(<sp/></highlight></codeline>
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XMLString::transcode(<sp/></highlight><highlight class="stringliteral">&quot;M3K<sp/>USER<sp/>INFO&quot;</highlight><highlight class="normal"><sp/>),<sp/></highlight></codeline>
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XMLString::transcode(<sp/></highlight><highlight class="stringliteral">&quot;ROOT&quot;</highlight><highlight class="normal"><sp/>),<sp/>NULL<sp/>);</highlight></codeline>
<codeline lineno="112"><highlight class="normal">}</highlight></codeline>
<codeline lineno="113"><highlight class="normal"></highlight></codeline>
<codeline lineno="115" refid="classRootElement_1888749537060fd60a939486cd2e73b9b" refkind="member"><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classRootElement_1888749537060fd60a939486cd2e73b9b" kindref="member" tooltip="this method loads root element and all its subnodes from the attached file">RootElement::Load</ref>(<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>)<sp/></highlight></codeline>
<codeline lineno="116"><highlight class="normal">{</highlight></codeline>
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>LocalFileInputSource<sp/>inputSource(<sp/>transcodedFileName<sp/>);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="118"><highlight class="normal"></highlight></codeline>
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XercesDOMParser<sp/>parser;</highlight></codeline>
<codeline lineno="121"><highlight class="normal"></highlight></codeline>
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>parser.setValidationScheme(XercesDOMParser::Val_Auto);</highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>parser.setDoNamespaces(</highlight><highlight class="keyword">false</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>parser.setDoSchema(</highlight><highlight class="keyword">false</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="125"><highlight class="normal"></highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>parser.parse(<sp/>inputSource<sp/>);</highlight></codeline>
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>parser.getErrorCount()<sp/>)</highlight></codeline>
<codeline lineno="128"><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">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="129"><highlight class="normal"></highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>DOMDocument<sp/>*<sp/>newDoc<sp/>=<sp/>parser.adoptDocument();<sp/><sp/></highlight></codeline>
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>newDoc<sp/>==<sp/>NULL<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>
<codeline lineno="132"><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">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="133"><highlight class="normal"></highlight></codeline>
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<sp/>pDoc<sp/>)<sp/></highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pDoc-&gt;release();</highlight></codeline>
<codeline lineno="136"><highlight class="normal"></highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pDoc<sp/>=<sp/>newDoc;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="138"><highlight class="normal"><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">;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="139"><highlight class="normal">}</highlight></codeline>
<codeline lineno="140"><highlight class="normal"></highlight></codeline>
<codeline lineno="141"><highlight class="normal"></highlight></codeline>
<codeline lineno="143" refid="classRootElement_15ce717e64c3b7be09f695e6ede6294db" refkind="member"><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classRootElement_15ce717e64c3b7be09f695e6ede6294db" kindref="member" tooltip="this method saves all the previsoulsy attached DOMElements into the file">RootElement::Save</ref><sp/>(<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>)</highlight></codeline>
<codeline lineno="144"><highlight class="normal">{</highlight></codeline>
<codeline lineno="145"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>LocalFileFormatTarget<sp/>outputTarget(<sp/>transcodedFileName<sp/>);<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pSerializer-&gt;writeNode(<sp/>&amp;outputTarget,<sp/>*pDoc);</highlight></codeline>
<codeline lineno="147"><highlight class="normal">}<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="148"><highlight class="normal"></highlight></codeline>
<codeline lineno="149" refid="classRootElement_19ad2ae1c73d73b06bc98afa0f32d9ad3" refkind="member"><highlight class="normal"><ref refid="classRootElement_19ad2ae1c73d73b06bc98afa0f32d9ad3" kindref="member" tooltip="this operator allows to use a RootElement instance whenever a DOMElement variable...">RootElement::operator DOMElement&amp; </ref>()</highlight></codeline>
<codeline lineno="150"><highlight class="normal">{</highlight></codeline>
<codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*(pDoc-&gt;getDocumentElement());</highlight></codeline>
<codeline lineno="152"><highlight class="normal">}</highlight></codeline>
<codeline lineno="153"><highlight class="normal"></highlight></codeline>
<codeline lineno="154"><highlight class="normal"></highlight></codeline>
<codeline lineno="155"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;&gt;<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&lt;bool&gt;</ref>&amp;<sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo&lt;bool&gt;::instance</ref><sp/>=<sp/>BoolUI();</highlight></codeline>
<codeline lineno="156"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;&gt;<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&lt;int&gt;</ref>&amp;<sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo&lt;int&gt;::instance</ref><sp/>=<sp/>IntUI();</highlight></codeline>
<codeline lineno="157"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;&gt;<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&lt;double&gt;</ref>&amp;<sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo&lt;double&gt;::instance</ref><sp/>=<sp/>DoubleUI();</highlight></codeline>
<codeline lineno="158"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;&gt;<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&lt;string&gt;</ref>&amp;<sp/><ref refid="classTypedUserInfo" kindref="compound" tooltip="TypeUserInfo is still an abstract class, but contrary to the UserInfo class it is...">TypedUserInfo&lt;string&gt;::instance</ref><sp/>=<sp/>StringUI();</highlight></codeline>
    </programlisting>
    <location file="/home/smidl/work/git/mixpp/bdm/userinfo.cpp"/>
  </compounddef>
</doxygen>
