Sophie

Sophie

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

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

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_81660c05fb6bfb5c6c7ef0fee605ba15.html">datasrcs</a>
  </div>
</div>
<div class="contents">
<h1>NTupleController.h</h1><a href="NTupleController_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef _NTupleController_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _NTupleController_H_</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="libhippo_8h.html">pattern/libhippo.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="keyword">namespace </span>hippodraw {
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="keyword">class </span>CircularBuffer;
<a name="l00025"></a>00025 <span class="keyword">class </span>DataSource;
<a name="l00026"></a>00026 <span class="keyword">class </span>NTuple;
<a name="l00027"></a>00027 <span class="keyword">class </span>Observable;
<a name="l00028"></a>00028 <span class="keyword">class </span>TupleCut;
<a name="l00029"></a>00029 
<a name="l00042"></a><a class="code" href="classhippodraw_1_1NTupleController.html">00042</a> <span class="keyword">class </span><a class="code" href="libhippo_8h.html#a480024fd54849c743866874550153711">MDL_HIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">private</span>:
<a name="l00046"></a>00046 
<a name="l00048"></a><a class="code" href="classhippodraw_1_1NTupleController.html#ac1a4247ea82561923c1f6807c5cfe02f">00048</a>   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a> * s_instance;
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 
<a name="l00052"></a>00052   <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a>();
<a name="l00053"></a>00053 
<a name="l00055"></a>00055   <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a> &amp; );
<a name="l00056"></a>00056 
<a name="l00061"></a>00061   std::string::size_type findWhite ( <span class="keyword">const</span> std::string &amp; line, 
<a name="l00062"></a>00062                                      <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> left = 0,
<a name="l00063"></a>00063                                      <span class="keywordtype">bool</span> tabs_only = <span class="keyword">false</span> );
<a name="l00064"></a>00064 
<a name="l00069"></a>00069   <span class="keywordtype">int</span> readAsciiNTuple ( <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * ntuple, <span class="keyword">const</span> std::string &amp; filename );
<a name="l00070"></a>00070 
<a name="l00074"></a>00074   <span class="keywordtype">void</span> splitAndFill ( <span class="keyword">const</span> std::string &amp; line,
<a name="l00075"></a>00075                       std::vector &lt; std::string &gt; &amp; values );
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="keyword">public</span>:
<a name="l00078"></a>00078 
<a name="l00080"></a>00080   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1NTupleController.html" title="A singleton class that is the interface between GUI and the NTuple objects.">NTupleController</a> * instance ();
<a name="l00081"></a>00081 
<a name="l00089"></a>00089   <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * createNTuple ( <span class="keyword">const</span> std::string &amp; filename );
<a name="l00090"></a>00090 
<a name="l00092"></a>00092   <span class="keywordtype">void</span> fillFromFile ( <span class="keyword">const</span> std::string &amp; file, <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * source );
<a name="l00093"></a>00093 
<a name="l00103"></a>00103   <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * createNTuple ( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; labels );
<a name="l00104"></a>00104 
<a name="l00110"></a>00110   <a class="code" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> * 
<a name="l00111"></a>00111   createCircularBuffer ( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; labels );
<a name="l00112"></a>00112 
<a name="l00120"></a>00120   <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * createNTuple ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> columns );
<a name="l00121"></a>00121 
<a name="l00129"></a>00129   <a class="code" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> * createCircularBuffer ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> columns );
<a name="l00130"></a>00130 
<a name="l00134"></a>00134   <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * createNTuple ( );
<a name="l00135"></a>00135 
<a name="l00143"></a>00143   <a class="code" href="classhippodraw_1_1CircularBuffer.html" title="CircularBuffer manager.">CircularBuffer</a> * createCircularBuffer ( );
<a name="l00144"></a>00144 
<a name="l00149"></a>00149   <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * findDataSource ( <span class="keyword">const</span> std::string &amp; name ) <span class="keyword">const</span>;
<a name="l00150"></a>00150 
<a name="l00155"></a>00155   <span class="keywordtype">void</span> changeName ( <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source,
<a name="l00156"></a>00156                     <span class="keyword">const</span> std::string &amp; newname );
<a name="l00157"></a>00157 
<a name="l00164"></a>00164   <span class="keywordtype">int</span> writeNTupleToFile ( <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source,
<a name="l00165"></a>00165                           <span class="keyword">const</span> std::string &amp; filename );
<a name="l00166"></a>00166 
<a name="l00173"></a>00173   <span class="keywordtype">int</span> writeNTupleToFile ( <span class="keyword">const</span> std::string &amp; name,
<a name="l00174"></a>00174                           <span class="keyword">const</span> std::string &amp; filename );
<a name="l00175"></a>00175 
<a name="l00184"></a>00184   <span class="keywordtype">void</span> saveNTuples ( <span class="keyword">const</span> std::string &amp; prefix,
<a name="l00185"></a>00185                      <span class="keyword">const</span> std::string &amp; suffix );
<a name="l00186"></a>00186 
<a name="l00192"></a>00192   std::string registerNTuple ( <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * nt );
<a name="l00193"></a>00193 
<a name="l00200"></a>00200   <span class="keywordtype">void</span> registerNTuple ( <span class="keyword">const</span> std::string &amp;, <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ntuple );
<a name="l00201"></a>00201 
<a name="l00204"></a>00204   <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * createNTuple ( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; column_list,
<a name="l00205"></a>00205                           <span class="keyword">const</span> std::vector &lt; const TupleCut * &gt; &amp; cut_list,
<a name="l00206"></a>00206                           <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds );
<a name="l00207"></a>00207 
<a name="l00210"></a>00210   <span class="keywordtype">int</span> createNTupleToFile( <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; column_list,
<a name="l00211"></a>00211                           <span class="keyword">const</span> std::vector &lt; const TupleCut * &gt; &amp; cut_list, 
<a name="l00212"></a>00212                           <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ds,
<a name="l00213"></a>00213                           <span class="keyword">const</span> std::string &amp; filename,
<a name="l00214"></a>00214                           <span class="keyword">const</span> std::string &amp; dsname);
<a name="l00215"></a>00215 
<a name="l00216"></a>00216 };
<a name="l00217"></a>00217 
<a name="l00218"></a>00218 } <span class="comment">// namespace hippodraw</span>
<a name="l00219"></a>00219 
<a name="l00220"></a>00220 <span class="preprocessor">#endif // _NTupleController_H_</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>