Sophie

Sophie

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

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_1NTupleController.html">NTupleController</a>
  </div>
</div>
<div class="contents">
<h1>NTupleController Class Reference</h1><!-- doxytag: class="hippodraw::NTupleController" -->
<p>A singleton class that is the interface between GUI and the <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> objects.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="NTupleController_8h_source.html">NTupleController.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for NTupleController:</div>
<div class="dynsection">
<div class="center"><img src="classhippodraw_1_1NTupleController__coll__graph.gif" border="0" usemap="#NTupleController_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classhippodraw_1_1NTupleController-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">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#ac4fe98a25c8e5e8dd66c7a2fd0cb2a17">changeName</a> (<a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *source, const std::string &amp;newname)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Changes the name of the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> object.  <a href="#ac4fe98a25c8e5e8dd66c7a2fd0cb2a17"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1CircularBuffer.html">CircularBuffer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a6d52a03fe6dd8b53c0d4a81b9f67b583">createCircularBuffer</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates and registers an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a>.  <a href="#a6d52a03fe6dd8b53c0d4a81b9f67b583"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1CircularBuffer.html">CircularBuffer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a51bdd27469e51745782f0d9f9f5a74d4">createCircularBuffer</a> (unsigned int columns)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates and registers an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a>.  <a href="#a51bdd27469e51745782f0d9f9f5a74d4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1CircularBuffer.html">CircularBuffer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a75c48e1f54dc722b15f792afa607ebb8">createCircularBuffer</a> (const std::vector&lt; std::string &gt; &amp;labels)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates and registers an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a>.  <a href="#a75c48e1f54dc722b15f792afa607ebb8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a60966c14d0feefec24d825ab82d37e4f">createNTuple</a> (const std::vector&lt; std::string &gt; &amp;column_list, const std::vector&lt; const <a class="el" href="classhippodraw_1_1TupleCut.html">TupleCut</a> * &gt; &amp;cut_list, <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *ds)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create <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> with column list and cut list.  <a href="#a60966c14d0feefec24d825ab82d37e4f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#acb491d08abb6c7ddc23c3fee5f09094f">createNTuple</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates and registers an empty <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>.  <a href="#acb491d08abb6c7ddc23c3fee5f09094f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a2fc0175526e6aadab484ae95d032325b">createNTuple</a> (unsigned int columns)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates and registers an empty <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>.  <a href="#a2fc0175526e6aadab484ae95d032325b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a7ff0f5af26427ca8492dccf6c6062824">createNTuple</a> (const std::vector&lt; std::string &gt; &amp;labels)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates and registers an empty <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>.  <a href="#a7ff0f5af26427ca8492dccf6c6062824"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a367a0129829b506b44f415cad946db40">createNTuple</a> (const std::string &amp;filename)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates and registers an <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> from data in file <em>filename</em>.  <a href="#a367a0129829b506b44f415cad946db40"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a582456bed2f3f7ad2359150575a48f1b">createNTupleToFile</a> (const std::vector&lt; std::string &gt; &amp;column_list, const std::vector&lt; const <a class="el" href="classhippodraw_1_1TupleCut.html">TupleCut</a> * &gt; &amp;cut_list, <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *ds, const std::string &amp;filename, const std::string &amp;dsname)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create <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> with column list and cut list and save to a file.  <a href="#a582456bed2f3f7ad2359150575a48f1b"></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_1NTupleController.html#ae7fd3d3f39d6fbeb16d3ef1f5db7fdf1">fillFromFile</a> (const std::string &amp;file, <a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fills the empty <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> <em>source</em> from reading data from the <em>file</em>.  <a href="#ae7fd3d3f39d6fbeb16d3ef1f5db7fdf1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a12d64d4bd97d8216595ba5a405e4399b">findDataSource</a> (const std::string &amp;name) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> object with name <em>name</em>.  <a href="#a12d64d4bd97d8216595ba5a405e4399b"></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_1NTupleController.html#a94d7461b01e694bea2b253ef14cd0ebe">registerNTuple</a> (const std::string &amp;, <a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *ntuple)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Register a <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>.  <a href="#a94d7461b01e694bea2b253ef14cd0ebe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a36f566288e01236f92e4430a26c91283">registerNTuple</a> (<a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *nt)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Register a <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>.  <a href="#a36f566288e01236f92e4430a26c91283"></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_1NTupleController.html#a1972284caeded9ca4ab75f6920b93a22">saveNTuples</a> (const std::string &amp;prefix, const std::string &amp;suffix)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Saves all the <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>.  <a href="#a1972284caeded9ca4ab75f6920b93a22"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a3a23b2dd32d9dd4b9ff1db6cd5e952a9">writeNTupleToFile</a> (const std::string &amp;name, const std::string &amp;filename)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Writes the <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> named <em>name</em> to the file <em>filename</em>.  <a href="#a3a23b2dd32d9dd4b9ff1db6cd5e952a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a66b12b1d426bb84b3511ebbec62ad6aa">writeNTupleToFile</a> (<a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *source, const std::string &amp;filename)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Writes the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> <em>source</em> to a file given by <em>filename</em>.  <a href="#a66b12b1d426bb84b3511ebbec62ad6aa"></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_1NTupleController.html">NTupleController</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#ae02f71abaf1f85101c7044455ca8ac1a">instance</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the pointer to the singleton instance.  <a href="#ae02f71abaf1f85101c7044455ca8ac1a"></a><br/></td></tr>
<tr><td colspan="2"><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string::size_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#ab07b1cf83749e0ed0b5fd5d4c01b4221">findWhite</a> (const std::string &amp;line, unsigned int left=0, bool tabs_only=false)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find and return position of white space.  <a href="#ab07b1cf83749e0ed0b5fd5d4c01b4221"></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_1NTupleController.html#aec20826712f556d32fdc8868b7d246e6">NTupleController</a> (const <a class="el" href="classhippodraw_1_1NTupleController.html">NTupleController</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A private copy constructor in order to avoid copying.  <a href="#aec20826712f556d32fdc8868b7d246e6"></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_1NTupleController.html#acd72446c2516587975bf6669fcc0213d">NTupleController</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A default constructor for avoiding creation except by itself.  <a href="#acd72446c2516587975bf6669fcc0213d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#a6753b631926a447634c24086de4a3fab">readAsciiNTuple</a> (<a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *ntuple, const std::string &amp;filename)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reads ASCII formatted file and fills the <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>.  <a href="#a6753b631926a447634c24086de4a3fab"></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_1NTupleController.html#ad8be2b0e20b7cfefe6bdc7452d442c03">splitAndFill</a> (const std::string &amp;line, std::vector&lt; std::string &gt; &amp;values)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Splits the <em>line</em> at white space and fills <em>values</em> with strings found.  <a href="#ad8be2b0e20b7cfefe6bdc7452d442c03"></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_1NTupleController.html">NTupleController</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1NTupleController.html#ac1a4247ea82561923c1f6807c5cfe02f">s_instance</a> = 0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The pointer to the singleton object.  <a href="#ac1a4247ea82561923c1f6807c5cfe02f"></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_1NTuple.html" title="A DataSource class implemented with std::vector&lt;double&gt; to store the column...">NTuple</a> objects. </p>
<p>It frequently implements the application logic which should neither be in the GUI nor in the <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> objects.</p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000040">Todo:</a></b></dt><dd>This class should probably inherit from <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> controller as it delegates some member functions to that class and uses it often. However, <a class="el" href="classhippodraw_1_1DataSourceController.html" title="A singleton class that is the interface between GUI and the DataSource objects.">DataSourceController</a> wants to be singleton, so can we have derived classes of singleton?</dd></dl>
<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="NTupleController_8h_source.html#l00042">42</a> of file <a class="el" href="NTupleController_8h_source.html">NTupleController.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="acd72446c2516587975bf6669fcc0213d"></a><!-- doxytag: member="hippodraw::NTupleController::NTupleController" ref="acd72446c2516587975bf6669fcc0213d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTupleController.html">NTupleController</a> </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A default constructor for avoiding creation except by itself. </p>

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

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>.</p>

</div>
</div>
<a class="anchor" id="aec20826712f556d32fdc8868b7d246e6"></a><!-- doxytag: member="hippodraw::NTupleController::NTupleController" ref="aec20826712f556d32fdc8868b7d246e6" args="(const NTupleController &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTupleController.html">NTupleController</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhippodraw_1_1NTupleController.html">NTupleController</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>
<p>The copy constructor.</p>
<p>Only needed for SIP interface and should never be called. </p>

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

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac4fe98a25c8e5e8dd66c7a2fd0cb2a17"></a><!-- doxytag: member="hippodraw::NTupleController::changeName" ref="ac4fe98a25c8e5e8dd66c7a2fd0cb2a17" args="(DataSource *source, const std::string &amp;newname)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void changeName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>newname</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 name of the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> object. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000011">Deprecated:</a></b></dt><dd>. There's no need to call this member function. </dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00368">368</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00437">NTupleController::saveNTuples()</a>.</p>

</div>
</div>
<a class="anchor" id="a6d52a03fe6dd8b53c0d4a81b9f67b583"></a><!-- doxytag: member="hippodraw::NTupleController::createCircularBuffer" ref="a6d52a03fe6dd8b53c0d4a81b9f67b583" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1CircularBuffer.html">CircularBuffer</a> * createCircularBuffer </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and registers an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a>. </p>
<p>Creates an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> with no columns or rows.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000009">Deprecated:</a></b></dt><dd>Create the <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> and registered it explicitly instead.</dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00348">348</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a51bdd27469e51745782f0d9f9f5a74d4"></a><!-- doxytag: member="hippodraw::NTupleController::createCircularBuffer" ref="a51bdd27469e51745782f0d9f9f5a74d4" args="(unsigned int columns)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1CircularBuffer.html">CircularBuffer</a> * createCircularBuffer </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>columns</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and registers an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a>. </p>
<p>Creates an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> with <em>columns</em> columns.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd>Create the <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> and registered it explicitly instead.</dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00326">326</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a75c48e1f54dc722b15f792afa607ebb8"></a><!-- doxytag: member="hippodraw::NTupleController::createCircularBuffer" ref="a75c48e1f54dc722b15f792afa607ebb8" args="(const std::vector&lt; std::string &gt; &amp;labels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1CircularBuffer.html">CircularBuffer</a> * createCircularBuffer </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>labels</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and registers an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a>. </p>
<p>Creates an empty <a class="el" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> with the number of columns equal to the length of the vector <em>labels</em>. The labels for the columns is taken from the elements of the vector <em>labels</em>. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00304">304</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a60966c14d0feefec24d825ab82d37e4f"></a><!-- doxytag: member="hippodraw::NTupleController::createNTuple" ref="a60966c14d0feefec24d825ab82d37e4f" args="(const std::vector&lt; std::string &gt; &amp;column_list, const std::vector&lt; const TupleCut * &gt; &amp;cut_list, DataSource *ds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> * createNTuple </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>column_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; const <a class="el" href="classhippodraw_1_1TupleCut.html">TupleCut</a> * &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>cut_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>ds</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create <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> with column list and cut list. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00485">485</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTuple_8cxx_source.html#l00266">NTuple::addRow()</a>, <a class="el" href="DataSource_8cxx_source.html#l00193">DataSource::indexOf()</a>, <a class="el" href="classhippodraw_1_1DataSource.html#a1d2abe9c739bf78a94515f803cf926e7">DataSource::rows()</a>, <a class="el" href="num__util_8cpp_source.html#l00296">num_util::size()</a>, and <a class="el" href="DataSource_8cxx_source.html#l00541">DataSource::valueAtNoCache()</a>.</p>

</div>
</div>
<a class="anchor" id="acb491d08abb6c7ddc23c3fee5f09094f"></a><!-- doxytag: member="hippodraw::NTupleController::createNTuple" ref="acb491d08abb6c7ddc23c3fee5f09094f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> * createNTuple </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and registers an empty <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>. </p>
<p>Creates an empty <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> with no columns or rows. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00337">337</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a2fc0175526e6aadab484ae95d032325b"></a><!-- doxytag: member="hippodraw::NTupleController::createNTuple" ref="a2fc0175526e6aadab484ae95d032325b" args="(unsigned int columns)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> * createNTuple </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>columns</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and registers an empty <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>. </p>
<p>Creates an empty <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> with <em>columns</em> columns.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000007">Deprecated:</a></b></dt><dd>Create the <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> and registered it explicitly instead.</dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00315">315</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a7ff0f5af26427ca8492dccf6c6062824"></a><!-- doxytag: member="hippodraw::NTupleController::createNTuple" ref="a7ff0f5af26427ca8492dccf6c6062824" args="(const std::vector&lt; std::string &gt; &amp;labels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> * createNTuple </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>labels</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and registers an empty <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>. </p>
<p>Creates an empty <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> with the number of columns equal to the length of the vector <em>labels</em>. The labels for the columns is taken from the elements of the vector <em>labels</em>.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000006">Deprecated:</a></b></dt><dd>Create the <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> and registered it explicitly instead.</dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00293">293</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a367a0129829b506b44f415cad946db40"></a><!-- doxytag: member="hippodraw::NTupleController::createNTuple" ref="a367a0129829b506b44f415cad946db40" args="(const std::string &amp;filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> * createNTuple </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and registers an <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> from data in file <em>filename</em>. </p>
<p>If file has already been opened, return pointer to the existing <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>. Otherwise attempts to read the file as <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> and if successful returns a pointer to the created <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> object. If file was not found, or could not be parsed, then throws a DataSourceException with an explanation. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00247">247</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00264">NTupleController::fillFromFile()</a>.</p>

<p>Referenced by <a class="el" href="CreateNTuple_8cxx_source.html#l00223">CreateNTuple::createButtonClicked()</a>, <a class="el" href="QtCut_8cxx_source.html#l00229">QtCut::createNTuple()</a>, and <a class="el" href="HiNTupleXML_8cxx_source.html#l00085">HiNTupleXML::getObject()</a>.</p>

</div>
</div>
<a class="anchor" id="a582456bed2f3f7ad2359150575a48f1b"></a><!-- doxytag: member="hippodraw::NTupleController::createNTupleToFile" ref="a582456bed2f3f7ad2359150575a48f1b" args="(const std::vector&lt; std::string &gt; &amp;column_list, const std::vector&lt; const TupleCut * &gt; &amp;cut_list, DataSource *ds, const std::string &amp;filename, const std::string &amp;dsname)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int createNTupleToFile </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>column_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; const <a class="el" href="classhippodraw_1_1TupleCut.html">TupleCut</a> * &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>cut_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>ds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>dsname</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create <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> with column list and cut list and save to a file. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00528">528</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="classhippodraw_1_1DataSource.html#a1d2abe9c739bf78a94515f803cf926e7">DataSource::rows()</a>, and <a class="el" href="num__util_8cpp_source.html#l00296">num_util::size()</a>.</p>

<p>Referenced by <a class="el" href="CreateNTuple_8cxx_source.html#l00251">CreateNTuple::createFileButtonClicked()</a>, and <a class="el" href="QtCut_8cxx_source.html#l00257">QtCut::createTnt()</a>.</p>

</div>
</div>
<a class="anchor" id="ae7fd3d3f39d6fbeb16d3ef1f5db7fdf1"></a><!-- doxytag: member="hippodraw::NTupleController::fillFromFile" ref="ae7fd3d3f39d6fbeb16d3ef1f5db7fdf1" args="(const std::string &amp;file, NTuple *source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void fillFromFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *&nbsp;</td>
          <td class="paramname"> <em>source</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fills the empty <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> <em>source</em> from reading data from the <em>file</em>. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00264">264</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00114">NTupleController::readAsciiNTuple()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00247">NTupleController::createNTuple()</a>.</p>

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

<p>Returns the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> object with name <em>name</em>. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000010">Deprecated:</a></b></dt><dd>Use the <a class="el" href="classhippodraw_1_1DataSourceController.html" title="A singleton class that is the interface between GUI and the DataSource objects.">DataSourceController</a> methods instead. </dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00359">359</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00375">NTupleController::writeNTupleToFile()</a>.</p>

</div>
</div>
<a class="anchor" id="ab07b1cf83749e0ed0b5fd5d4c01b4221"></a><!-- doxytag: member="hippodraw::NTupleController::findWhite" ref="ab07b1cf83749e0ed0b5fd5d4c01b4221" args="(const std::string &amp;line, unsigned int left=0, bool tabs_only=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string::size_type findWhite </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>left</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>tabs_only</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find and return position of white space. </p>
<p>The argument <em>left</em> is the starting position. If <em>tabs_only</em> is <code>true</code>, then only tabs are excepted as white space. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00065">65</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00114">NTupleController::readAsciiNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="ae02f71abaf1f85101c7044455ca8ac1a"></a><!-- doxytag: member="hippodraw::NTupleController::instance" ref="ae02f71abaf1f85101c7044455ca8ac1a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTupleController.html">NTupleController</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="NTupleController_8cxx_source.html#l00055">55</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00044">NTupleController::NTupleController()</a>, and <a class="el" href="NTupleController_8h_source.html#l00048">NTupleController::s_instance</a>.</p>

<p>Referenced by <a class="el" href="CreateNTuple_8cxx_source.html#l00223">CreateNTuple::createButtonClicked()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00304">NTupleController::createCircularBuffer()</a>, <a class="el" href="CreateNTuple_8cxx_source.html#l00251">CreateNTuple::createFileButtonClicked()</a>, <a class="el" href="QtCut_8cxx_source.html#l00229">QtCut::createNTuple()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00293">NTupleController::createNTuple()</a>, <a class="el" href="QtCut_8cxx_source.html#l00257">QtCut::createTnt()</a>, <a class="el" href="CanvasView_8cxx_source.html#l02451">CanvasView::exportTextTuple()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00264">NTupleController::fillFromFile()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00359">NTupleController::findDataSource()</a>, <a class="el" href="HiNTupleXML_8cxx_source.html#l00085">HiNTupleXML::getObject()</a>, <a class="el" href="QtFileDialog_8cxx_source.html#l00297">QtFileDialog::openTextTuple()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>, <a class="el" href="CanvasWindow_8cxx_source.html#l00838">CanvasWindow::saveAllAs()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00437">NTupleController::saveNTuples()</a>, <a class="el" href="QtFileDialog_8cxx_source.html#l00483">QtFileDialog::saveTextTuple()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00375">NTupleController::writeNTupleToFile()</a>.</p>

</div>
</div>
<a class="anchor" id="a6753b631926a447634c24086de4a3fab"></a><!-- doxytag: member="hippodraw::NTupleController::readAsciiNTuple" ref="a6753b631926a447634c24086de4a3fab" args="(NTuple *ntuple, const std::string &amp;filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int readAsciiNTuple </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1NTuple.html">NTuple</a> *&nbsp;</td>
          <td class="paramname"> <em>ntuple</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reads ASCII formatted file and fills the <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>. </p>
<p>Returns <code>-1</code> if file could not be opened. Returns -2 file if there was an error reading the file. Otherwise, returns 0.</p>
<dl class="requests"><dt><b><a class="el" href="requests.html#_requests000013">Requests:</a></b></dt><dd>If the label for a column is very long, then it is probably an error in the file format. One should raise a dialog if attempting to read from the GUI, or throw an exception if from <a class="el" href="namespacehippodraw_1_1Python.html" title="A namespace encapsulating functions to interface HippoDraw classes to Python using...">Python</a> to asked the user to continue or not.</dd></dl>
<dl class="requests"><dt><b><a class="el" href="requests.html#_requests000014">Requests:</a></b></dt><dd>If line of labels contains no tabs at all, then should probably assume that any white space separates the labels.</dd></dl>
<dl class="requests"><dt><b><a class="el" href="requests.html#_requests000015">Requests:</a></b></dt><dd>If bad format detected, try to say what was bad.</dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00114">114</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="namespacehippodraw_1_1Axes.html#ae2337bddf33bc8b17dd5c08e665422cd">hippodraw::Axes::convert()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00065">NTupleController::findWhite()</a>, <a class="el" href="NTuple_8cxx_source.html#l00470">NTuple::setLabels()</a>, <a class="el" href="DataSource_8cxx_source.html#l00146">DataSource::setTitle()</a>, <a class="el" href="num__util_8cpp_source.html#l00317">num_util::shape()</a>, <a class="el" href="num__util_8cpp_source.html#l00296">num_util::size()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00080">NTupleController::splitAndFill()</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00264">NTupleController::fillFromFile()</a>.</p>

</div>
</div>
<a class="anchor" id="a94d7461b01e694bea2b253ef14cd0ebe"></a><!-- doxytag: member="hippodraw::NTupleController::registerNTuple" ref="a94d7461b01e694bea2b253ef14cd0ebe" args="(const std::string &amp;, DataSource *ntuple)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void registerNTuple </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>ntuple</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Register a <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>. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>Use <a class="el" href="classhippodraw_1_1DataSourceController.html#ad1e0919a778850ab68b72bd7289d38bf" title="Register a DataSoruce.">DataSourceController::registerNTuple(const std::string &amp;,DataSource *)</a> instead. </dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00476">476</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00466">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a36f566288e01236f92e4430a26c91283"></a><!-- doxytag: member="hippodraw::NTupleController::registerNTuple" ref="a36f566288e01236f92e4430a26c91283" args="(DataSource *nt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string registerNTuple </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhippodraw_1_1DataSource.html">DataSource</a> *&nbsp;</td>
          <td class="paramname"> <em>nt</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Register a <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>. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000012">Deprecated:</a></b></dt><dd>Use <a class="el" href="classhippodraw_1_1DataSourceController.html#a36f566288e01236f92e4430a26c91283" title="Register a DataSource.">DataSourceController::registerNTuple(DataSource *)</a> instead. </dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00466">466</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00304">NTupleController::createCircularBuffer()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00293">NTupleController::createNTuple()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00264">NTupleController::fillFromFile()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00476">NTupleController::registerNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a1972284caeded9ca4ab75f6920b93a22"></a><!-- doxytag: member="hippodraw::NTupleController::saveNTuples" ref="a1972284caeded9ca4ab75f6920b93a22" args="(const std::string &amp;prefix, const std::string &amp;suffix)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void saveNTuples </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>fileprefix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filesuffix</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Saves all the <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>. </p>
<p>Saves all the <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> objects of the application with the file name prefixed by <em>prefix</em> followed by index number and a suffix <em>suffix</em>. After the file is saved, the the file name part of <em>prefix</em> is used to set the <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> name. </p>
<dl class="bug"><dt><b><a class="el" href="bug.html#_bug000023">Bug:</a></b></dt><dd>Should throw exception if couldn't write to file, for example if the path is invalid. </dd></dl>
<dl class="bug"><dt><b><a class="el" href="bug.html#_bug000020">Bug:</a></b></dt><dd>If writing the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> to a file fails, no error is reported. </dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00437">437</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00368">NTupleController::changeName()</a>, <a class="el" href="namespacehippodraw_1_1Axes.html#ae2337bddf33bc8b17dd5c08e665422cd">hippodraw::Axes::convert()</a>, <a class="el" href="DataSourceController_8cxx_source.html#l00143">DataSourceController::getDataSources()</a>, <a class="el" href="DataSource_8cxx_source.html#l00136">DataSource::getName()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, <a class="el" href="num__util_8cpp_source.html#l00296">num_util::size()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00390">NTupleController::writeNTupleToFile()</a>.</p>

</div>
</div>
<a class="anchor" id="ad8be2b0e20b7cfefe6bdc7452d442c03"></a><!-- doxytag: member="hippodraw::NTupleController::splitAndFill" ref="ad8be2b0e20b7cfefe6bdc7452d442c03" args="(const std::string &amp;line, std::vector&lt; std::string &gt; &amp;values)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void splitAndFill </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>values</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Splits the <em>line</em> at white space and fills <em>values</em> with strings found. </p>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00080">80</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00114">NTupleController::readAsciiNTuple()</a>.</p>

</div>
</div>
<a class="anchor" id="a3a23b2dd32d9dd4b9ff1db6cd5e952a9"></a><!-- doxytag: member="hippodraw::NTupleController::writeNTupleToFile" ref="a3a23b2dd32d9dd4b9ff1db6cd5e952a9" args="(const std::string &amp;name, const std::string &amp;filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int writeNTupleToFile </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 std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Writes the <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> named <em>name</em> to the file <em>filename</em>. </p>
<p>Returns <code>0</code> if successful, otherwise returns a yet to be determined return code. </p>
<dl class="bug"><dt><b><a class="el" href="bug.html#_bug000022">Bug:</a></b></dt><dd>Should throw exception if couldn't write to file, for example if the path is invalid. </dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00375">375</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="NTupleController_8cxx_source.html#l00359">NTupleController::findDataSource()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00390">NTupleController::writeNTupleToFile()</a>.</p>

</div>
</div>
<a class="anchor" id="a66b12b1d426bb84b3511ebbec62ad6aa"></a><!-- doxytag: member="hippodraw::NTupleController::writeNTupleToFile" ref="a66b12b1d426bb84b3511ebbec62ad6aa" args="(DataSource *source, const std::string &amp;filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int writeNTupleToFile </td>
          <td>(</td>
          <td class="paramtype"><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::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Writes the <a class="el" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> <em>source</em> to a file given by <em>filename</em>. </p>
<p>Returns <code>0</code> if successful, otherwise returns a yet to be determined return code. </p>
<dl class="bug"><dt><b><a class="el" href="bug.html#_bug000021">Bug:</a></b></dt><dd>Should throw exception if couldn't write to file, for example if the path is invalid. </dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000039">Todo:</a></b></dt><dd>Define return codes for why the file was not written. </dd></dl>

<p>Definition at line <a class="el" href="NTupleController_8cxx_source.html#l00390">390</a> of file <a class="el" href="NTupleController_8cxx_source.html">NTupleController.cxx</a>.</p>

<p>References <a class="el" href="DataSource_8cxx_source.html#l00172">DataSource::getLabels()</a>, <a class="el" href="classhippodraw_1_1DataSource.html#a2fb1dfa7e0d38e58516ab80dc4713a42">DataSource::getRow()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>, <a class="el" href="classhippodraw_1_1DataSource.html#a1d2abe9c739bf78a94515f803cf926e7">DataSource::rows()</a>, and <a class="el" href="DataSource_8cxx_source.html#l00141">DataSource::title()</a>.</p>

<p>Referenced by <a class="el" href="CanvasView_8cxx_source.html#l02451">CanvasView::exportTextTuple()</a>, <a class="el" href="NTupleController_8cxx_source.html#l00437">NTupleController::saveNTuples()</a>, <a class="el" href="QtFileDialog_8cxx_source.html#l00483">QtFileDialog::saveTextTuple()</a>, and <a class="el" href="NTupleController_8cxx_source.html#l00375">NTupleController::writeNTupleToFile()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ac1a4247ea82561923c1f6807c5cfe02f"></a><!-- doxytag: member="hippodraw::NTupleController::s_instance" ref="ac1a4247ea82561923c1f6807c5cfe02f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhippodraw_1_1NTupleController.html">NTupleController</a> * <a class="el" href="classhippodraw_1_1NTupleController.html#ac1a4247ea82561923c1f6807c5cfe02f">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="NTupleController_8h_source.html#l00048">48</a> of file <a class="el" href="NTupleController_8h_source.html">NTupleController.h</a>.</p>

<p>Referenced by <a class="el" href="NTupleController_8cxx_source.html#l00055">NTupleController::instance()</a>.</p>

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