Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 833

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_d71d549033b3d00bbeb107001643b90a.html">xml</a>
  </div>
</div>
<div class="contents">
<h1>DataRepXML.cxx</h1><a href="DataRepXML_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="comment">// for truncation warning</span>
<a name="l00013"></a>00013 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#endif</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="DataRepXML_8h.html" title="hippodraw::DataRepXML class interface">DataRepXML.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="BinningProjectorXML_8h.html" title="BinningProjectorXML class interface.">BinningProjectorXML.h</a>&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="NTupleProjectorXML_8h.html" title="hippodraw::NTupleProjectorXML class interface">NTupleProjectorXML.h</a>&quot;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;<a class="code" href="FunctionProjectorXML_8h.html" title="FunctionProjectorXML class interface.">FunctionProjectorXML.h</a>&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="MapMatrixProjectorXML_8h.html" title="MapMatrixProjectorXML class interface.">MapMatrixProjectorXML.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="PointRepXML_8h.html" title="PointRepXML class interface.">PointRepXML.h</a>&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="XmlController_8h.html" title="XmlController class interface.">XmlController.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="XmlDocument_8h.html" title="XmlDocument class interface.">XmlDocument.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="XmlElement_8h.html" title="XmlElement class interface.">XmlElement.h</a>&quot;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="DataRepController_8h.html" title="DataRepController class interface.">controllers/DataRepController.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="FunctionController_8h.html" title="hippodraw::FunctionController class interface">controllers/FunctionController.h</a>&quot;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="DataRepException_8h.html">datareps/DataRepException.h</a>&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="FunctionRep_8h.html" title="hippodraw::FunctionRep class interface">datareps/FunctionRep.h</a>&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;<a class="code" href="TextDataRep_8h.html" title="hippodraw::TextDataRep class interface">datareps/TextDataRep.h</a>&quot;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;<a class="code" href="DataSource_8h.html" title="hippodraw::DataSource class interface.">datasrcs/DataSource.h</a>&quot;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;<a class="code" href="PlotterBase_8h.html" title="hippodraw::PlotterBase class interface.">plotters/PlotterBase.h</a>&quot;</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="preprocessor">#include &quot;<a class="code" href="BinningProjector_8h.html" title="hippodraw::BinningProjector class interface">projectors/BinningProjector.h</a>&quot;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &quot;<a class="code" href="MapMatrixProjector_8h.html" title="hippodraw::MapMatrixProjector class interface">projectors/MapMatrixProjector.h</a>&quot;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &quot;<a class="code" href="FunctionProjector_8h.html" title="hippodraw::FunctionProjector class interface">projectors/FunctionProjector.h</a>&quot;</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#include &quot;<a class="code" href="RepBase_8h.html" title="hippodraw::RepBase class interface">reps/RepBase.h</a>&quot;</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="keyword">using</span> std::string;
<a name="l00047"></a>00047 <span class="keyword">using</span> std::vector;
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keyword">using namespace </span>hippodraw;
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#a3d7e302505537516e073eb006e1c4eb4">00052</a> DataRepXML::DataRepXML ( <a class="code" href="classhippodraw_1_1XmlController.html" title="A base class that is the interface between GUI and the XML serialization and deserialization...">XmlController</a> * controller )
<a name="l00053"></a>00053   : <a class="code" href="classhippodraw_1_1BaseXML.html" title="A base class of XML element controllers.">BaseXML</a> ( <span class="stringliteral">&quot;DataRep&quot;</span>, controller ),
<a name="l00054"></a>00054     m_contours ( <span class="stringliteral">&quot;contours&quot;</span> )
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056   <a class="code" href="classhippodraw_1_1DataRepXML.html#a2689353c24658818d3f360270ac7f5dc" title="The PointRepXML instance used by this class.">m_pointrep</a>  = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1PointRepXML.html" title="A singleton class that is does XML serialization and de-serialization of derived...">PointRepXML</a> ( controller );
<a name="l00057"></a>00057   <a class="code" href="classhippodraw_1_1DataRepXML.html#a39af689d38cbe26abc57e507f246f08e" title="The NTupleProjectorXML instance used by this class.">m_nTupleProjector</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1NTupleProjectorXML.html" title="An class XML doing serialization and deserialization of derived classes of NTupleProjector...">NTupleProjectorXML</a> ( controller );
<a name="l00058"></a>00058   <a class="code" href="classhippodraw_1_1DataRepXML.html#a569df7624138ca899cfaa325d0bed0e2" title="the BinningProjectorXML instance used by this class.">m_binningProjectorXML</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1BinningProjectorXML.html" title="An class XML doing serialization and deserialization of derived classes of BinningProjector...">BinningProjectorXML</a> ( controller );
<a name="l00059"></a>00059   <a class="code" href="classhippodraw_1_1DataRepXML.html#a84ad61946b72fd33fc48143c06c25a64" title="The FunctionProjectorXML instance used by this class.">m_functionProjector</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1FunctionProjectorXML.html" title="An class XML doing serialization and deserialization of derived classes of FunctionProjector...">FunctionProjectorXML</a> ( controller );
<a name="l00060"></a>00060   <a class="code" href="classhippodraw_1_1DataRepXML.html#ae4ed63fc8dd9316c0ff1d79a222d1b2e" title="The MapMatrixProjectorXML instance used by this class.">m_mapMatrixProjectorXML</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1MapMatrixProjectorXML.html" title="An class XML doing serialization and de-serialization of derived classes of MapMatrixProjector...">MapMatrixProjectorXML</a> ( controller );
<a name="l00061"></a>00061 }
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <a class="code" href="classhippodraw_1_1DataRepXML.html#ab192b43701b12a3c4a62988a4405a7f0" title="The destructor.">DataRepXML::</a>
<a name="l00064"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#ab192b43701b12a3c4a62988a4405a7f0">00064</a> <a class="code" href="classhippodraw_1_1DataRepXML.html#ab192b43701b12a3c4a62988a4405a7f0" title="The destructor.">~DataRepXML</a> ()
<a name="l00065"></a>00065 {
<a name="l00066"></a>00066   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#a2689353c24658818d3f360270ac7f5dc" title="The PointRepXML instance used by this class.">m_pointrep</a>;
<a name="l00067"></a>00067   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#a39af689d38cbe26abc57e507f246f08e" title="The NTupleProjectorXML instance used by this class.">m_nTupleProjector</a>;
<a name="l00068"></a>00068   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#a569df7624138ca899cfaa325d0bed0e2" title="the BinningProjectorXML instance used by this class.">m_binningProjectorXML</a>;
<a name="l00069"></a>00069   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#a84ad61946b72fd33fc48143c06c25a64" title="The FunctionProjectorXML instance used by this class.">m_functionProjector</a>;
<a name="l00070"></a>00070   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#ae4ed63fc8dd9316c0ff1d79a222d1b2e" title="The MapMatrixProjectorXML instance used by this class.">m_mapMatrixProjectorXML</a>;
<a name="l00071"></a>00071 }
<a name="l00072"></a>00072 
<a name="l00073"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#add51e87d4e2f5dd7aa52769af2671554">00073</a> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * <a class="code" href="classhippodraw_1_1BaseXML.html#afa1d42a894a8739e0d120ed9c4383d38" title="Creates a new element node.">DataRepXML::createElement</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">hippodraw::DataRep</a> &amp; rep )
<a name="l00074"></a>00074 {
<a name="l00075"></a>00075   <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * tag = <a class="code" href="classhippodraw_1_1BaseXML.html#afa1d42a894a8739e0d120ed9c4383d38" title="Creates a new element node.">BaseXML::createElement</a> ();
<a name="l00076"></a>00076 
<a name="l00077"></a>00077   <span class="keyword">const</span> <span class="keywordtype">void</span> * addr = reinterpret_cast &lt; <span class="keyword">const</span> <span class="keywordtype">void</span> * &gt; ( &amp; rep );
<a name="l00078"></a>00078   <span class="keywordtype">int</span> <span class="keywordtype">id</span> = <a class="code" href="classhippodraw_1_1BaseXML.html#ae50d78be58d5938b4434515f4f037ece" title="The singleton XML controller object.">m_controller</a> -&gt; getId ( addr );
<a name="l00079"></a>00079 
<a name="l00080"></a>00080   <a class="code" href="classhippodraw_1_1BaseXML.html#aba09fa4e77f2c85cc12df1116cb5f31e" title="Sets the unique identification of the object.">setId</a> ( *tag, <span class="keywordtype">id</span> );
<a name="l00081"></a>00081   tag-&gt;<a class="code" href="classhippodraw_1_1XmlElement.html#abf6f7e218f61b094107a9e93ab267fd8" title="Sets attribute named name to the int value value.">setAttribute</a> ( <a class="code" href="classhippodraw_1_1BaseXML.html#af21e457cccd7226d53593e24988c6734" title="The attribute name for the type of object.">m_type</a>, rep.<a class="code" href="classhippodraw_1_1DataRep.html#a11c23a386abb9eb8a42f0c2c2835d640" title="Returns the name of the display.">name</a>() );
<a name="l00082"></a>00082 
<a name="l00083"></a>00083   <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">createChildren</a> ( *tag, rep );
<a name="l00084"></a>00084 
<a name="l00085"></a>00085   <span class="keywordflow">return</span> tag;
<a name="l00086"></a>00086 }
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#a47f5d44bc9b7a8ba0b57dd5e8201a993">00089</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">DataRepXML::createChildren</a> ( <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> &amp; tag,
<a name="l00090"></a>00090                                   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1NTupleProjector.html" title="An NTupleProjector is a projector that projects data from an DataSource object.">NTupleProjector</a> * projector )
<a name="l00091"></a>00091 {
<a name="l00092"></a>00092   <a class="code" href="classhippodraw_1_1NTupleProjectorXML.html" title="An class XML doing serialization and deserialization of derived classes of NTupleProjector...">NTupleProjectorXML</a> * qt_projector 
<a name="l00093"></a>00093     = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1NTupleProjectorXML.html" title="An class XML doing serialization and deserialization of derived classes of NTupleProjector...">NTupleProjectorXML</a> * &gt; ( <a class="code" href="classhippodraw_1_1DataRepXML.html#a39af689d38cbe26abc57e507f246f08e" title="The NTupleProjectorXML instance used by this class.">m_nTupleProjector</a> );
<a name="l00094"></a>00094   <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element = qt_projector-&gt;<a class="code" href="classhippodraw_1_1NTupleProjectorXML.html#a0751aaa7e3ded77f51040a870642d95a" title="Returns a newly created XML element with its attributes set.">createElement</a> ( *projector );
<a name="l00095"></a>00095 
<a name="l00096"></a>00096   tag.<a class="code" href="classhippodraw_1_1XmlNode.html#ae8f46895ca8b33a11cbff29b56ba48e4" title="Appends a child element to the element.">appendChild</a> ( *element );
<a name="l00097"></a>00097   <span class="keyword">delete</span> element;
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="keywordtype">void</span> 
<a name="l00101"></a>00101 <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">DataRepXML::</a>
<a name="l00102"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#a6cc63e8cbf20d6f6bba5ef8ae6ebfe7d">00102</a> <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">createChildren</a> ( <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> &amp; tag, <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinningProjector.html" title="The BinningProjector is an abstract class provides most of the functionality for...">BinningProjector</a> * projector )
<a name="l00103"></a>00103 {
<a name="l00104"></a>00104   <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element 
<a name="l00105"></a>00105     = <a class="code" href="classhippodraw_1_1DataRepXML.html#a569df7624138ca899cfaa325d0bed0e2" title="the BinningProjectorXML instance used by this class.">m_binningProjectorXML</a> -&gt; <a class="code" href="classhippodraw_1_1BaseXML.html#afa1d42a894a8739e0d120ed9c4383d38" title="Creates a new element node.">createElement</a> ( *projector );
<a name="l00106"></a>00106   tag.<a class="code" href="classhippodraw_1_1XmlNode.html#ae8f46895ca8b33a11cbff29b56ba48e4" title="Appends a child element to the element.">appendChild</a> ( *element );
<a name="l00107"></a>00107   <span class="keyword">delete</span> element;
<a name="l00108"></a>00108 }
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 <span class="keywordtype">void</span> 
<a name="l00111"></a>00111 <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">DataRepXML::</a>
<a name="l00112"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#af2c1e42446e28b0a99e4fa3c010da139">00112</a> <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">createChildren</a> ( <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> &amp; tag, <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1MapMatrixProjector.html" title="A derived class of NTupleProjector that maps 1 DataSource column to a Y axis of two...">MapMatrixProjector</a> * projector )
<a name="l00113"></a>00113 {
<a name="l00114"></a>00114   <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element 
<a name="l00115"></a>00115     = <a class="code" href="classhippodraw_1_1DataRepXML.html#ae4ed63fc8dd9316c0ff1d79a222d1b2e" title="The MapMatrixProjectorXML instance used by this class.">m_mapMatrixProjectorXML</a> -&gt; <a class="code" href="classhippodraw_1_1BaseXML.html#afa1d42a894a8739e0d120ed9c4383d38" title="Creates a new element node.">createElement</a> ( *projector );
<a name="l00116"></a>00116   tag.<a class="code" href="classhippodraw_1_1XmlNode.html#ae8f46895ca8b33a11cbff29b56ba48e4" title="Appends a child element to the element.">appendChild</a> ( *element );
<a name="l00117"></a>00117   <span class="keyword">delete</span> element;
<a name="l00118"></a>00118 }
<a name="l00119"></a>00119 
<a name="l00120"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#adccfca63d3d12248d431bce3ef2e4345">00120</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">DataRepXML::createChildren</a> ( <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> &amp; tag, 
<a name="l00121"></a>00121                                   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a> * projector )
<a name="l00122"></a>00122 {
<a name="l00123"></a>00123   <a class="code" href="classhippodraw_1_1FunctionProjectorXML.html" title="An class XML doing serialization and deserialization of derived classes of FunctionProjector...">FunctionProjectorXML</a> * qt_projector 
<a name="l00124"></a>00124     = dynamic_cast &lt; <a class="code" href="classhippodraw_1_1FunctionProjectorXML.html" title="An class XML doing serialization and deserialization of derived classes of FunctionProjector...">FunctionProjectorXML</a> * &gt; ( <a class="code" href="classhippodraw_1_1DataRepXML.html#a84ad61946b72fd33fc48143c06c25a64" title="The FunctionProjectorXML instance used by this class.">m_functionProjector</a> );
<a name="l00125"></a>00125   <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element = qt_projector-&gt;<a class="code" href="classhippodraw_1_1FunctionProjectorXML.html#aa6ac679555b2de7dc199615c28d1bb63" title="Returns a newly created XmlElement with its attributes set for projector.">createElement</a> ( *projector );
<a name="l00126"></a>00126 
<a name="l00127"></a>00127   tag.<a class="code" href="classhippodraw_1_1XmlNode.html#ae8f46895ca8b33a11cbff29b56ba48e4" title="Appends a child element to the element.">appendChild</a> ( *element );
<a name="l00128"></a>00128   <span class="keyword">delete</span> element;
<a name="l00129"></a>00129 }
<a name="l00130"></a>00130 
<a name="l00131"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b">00131</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">DataRepXML::createChildren</a> ( <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> &amp; tag,
<a name="l00132"></a>00132                                   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">hippodraw::DataRep</a> &amp; rep )
<a name="l00133"></a>00133 {
<a name="l00134"></a>00134   <a class="code" href="classhippodraw_1_1RepBase.html" title="The base class for the point representation hierarchy.">RepBase</a> * pointrep = rep.<a class="code" href="classhippodraw_1_1DataRep.html#abfc737a326dbb09bd633f8b84234ddec" title="Returns the representation used to draw the data points.">getRepresentation</a> ();
<a name="l00135"></a>00135   <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element = <a class="code" href="classhippodraw_1_1DataRepXML.html#a2689353c24658818d3f360270ac7f5dc" title="The PointRepXML instance used by this class.">m_pointrep</a>-&gt;<a class="code" href="classhippodraw_1_1PointRepXML.html#a0125ee42b32178c5b4c9a777f44bfb25" title="Returns a newly created XML element for the RepBase object.">createElement</a> ( *pointrep );
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   tag.<a class="code" href="classhippodraw_1_1XmlNode.html#ae8f46895ca8b33a11cbff29b56ba48e4" title="Appends a child element to the element.">appendChild</a> ( *element );
<a name="l00138"></a>00138   <span class="keyword">delete</span> element;
<a name="l00139"></a>00139 
<a name="l00140"></a>00140   <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * projbase = rep.<a class="code" href="classhippodraw_1_1DataRep.html#a37b55376f6e66874ac5a9ece07a0f57f" title="Returns the Projector object controlling the data.">getProjector</a> ();
<a name="l00141"></a>00141 
<a name="l00142"></a>00142   <span class="keywordflow">if</span> ( rep.<a class="code" href="classhippodraw_1_1DataRep.html#a31579875c6ccc59185e3503446d4a09a" title="Returns true if the DataRep&amp;#39;s projector can bind to DataSource.">hasNTupleBindings</a> () ) 
<a name="l00143"></a>00143     {
<a name="l00144"></a>00144       <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1NTupleProjector.html" title="An NTupleProjector is a projector that projects data from an DataSource object.">NTupleProjector</a> * projector
<a name="l00145"></a>00145         = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1NTupleProjector.html" title="An NTupleProjector is a projector that projects data from an DataSource object.">NTupleProjector</a> * &gt; ( projbase );
<a name="l00146"></a>00146       <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">createChildren</a> ( tag, projector );
<a name="l00147"></a>00147     }
<a name="l00148"></a>00148 
<a name="l00149"></a>00149   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinningProjector.html" title="The BinningProjector is an abstract class provides most of the functionality for...">BinningProjector</a> * binProjector 
<a name="l00150"></a>00150     = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinningProjector.html" title="The BinningProjector is an abstract class provides most of the functionality for...">BinningProjector</a> * &gt; ( projbase );
<a name="l00151"></a>00151   <span class="keywordflow">if</span> ( binProjector != 0 ) 
<a name="l00152"></a>00152     {
<a name="l00153"></a>00153       <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">createChildren</a> ( tag, binProjector );
<a name="l00154"></a>00154     }
<a name="l00155"></a>00155 
<a name="l00156"></a>00156   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a> * functionProjector
<a name="l00157"></a>00157     = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a> * &gt; ( projbase );
<a name="l00158"></a>00158   <span class="keywordflow">if</span> ( functionProjector != 0  ) 
<a name="l00159"></a>00159     {
<a name="l00160"></a>00160       <a class="code" href="classhippodraw_1_1DataRepXML.html#aa78ed2b3b02d68bc22ddf6b9903267c1" title="Creates the child element for the function target.">createFunctionTargetChild</a> ( tag, rep );
<a name="l00161"></a>00161       <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">createChildren</a> ( tag, functionProjector );
<a name="l00162"></a>00162     }
<a name="l00163"></a>00163 
<a name="l00164"></a>00164   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1MapMatrixProjector.html" title="A derived class of NTupleProjector that maps 1 DataSource column to a Y axis of two...">MapMatrixProjector</a> * mapMatrixProjector 
<a name="l00165"></a>00165     = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1MapMatrixProjector.html" title="A derived class of NTupleProjector that maps 1 DataSource column to a Y axis of two...">MapMatrixProjector</a> * &gt; ( projbase );
<a name="l00166"></a>00166   <span class="keywordflow">if</span> ( mapMatrixProjector != 0 ) {
<a name="l00167"></a>00167     <a class="code" href="classhippodraw_1_1DataRepXML.html#abd3baa3bfafeec4a3d9632fac09d455b" title="Creates the children elements of this element.">createChildren</a> ( tag, mapMatrixProjector );
<a name="l00168"></a>00168   }
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 }
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1DataRepXML.html#aa78ed2b3b02d68bc22ddf6b9903267c1" title="Creates the child element for the function target.">DataRepXML::</a>
<a name="l00173"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#aa78ed2b3b02d68bc22ddf6b9903267c1">00173</a> <a class="code" href="classhippodraw_1_1DataRepXML.html#aa78ed2b3b02d68bc22ddf6b9903267c1" title="Creates the child element for the function target.">createFunctionTargetChild</a> ( <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> &amp; tag,
<a name="l00174"></a>00174                             <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">hippodraw::DataRep</a> &amp; rep )
<a name="l00175"></a>00175 {
<a name="l00176"></a>00176   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionRep.html" title="A derived class of DataRep which is a base class for displaying a function.">FunctionRep</a> &amp; frep = dynamic_cast &lt; <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionRep.html" title="A derived class of DataRep which is a base class for displaying a function.">FunctionRep</a> &amp; &gt; ( rep );
<a name="l00177"></a>00177   <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">hippodraw::DataRep</a> * target = frep.<a class="code" href="classhippodraw_1_1FunctionRep.html#a51131bded80446fbc146ad11c7fe0ada" title="Returns the DataRep object upon which the function is applied.">getTarget</a> ();
<a name="l00178"></a>00178   <span class="keyword">const</span> <span class="keywordtype">void</span> * addr = reinterpret_cast &lt; <span class="keyword">const</span> <span class="keywordtype">void</span> * &gt; ( target );
<a name="l00179"></a>00179   <span class="keywordtype">int</span> <span class="keywordtype">id</span> = <a class="code" href="classhippodraw_1_1BaseXML.html#ae50d78be58d5938b4434515f4f037ece" title="The singleton XML controller object.">m_controller</a> -&gt; getId ( addr );
<a name="l00180"></a>00180   <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element 
<a name="l00181"></a>00181     = <a class="code" href="classhippodraw_1_1XmlController.html#a88c79c54a5590febd08ff65135a4a17d" title="The current document being generated or read.">XmlController::m_xml_doc</a>-&gt;<a class="code" href="classhippodraw_1_1XmlDocument.html#a04ac45c092a130deb2b20ba2aedfa0c8" title="Creates a new DOM element wrapper object and returns a pointer to it.">createElement</a> ( <span class="stringliteral">&quot;FunctionTarget&quot;</span> );
<a name="l00182"></a>00182   element-&gt;<a class="code" href="classhippodraw_1_1XmlElement.html#abf6f7e218f61b094107a9e93ab267fd8" title="Sets attribute named name to the int value value.">setAttribute</a> ( <span class="stringliteral">&quot;id&quot;</span>, <span class="keywordtype">id</span> );
<a name="l00183"></a>00183   tag.<a class="code" href="classhippodraw_1_1XmlNode.html#ae8f46895ca8b33a11cbff29b56ba48e4" title="Appends a child element to the element.">appendChild</a> ( *element );
<a name="l00184"></a>00184   <span class="keyword">delete</span> element;
<a name="l00185"></a>00185 }
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">hippodraw::DataRep</a> *
<a name="l00188"></a>00188 <a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7" title="Creates and returns a DataRep object that does not have NTuple bindings.">DataRepXML::</a>
<a name="l00189"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7">00189</a> <a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7" title="Creates and returns a DataRep object that does not have NTuple bindings.">createDataRep</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element )
<a name="l00190"></a>00190 {
<a name="l00191"></a>00191   <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep = 0;
<a name="l00192"></a>00192 
<a name="l00193"></a>00193   <span class="keywordtype">string</span> <a class="code" href="namespacenum__util.html#af7e893a8c6a5f6a426480fc85cda4fa1">type</a>;
<a name="l00194"></a>00194   <span class="keywordtype">bool</span> ok = element -&gt; attribute ( <a class="code" href="classhippodraw_1_1BaseXML.html#af21e457cccd7226d53593e24988c6734" title="The attribute name for the type of object.">m_type</a>, type );
<a name="l00195"></a>00195   assert ( ok );
<a name="l00196"></a>00196 
<a name="l00197"></a>00197   <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;Z Plot&quot;</span> ) {
<a name="l00198"></a>00198     type = <span class="stringliteral">&quot;Image&quot;</span>;  <span class="comment">// name has changed.</span>
<a name="l00199"></a>00199   }
<a name="l00200"></a>00200 
<a name="l00201"></a>00201   <a class="code" href="classhippodraw_1_1DataRepController.html" title="A singleton class that is the interface between GUI and the DataRep.">DataRepController</a> * controller = <a class="code" href="classhippodraw_1_1DataRepController.html#a62f357ef3edeb4cf03983e2f36cc9e52" title="Returns the pointer to the singleton instance.">DataRepController::instance</a> ();
<a name="l00202"></a>00202   <span class="keywordflow">try</span> {
<a name="l00203"></a>00203     rep = controller -&gt; <a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7" title="Creates and returns a DataRep object that does not have NTuple bindings.">createDataRep</a> ( type );
<a name="l00204"></a>00204   }
<a name="l00205"></a>00205   <span class="keywordflow">catch</span> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataRepException.html" title="An xception class that is thrown when attempting to bind a DataRep to a NTuple with...">DataRepException</a> &amp; ) {
<a name="l00206"></a>00206     <span class="comment">// do nothing</span>
<a name="l00207"></a>00207   }
<a name="l00208"></a>00208 
<a name="l00209"></a>00209   <span class="keywordflow">return</span> rep;
<a name="l00210"></a>00210 }
<a name="l00211"></a>00211 
<a name="l00212"></a>00212 <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * 
<a name="l00213"></a>00213 <a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7" title="Creates and returns a DataRep object that does not have NTuple bindings.">DataRepXML::</a>
<a name="l00214"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#a60fb440016b3e9259551cd79095be815">00214</a> <a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7" title="Creates and returns a DataRep object that does not have NTuple bindings.">createDataRep</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element, <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * ntp_element )
<a name="l00215"></a>00215 {
<a name="l00216"></a>00216   <span class="keywordtype">string</span>  <a class="code" href="namespacenum__util.html#af7e893a8c6a5f6a426480fc85cda4fa1">type</a>;
<a name="l00217"></a>00217   <span class="keywordtype">bool</span> ok = element-&gt;<a class="code" href="classhippodraw_1_1XmlElement.html#afa83a3518bac3d6ae2bc519084071fad" title="Sets value to the attribute name&amp;#39;s value.">attribute</a> ( <a class="code" href="classhippodraw_1_1BaseXML.html#af21e457cccd7226d53593e24988c6734" title="The attribute name for the type of object.">m_type</a>, type );
<a name="l00218"></a>00218   assert ( ok );
<a name="l00219"></a>00219 
<a name="l00220"></a>00220   <span class="keywordtype">int</span> ref = <a class="code" href="classhippodraw_1_1DataRepXML.html#a39af689d38cbe26abc57e507f246f08e" title="The NTupleProjectorXML instance used by this class.">m_nTupleProjector</a>-&gt;<a class="code" href="classhippodraw_1_1NTupleProjectorXML.html#a7ec8fe88152940254e74f3b87cf84b6b" title="Retrieves the reference to the DataSource from the XML elements&amp;#39;s data.">getNTupleReference</a> ( ntp_element );
<a name="l00221"></a>00221   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ntuple = <a class="code" href="classhippodraw_1_1BaseXML.html#ae50d78be58d5938b4434515f4f037ece" title="The singleton XML controller object.">m_controller</a>-&gt;<a class="code" href="classhippodraw_1_1XmlController.html#a75120d57d28ca42ca1a380326b9cb73b" title="Returns pointer to data source from the xml reference ID.">getDataSource</a> ( ref );
<a name="l00222"></a>00222   assert ( ntuple != 0 );
<a name="l00223"></a>00223 
<a name="l00224"></a>00224   vector &lt; string &gt; bindings;
<a name="l00225"></a>00225   <a class="code" href="classhippodraw_1_1DataRepXML.html#a39af689d38cbe26abc57e507f246f08e" title="The NTupleProjectorXML instance used by this class.">m_nTupleProjector</a>-&gt;<a class="code" href="classhippodraw_1_1NTupleProjectorXML.html#a7c94c0b7bcaf05f7a9f9a3eb0a604e69" title="Retreives the bindings to the HiNTuple from the element&amp;#39;s data by clearing the...">getBindings</a> ( ntp_element, bindings );
<a name="l00226"></a>00226       
<a name="l00227"></a>00227   <a class="code" href="classhippodraw_1_1DataRepController.html" title="A singleton class that is the interface between GUI and the DataRep.">DataRepController</a> * controller = <a class="code" href="classhippodraw_1_1DataRepController.html#a62f357ef3edeb4cf03983e2f36cc9e52" title="Returns the pointer to the singleton instance.">DataRepController::instance</a>();
<a name="l00228"></a>00228   <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep 
<a name="l00229"></a>00229     = controller-&gt;<a class="code" href="classhippodraw_1_1DataRepController.html#abcb5800e60891a3da3033e41057b931b" title="Creates a new DataRep object of class name.">createDataRep</a> ( type, ntuple, bindings );
<a name="l00230"></a>00230 
<a name="l00231"></a>00231   <span class="keywordflow">return</span> rep;
<a name="l00232"></a>00232 }
<a name="l00233"></a>00233 
<a name="l00236"></a>00236 <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> *
<a name="l00237"></a>00237 <a class="code" href="classhippodraw_1_1DataRepXML.html#a139ee96503f993639e4387c140042ee5" title="Creates and returns a DataRep object that is a TextDataRep.">DataRepXML::</a>
<a name="l00238"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#a139ee96503f993639e4387c140042ee5">00238</a> <a class="code" href="classhippodraw_1_1DataRepXML.html#a139ee96503f993639e4387c140042ee5" title="Creates and returns a DataRep object that is a TextDataRep.">getTextRepObject</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * )
<a name="l00239"></a>00239 {
<a name="l00240"></a>00240   <a class="code" href="classhippodraw_1_1TextDataRep.html" title="Displays data in textual representation.">TextDataRep</a> * rep = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1TextDataRep.html" title="Displays data in textual representation.">TextDataRep</a> ();
<a name="l00241"></a>00241 
<a name="l00242"></a>00242   <span class="keywordflow">return</span> rep;
<a name="l00243"></a>00243 }
<a name="l00244"></a>00244 
<a name="l00245"></a><a class="code" href="classhippodraw_1_1DataRepXML.html#a8bbb59bb233b235d88a09352e16c3ac3">00245</a> <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * <a class="code" href="classhippodraw_1_1DataRepXML.html#a8bbb59bb233b235d88a09352e16c3ac3" title="Returns a newly created object based on the XmlElement.">DataRepXML::createObject</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * dr_element )
<a name="l00246"></a>00246 {
<a name="l00247"></a>00247   <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * rep = 0;
<a name="l00248"></a>00248 
<a name="l00249"></a>00249   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element
<a name="l00250"></a>00250     = <a class="code" href="classhippodraw_1_1DataRepXML.html#a39af689d38cbe26abc57e507f246f08e" title="The NTupleProjectorXML instance used by this class.">m_nTupleProjector</a>-&gt;<a class="code" href="classhippodraw_1_1BaseXML.html#af145db70f519c8883e84023299d30356" title="Returns the single child node of element of the type that can be handled by this...">getNode</a> ( dr_element );
<a name="l00251"></a>00251 
<a name="l00252"></a>00252   <span class="keywordflow">if</span> ( element != 0 ) { <span class="comment">// bound to ntuple</span>
<a name="l00253"></a>00253       rep = <a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7" title="Creates and returns a DataRep object that does not have NTuple bindings.">createDataRep</a> ( dr_element, element );
<a name="l00254"></a>00254       <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * projector = rep-&gt;<a class="code" href="classhippodraw_1_1DataRep.html#a37b55376f6e66874ac5a9ece07a0f57f" title="Returns the Projector object controlling the data.">getProjector</a> ();
<a name="l00255"></a>00255       <a class="code" href="classhippodraw_1_1DataRepXML.html#a569df7624138ca899cfaa325d0bed0e2" title="the BinningProjectorXML instance used by this class.">m_binningProjectorXML</a>-&gt;<a class="code" href="classhippodraw_1_1BinningProjectorXML.html#a4ba5e6a487ed03f0608761c0a987c8e6" title="Sets the binning attributes of the projector from child nodes of the parent XML element...">getObject</a> ( dr_element, projector );
<a name="l00256"></a>00256   }
<a name="l00257"></a>00257 
<a name="l00258"></a>00258   element = <a class="code" href="classhippodraw_1_1DataRepXML.html#ae4ed63fc8dd9316c0ff1d79a222d1b2e" title="The MapMatrixProjectorXML instance used by this class.">m_mapMatrixProjectorXML</a> -&gt; <a class="code" href="classhippodraw_1_1BaseXML.html#af145db70f519c8883e84023299d30356" title="Returns the single child node of element of the type that can be handled by this...">getNode</a> ( dr_element );
<a name="l00259"></a>00259   <span class="keywordflow">if</span> ( element != 0 ) {
<a name="l00260"></a>00260     <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * projector = rep -&gt; getProjector ();
<a name="l00261"></a>00261     <a class="code" href="classhippodraw_1_1DataRepXML.html#ae4ed63fc8dd9316c0ff1d79a222d1b2e" title="The MapMatrixProjectorXML instance used by this class.">m_mapMatrixProjectorXML</a> -&gt; setAttributes ( element, projector );
<a name="l00262"></a>00262   }
<a name="l00263"></a>00263 
<a name="l00264"></a>00264   element = <a class="code" href="classhippodraw_1_1DataRepXML.html#a84ad61946b72fd33fc48143c06c25a64" title="The FunctionProjectorXML instance used by this class.">m_functionProjector</a>-&gt;<a class="code" href="classhippodraw_1_1BaseXML.html#af145db70f519c8883e84023299d30356" title="Returns the single child node of element of the type that can be handled by this...">getNode</a> ( dr_element );
<a name="l00265"></a>00265   <span class="keywordflow">if</span> ( element != 0 ) {
<a name="l00266"></a>00266     <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * targetelement = dr_element-&gt;<a class="code" href="classhippodraw_1_1XmlElement.html#a7147817d0afff9c4283e6a4d6e03ab08" title="Returns the single direct child element node with name tagName.">getNode</a> ( <span class="stringliteral">&quot;FunctionTarget&quot;</span> );
<a name="l00267"></a>00267     assert ( targetelement );
<a name="l00268"></a>00268     <span class="keywordtype">int</span> <span class="keywordtype">id</span> = targetelement-&gt;<a class="code" href="classhippodraw_1_1XmlElement.html#a6204675a4fca73c67cd422e7e76c1beb" title="Returns the ID of the element, if it has one.">getID</a> ();
<a name="l00269"></a>00269     <a class="code" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> * target = <a class="code" href="classhippodraw_1_1BaseXML.html#ae50d78be58d5938b4434515f4f037ece" title="The singleton XML controller object.">m_controller</a>-&gt;<a class="code" href="classhippodraw_1_1XmlController.html#adeda718878d52ea3402baa955862dad9" title="Returns a pointer to the DataRep from the xml reference Id.">getDataRep</a> ( <span class="keywordtype">id</span> );
<a name="l00270"></a>00270     assert ( target );
<a name="l00271"></a>00271     rep = <a class="code" href="classhippodraw_1_1DataRepXML.html#a84ad61946b72fd33fc48143c06c25a64" title="The FunctionProjectorXML instance used by this class.">m_functionProjector</a> -&gt; createFunctionRep ( element, target );
<a name="l00272"></a>00272   }
<a name="l00273"></a>00273 
<a name="l00274"></a>00274   <span class="keywordflow">if</span> ( element == 0 ) { <span class="comment">// not any of above</span>
<a name="l00275"></a>00275     <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * element
<a name="l00276"></a>00276       = <a class="code" href="classhippodraw_1_1DataRepXML.html#a39af689d38cbe26abc57e507f246f08e" title="The NTupleProjectorXML instance used by this class.">m_nTupleProjector</a>-&gt;<a class="code" href="classhippodraw_1_1BaseXML.html#af145db70f519c8883e84023299d30356" title="Returns the single child node of element of the type that can be handled by this...">getNode</a> ( dr_element );
<a name="l00277"></a>00277     <span class="keywordflow">if</span> ( element == 0 ) {
<a name="l00278"></a>00278       rep = <a class="code" href="classhippodraw_1_1DataRepXML.html#ab02df9f829c4120649089a01ed52d4e7" title="Creates and returns a DataRep object that does not have NTuple bindings.">createDataRep</a> ( dr_element );
<a name="l00279"></a>00279       <span class="keywordflow">if</span> ( rep != 0 ) {
<a name="l00280"></a>00280         <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * projector = rep -&gt; getProjector ();
<a name="l00281"></a>00281         <a class="code" href="classhippodraw_1_1DataRepXML.html#a569df7624138ca899cfaa325d0bed0e2" title="the BinningProjectorXML instance used by this class.">m_binningProjectorXML</a> -&gt; getObject ( dr_element, projector );
<a name="l00282"></a>00282         <a class="code" href="classhippodraw_1_1DataRepXML.html#a569df7624138ca899cfaa325d0bed0e2" title="the BinningProjectorXML instance used by this class.">m_binningProjectorXML</a> -&gt; setBins ( dr_element, projector );
<a name="l00283"></a>00283       }
<a name="l00284"></a>00284     }
<a name="l00285"></a>00285   }
<a name="l00286"></a>00286 
<a name="l00287"></a>00287   <span class="keywordtype">string</span> <a class="code" href="namespacenum__util.html#af7e893a8c6a5f6a426480fc85cda4fa1">type</a>;
<a name="l00288"></a>00288   <span class="keywordtype">bool</span> ok = dr_element-&gt;<a class="code" href="classhippodraw_1_1XmlElement.html#afa83a3518bac3d6ae2bc519084071fad" title="Sets value to the attribute name&amp;#39;s value.">attribute</a> ( <a class="code" href="classhippodraw_1_1BaseXML.html#af21e457cccd7226d53593e24988c6734" title="The attribute name for the type of object.">m_type</a>, type );
<a name="l00289"></a>00289   assert ( ok );
<a name="l00290"></a>00290 
<a name="l00291"></a>00291   <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;TextDataRep&quot;</span> ) {
<a name="l00292"></a>00292     rep = <a class="code" href="classhippodraw_1_1DataRepXML.html#a139ee96503f993639e4387c140042ee5" title="Creates and returns a DataRep object that is a TextDataRep.">getTextRepObject</a> ( dr_element );
<a name="l00293"></a>00293   }
<a name="l00294"></a>00294 
<a name="l00295"></a>00295   <span class="keywordflow">if</span> ( rep == 0 ) <span class="keywordflow">return</span> 0;
<a name="l00296"></a>00296   
<a name="l00297"></a>00297   <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1XmlElement.html" title="A pure virtual base class of XML element wrapper.">XmlElement</a> * pr_element = <a class="code" href="classhippodraw_1_1DataRepXML.html#a2689353c24658818d3f360270ac7f5dc" title="The PointRepXML instance used by this class.">m_pointrep</a>-&gt;<a class="code" href="classhippodraw_1_1BaseXML.html#af145db70f519c8883e84023299d30356" title="Returns the single child node of element of the type that can be handled by this...">getNode</a> ( dr_element );
<a name="l00298"></a>00298   assert ( pr_element );
<a name="l00299"></a>00299   <a class="code" href="classhippodraw_1_1RepBase.html" title="The base class for the point representation hierarchy.">RepBase</a> * pr = <a class="code" href="classhippodraw_1_1DataRepXML.html#a2689353c24658818d3f360270ac7f5dc" title="The PointRepXML instance used by this class.">m_pointrep</a>-&gt;<a class="code" href="classhippodraw_1_1PointRepXML.html#aeac92da6b99501cae26ca042e756a0b1" title="Creates an object derived from RepBase from information in the XmlElement.">createObject</a> ( pr_element );
<a name="l00300"></a>00300   rep-&gt;<a class="code" href="classhippodraw_1_1DataRep.html#a9870b1378e32b2789ab4c68a0445c348" title="Sets the representation of the data points.">setPointRep</a> ( pr );
<a name="l00301"></a>00301   
<a name="l00302"></a>00302   <span class="keywordflow">return</span> rep;
<a name="l00303"></a>00303 }
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>