Sophie

Sophie

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

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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacehippodraw.html">hippodraw</a>::<a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a>
  </div>
</div>
<div class="contents">
<h1>DataRepController Class Reference</h1><!-- doxytag: class="hippodraw::DataRepController" -->
<p>A singleton class that is the interface between GUI and the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a>.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="DataRepController_8h_source.html">DataRepController.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for DataRepController:</div>
<div class="dynsection">
<div class="center"><img src="classhippodraw_1_1DataRepController__coll__graph.gif" border="0" usemap="#DataRepController_coll__map" alt="Collaboration graph"/></div>
<map name="DataRepController_coll__map" id="DataRepController_coll__map">
<area shape="rect" id="node5" title="STL class." alt="" coords="55,101,108,131"/><area shape="rect" id="node7" title="STL class." alt="" coords="5,5,147,35"/><area shape="rect" id="node9" title="STL class." alt="" coords="140,101,231,131"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classhippodraw_1_1DataRepController-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::string &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#abffedf29543665b597f7447bcab48278">bindingOptions</a> (<a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *rep)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the binding options, if any, for the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a>.  <a href="#abffedf29543665b597f7447bcab48278"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::string &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#aac96cd73dfac8c36c5b6451b3ada0eb8">bindingOptions</a> (const std::string &amp;name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the binding options, if any, for the named <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a>.  <a href="#aac96cd73dfac8c36c5b6451b3ada0eb8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a5742157c77ca7226a91b5634c8484364">changeDataSource</a> (<a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *rep, const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *tuple)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Changes the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a>.  <a href="#a5742157c77ca7226a91b5634c8484364"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#aef0127f5251ffaca3c8f170b12d59e70">createDataRep</a> (const std::string &amp;name, const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *ntuple, const std::vector&lt; std::string &gt; &amp;bindings) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object of class <em>name</em>.  <a href="#aef0127f5251ffaca3c8f170b12d59e70"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#abcb5800e60891a3da3033e41057b931b">createDataRep</a> (const std::string &amp;name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object of class <em>name</em>.  <a href="#abcb5800e60891a3da3033e41057b931b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::string &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a6abf207323edd24d8a7eda85ac1698cc">names</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the names of the types of <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> objects available.  <a href="#a6abf207323edd24d8a7eda85ac1698cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a07f3ba288b07e9fc3f1827c244374485">setAxisBindings</a> (<a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *rep, const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *ntuple, const std::vector&lt; std::string &gt; &amp;bindings) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the axis binding of the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object.  <a href="#a07f3ba288b07e9fc3f1827c244374485"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a2057e115a6aec75b487b81596234af9d">~DataRepController</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The destructor.  <a href="#a2057e115a6aec75b487b81596234af9d"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a62f357ef3edeb4cf03983e2f36cc9e52">instance</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the pointer to the singleton instance.  <a href="#a62f357ef3edeb4cf03983e2f36cc9e52"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a1256cad411c940fc3615e6634f7fbec6">DataRepController</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A default constructor for avoiding creation except by itself or with derived classes.  <a href="#a1256cad411c940fc3615e6634f7fbec6"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a37ac40175cb429368b057b15a8a71a7d">checkBindings</a> (const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *tuple, const std::vector&lt; std::string &gt; &amp;bindings) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns <code>true</code> if all the the string objects in the vector <em>bindings</em> are valid labels for the columns in <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> <em>tuple</em>.  <a href="#a37ac40175cb429368b057b15a8a71a7d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a588d20861af53f643b6a8b6369868db7">DataRepController</a> (const <a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A private copy constructor in order to avoid copying.  <a href="#a588d20861af53f643b6a8b6369868db7"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#aba066a2b2ac69008d54af027489ab0eb">m_null_vector</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A empty vector of strings.  <a href="#aba066a2b2ac69008d54af027489ab0eb"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DataRepController.html#a2271049a29b2bb3711a620c6853d5ff0">s_instance</a> = 0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The pointer to the singleton object.  <a href="#a2271049a29b2bb3711a620c6853d5ff0"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A singleton class that is the interface between GUI and the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a>. </p>
<p>It frequently implements the application logic which should neither be in the GUI nor in the display objects.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Paul F. Kunz &lt;<a href="mailto:Paul_Kunz@slac.stanford.edu">Paul_Kunz@slac.stanford.edu</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="DataRepController_8h_source.html#l00036">36</a> of file <a class="el" href="DataRepController_8h_source.html">DataRepController.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a588d20861af53f643b6a8b6369868db7"></a><!-- doxytag: member="hippodraw::DataRepController::DataRepController" ref="a588d20861af53f643b6a8b6369868db7" args="(const DataRepController &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A private copy constructor in order to avoid copying. </p>

</div>
</div>
<a class="anchor" id="a1256cad411c940fc3615e6634f7fbec6"></a><!-- doxytag: member="hippodraw::DataRepController::DataRepController" ref="a1256cad411c940fc3615e6634f7fbec6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A default constructor for avoiding creation except by itself or with derived classes. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00040">40</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>Referenced by <a class="el" href="DataRepController_8cxx_source.html#l00050">DataRepController::instance()</a>.</p>

</div>
</div>
<a class="anchor" id="a2057e115a6aec75b487b81596234af9d"></a><!-- doxytag: member="hippodraw::DataRepController::~DataRepController" ref="a2057e115a6aec75b487b81596234af9d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">~<a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The destructor. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00044">44</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="DataRepController_8cxx_source.html#l00050">DataRepController::instance()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abffedf29543665b597f7447bcab48278"></a><!-- doxytag: member="hippodraw::DataRepController::bindingOptions" ref="abffedf29543665b597f7447bcab48278" args="(DataRep *rep)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const vector&lt; string &gt; &amp; bindingOptions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *&nbsp;</td>
          <td class="paramname"> <em>rep</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the binding options, if any, for the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a>. </p>
<p>If no binding options are available, return an empty vector. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00068">68</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="NTupleProjector_8cxx_source.html#l00097">NTupleProjector::bindingOptions()</a>, <a class="el" href="DataRep_8cxx_source.html#l00138">DataRep::getProjector()</a>, and <a class="el" href="DataRepController_8h_source.html#l00046">DataRepController::m_null_vector</a>.</p>

</div>
</div>
<a class="anchor" id="aac96cd73dfac8c36c5b6451b3ada0eb8"></a><!-- doxytag: member="hippodraw::DataRepController::bindingOptions" ref="aac96cd73dfac8c36c5b6451b3ada0eb8" args="(const std::string &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const vector&lt; string &gt; &amp; bindingOptions </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the binding options, if any, for the named <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a>. </p>
<p>If no binding options are available, return an empty vector. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00059">59</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="DataRepController_8cxx_source.html#l00050">DataRepController::instance()</a>, and <a class="el" href="Factory_8h_source.html#l00140">Factory&lt; Type &gt;::prototype()</a>.</p>

<p>Referenced by <a class="el" href="DisplayController_8cxx_source.html#l00764">DisplayController::bindingOptions()</a>.</p>

</div>
</div>
<a class="anchor" id="a5742157c77ca7226a91b5634c8484364"></a><!-- doxytag: member="hippodraw::DataRepController::changeDataSource" ref="a5742157c77ca7226a91b5634c8484364" args="(DataRep *rep, const DataSource *tuple)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void changeDataSource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *&nbsp;</td>
          <td class="paramname"> <em>rep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>tuple</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Changes the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a>. </p>
<p>Attempt to change the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> for the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object while preserving the bindings. The object <em>rep</em> must be one that contains a <a class="el" href="classhippodraw_1_1NTupleProjector.html" title="An NTupleProjector is a projector that projects data from an DataSource object.">NTupleProjector</a>, otherwise an assertion is raised. If the <em>ntuple</em> doesn't have column labels required, then the old data source is restored and a DataSourceException is thrown. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00173">173</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="DataRepController_8cxx_source.html#l00146">DataRepController::setAxisBindings()</a>.</p>

</div>
</div>
<a class="anchor" id="a37ac40175cb429368b057b15a8a71a7d"></a><!-- doxytag: member="hippodraw::DataRepController::checkBindings" ref="a37ac40175cb429368b057b15a8a71a7d" args="(const DataSource *tuple, const std::vector&lt; std::string &gt; &amp;bindings) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool checkBindings </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>tuple</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>bindings</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns <code>true</code> if all the the string objects in the vector <em>bindings</em> are valid labels for the columns in <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> <em>tuple</em>. </p>
<p>Otherwise returns <code>false</code>. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00081">81</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>Referenced by <a class="el" href="DataRepController_8cxx_source.html#l00127">DataRepController::createDataRep()</a>.</p>

</div>
</div>
<a class="anchor" id="aef0127f5251ffaca3c8f170b12d59e70"></a><!-- doxytag: member="hippodraw::DataRepController::createDataRep" ref="aef0127f5251ffaca3c8f170b12d59e70" args="(const std::string &amp;name, const DataSource *ntuple, const std::vector&lt; std::string &gt; &amp;bindings) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> * createDataRep </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>ntuple</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>bindings</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object of class <em>name</em>. </p>
<p>Connects the newly created <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> to <em>ntuple</em> and sets the bindings to <em>bindings</em>. Returns <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> if successful, otherwise an <a class="el" href="classhippodraw_1_1DataRepException.html" title="An xception class that is thrown when attempting to bind a DataRep to a NTuple with...">DataRepException</a> is thrown. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00127">127</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="DataRepController_8cxx_source.html#l00081">DataRepController::checkBindings()</a>, <a class="el" href="Factory_8h_source.html#l00152">Factory&lt; Type &gt;::create()</a>, <a class="el" href="DataSource_8cxx_source.html#l00602">DataSource::expandIfNeeded()</a>, <a class="el" href="DataRepController_8cxx_source.html#l00050">DataRepController::instance()</a>, and <a class="el" href="DataRepController_8cxx_source.html#l00146">DataRepController::setAxisBindings()</a>.</p>

</div>
</div>
<a class="anchor" id="abcb5800e60891a3da3033e41057b931b"></a><!-- doxytag: member="hippodraw::DataRepController::createDataRep" ref="abcb5800e60891a3da3033e41057b931b" args="(const std::string &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> * createDataRep </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object of class <em>name</em>. </p>
<p>It should be a class that does not have <a class="el" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&lt;double&gt; to store the column...">NTuple</a> bindings. Returns the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object if successful, otherwise a <a class="el" href="classhippodraw_1_1DataRepException.html" title="An xception class that is thrown when attempting to bind a DataRep to a NTuple with...">DataRepException</a> is thrown. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00108">108</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="DataRepController_8cxx_source.html#l00050">DataRepController::instance()</a>, and <a class="el" href="FactoryException_8cxx_source.html#l00038">FactoryException::what()</a>.</p>

<p>Referenced by <a class="el" href="DisplayController_8cxx_source.html#l00465">DisplayController::addDataRep()</a>, <a class="el" href="DisplayController_8cxx_source.html#l00490">DisplayController::addDataRepStacked()</a>, <a class="el" href="CutController_8cxx_source.html#l00171">CutController::createCut()</a>, <a class="el" href="DataRepXML_8cxx_source.html#l00214">DataRepXML::createDataRep()</a>, and <a class="el" href="PyDataRep_8cxx_source.html#l00269">PyDataRep::PyDataRep()</a>.</p>

</div>
</div>
<a class="anchor" id="a62f357ef3edeb4cf03983e2f36cc9e52"></a><!-- doxytag: member="hippodraw::DataRepController::instance" ref="a62f357ef3edeb4cf03983e2f36cc9e52" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> * instance </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the pointer to the singleton instance. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00050">50</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="DataRepController_8cxx_source.html#l00040">DataRepController::DataRepController()</a>, and <a class="el" href="DataRepController_8h_source.html#l00042">DataRepController::s_instance</a>.</p>

<p>Referenced by <a class="el" href="DataRepController_8cxx_source.html#l00059">DataRepController::bindingOptions()</a>, <a class="el" href="DataRepXML_8cxx_source.html#l00189">DataRepXML::createDataRep()</a>, <a class="el" href="DataRepController_8cxx_source.html#l00108">DataRepController::createDataRep()</a>, <a class="el" href="PyDataRep_8cxx_source.html#l00301">PyDataRep::names()</a>, <a class="el" href="DataRepController_8cxx_source.html#l00099">DataRepController::names()</a>, <a class="el" href="Inspector_8cxx_source.html#l01527">Inspector::ntupleChanged()</a>, <a class="el" href="PyDataRep_8cxx_source.html#l00269">PyDataRep::PyDataRep()</a>, and <a class="el" href="DataRepController_8cxx_source.html#l00044">DataRepController::~DataRepController()</a>.</p>

</div>
</div>
<a class="anchor" id="a6abf207323edd24d8a7eda85ac1698cc"></a><!-- doxytag: member="hippodraw::DataRepController::names" ref="a6abf207323edd24d8a7eda85ac1698cc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const vector&lt; string &gt; &amp; names </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the names of the types of <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> objects available. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00099">99</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="DataRepController_8cxx_source.html#l00050">DataRepController::instance()</a>.</p>

</div>
</div>
<a class="anchor" id="a07f3ba288b07e9fc3f1827c244374485"></a><!-- doxytag: member="hippodraw::DataRepController::setAxisBindings" ref="a07f3ba288b07e9fc3f1827c244374485" args="(DataRep *rep, const DataSource *ntuple, const std::vector&lt; std::string &gt; &amp;bindings) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setAxisBindings </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataRep.html">DataRep</a> *&nbsp;</td>
          <td class="paramname"> <em>rep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>ntuple</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>bindings</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the axis binding of the <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a> object. </p>

<p>Definition at line <a class="el" href="DataRepController_8cxx_source.html#l00146">146</a> of file <a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a>.</p>

<p>References <a class="el" href="Observable_8cxx_source.html#l00052">Observable::addObserver()</a>, <a class="el" href="DataRep_8cxx_source.html#l00138">DataRep::getProjector()</a>, <a class="el" href="DataRep_8cxx_source.html#l00112">DataRep::setAxisBindings()</a>, <a class="el" href="NTupleProjector_8cxx_source.html#l00231">NTupleProjector::setNTuple()</a>, and <a class="el" href="num__util_8cpp_source.html#l00296">num_util::size()</a>.</p>

<p>Referenced by <a class="el" href="DataRepController_8cxx_source.html#l00173">DataRepController::changeDataSource()</a>, and <a class="el" href="DataRepController_8cxx_source.html#l00127">DataRepController::createDataRep()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aba066a2b2ac69008d54af027489ab0eb"></a><!-- doxytag: member="hippodraw::DataRepController::m_null_vector" ref="aba066a2b2ac69008d54af027489ab0eb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::string &gt; <a class="el" href="classhippodraw_1_1DataRepController.html#aba066a2b2ac69008d54af027489ab0eb">m_null_vector</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A empty vector of strings. </p>
<p>This vector is returned by member functions that can not obtain a reference from a <a class="el" href="classhippodraw_1_1DataRep.html" title="The base class for data representations.">DataRep</a>. </p>

<p>Definition at line <a class="el" href="DataRepController_8h_source.html#l00046">46</a> of file <a class="el" href="DataRepController_8h_source.html">DataRepController.h</a>.</p>

<p>Referenced by <a class="el" href="DataRepController_8cxx_source.html#l00068">DataRepController::bindingOptions()</a>.</p>

</div>
</div>
<a class="anchor" id="a2271049a29b2bb3711a620c6853d5ff0"></a><!-- doxytag: member="hippodraw::DataRepController::s_instance" ref="a2271049a29b2bb3711a620c6853d5ff0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1DataRepController.html">DataRepController</a> * <a class="el" href="classhippodraw_1_1DataRepController.html#a2271049a29b2bb3711a620c6853d5ff0">s_instance</a> = 0<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The pointer to the singleton object. </p>

<p>Definition at line <a class="el" href="DataRepController_8h_source.html#l00042">42</a> of file <a class="el" href="DataRepController_8h_source.html">DataRepController.h</a>.</p>

<p>Referenced by <a class="el" href="DataRepController_8cxx_source.html#l00050">DataRepController::instance()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="DataRepController_8h_source.html">DataRepController.h</a></li>
<li><a class="el" href="DataRepController_8cxx_source.html">DataRepController.cxx</a></li>
</ul>
</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>