Sophie

Sophie

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

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_bbb601e95d88b45de88eccde06bf6018.html">root</a>
  </div>
</div>
<div class="contents">
<h1>RootController.h</h1><a href="RootController_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef RootController_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define RootController_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="Observer_8h.html" title="Observer class interface.">pattern/Observer.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="keyword">class </span>TFile;
<a name="l00024"></a>00024 <span class="keyword">class </span><a class="code" href="classTTree.html" title="The ROOT TTree class.">TTree</a>;
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>hippodraw {
<a name="l00027"></a>00027 
<a name="l00028"></a>00028   <span class="keyword">class </span>DataSource;
<a name="l00029"></a>00029   <span class="keyword">class </span>RootNTuple;
<a name="l00030"></a>00030 
<a name="l00042"></a><a class="code" href="classhippodraw_1_1RootController.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_1RootController.html" title="A Controller class for ROOT files.">RootController</a> : <span class="keyword">private</span> <a class="code" href="classhippodraw_1_1Observer.html" title="Part of an implementation of the Observable Observer pattern based on the example...">Observer</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_1RootController.html#a25e9f4c37b2ba6fa71e0349a997b19cb">00048</a>   std::map &lt; std::string, TFile * &gt; m_file_map;
<a name="l00049"></a>00049 
<a name="l00050"></a>00050   <span class="comment">/* The type of container to map RootNTuple to its ROOT file.</span>
<a name="l00051"></a>00051 <span class="comment">   */</span>
<a name="l00052"></a><a class="code" href="classhippodraw_1_1RootController.html#a52f52ad990b29458c02bb87d40bc3a61">00052</a>   <span class="keyword">typedef</span> std::map &lt; const DataSource *, std::string &gt; <a class="code" href="classhippodraw_1_1RootController.html#a52f52ad990b29458c02bb87d40bc3a61">TupleToFileMap_t</a>;
<a name="l00053"></a>00053 
<a name="l00056"></a><a class="code" href="classhippodraw_1_1RootController.html#a34e52adcf5491503e585777b7ec95e61">00056</a>   <a class="code" href="classhippodraw_1_1RootController.html#a52f52ad990b29458c02bb87d40bc3a61">TupleToFileMap_t</a> m_tuple_map;
<a name="l00057"></a>00057 
<a name="l00060"></a><a class="code" href="classhippodraw_1_1RootController.html#a4d277b66ef016a78b2d85f29d164273b">00060</a>   std::vector &lt; std::string &gt; m_ntuple_names;
<a name="l00061"></a>00061 
<a name="l00063"></a><a class="code" href="classhippodraw_1_1RootController.html#a5ebb5240c11541d46b3bfe086e4a8b87">00063</a>   <span class="keyword">mutable</span> std::string m_version;
<a name="l00064"></a>00064 
<a name="l00067"></a><a class="code" href="classhippodraw_1_1RootController.html#a29059518ecd96088c2009ec25bbdf301">00067</a>   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1RootController.html" title="A Controller class for ROOT files.">RootController</a> * s_instance;
<a name="l00068"></a>00068 
<a name="l00072"></a>00072   TFile * openFile ( <span class="keyword">const</span> std::string &amp; name );
<a name="l00073"></a>00073 
<a name="l00076"></a>00076   <span class="keywordtype">void</span> closeFile ( <span class="keyword">const</span> std::string &amp; name );
<a name="l00077"></a>00077 
<a name="l00078"></a>00078  <span class="keyword">public</span>:
<a name="l00079"></a>00079 
<a name="l00082"></a>00082   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1RootController.html" title="A Controller class for ROOT files.">RootController</a> * instance ();
<a name="l00083"></a>00083 
<a name="l00086"></a>00086   <span class="keyword">virtual</span> ~<a class="code" href="classhippodraw_1_1RootController.html" title="A Controller class for ROOT files.">RootController</a>();
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 
<a name="l00091"></a>00091   <span class="keyword">const</span> std::string &amp; <a class="code" href="namespacehippodraw.html#a1eae27d6440004fbe5f5ee0544252ac0">version</a> () <span class="keyword">const</span>;
<a name="l00092"></a>00092 
<a name="l00099"></a>00099   <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; getNTupleNames ( <span class="keyword">const</span> std::string &amp; );
<a name="l00100"></a>00100 
<a name="l00107"></a>00107   <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * createNTuple ( <span class="keyword">const</span> std::string &amp; name );
<a name="l00108"></a>00108 
<a name="l00112"></a>00112   <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="l00113"></a>00113                               <span class="keyword">const</span> std::string &amp; treename );
<a name="l00114"></a>00114 
<a name="l00117"></a>00117   <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * initNTuple ( <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source,
<a name="l00118"></a>00118                             <span class="keyword">const</span> std::string &amp; filename,
<a name="l00119"></a>00119                             <span class="keyword">const</span> std::string &amp; treename );
<a name="l00120"></a>00120 
<a name="l00123"></a>00123   <a class="code" href="classTTree.html" title="The ROOT TTree class.">TTree</a> * getTree ( <span class="keyword">const</span> std::string &amp; file,
<a name="l00124"></a>00124                     <span class="keyword">const</span> std::string &amp; tree );
<a name="l00125"></a>00125 
<a name="l00130"></a>00130   <span class="keywordtype">void</span> fillDimSize ( std::vector &lt; int &gt; &amp; dims,
<a name="l00131"></a>00131                      <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source,
<a name="l00132"></a>00132                      <span class="keyword">const</span> std::string &amp; <a class="code" href="namespacehippodraw_1_1DataPoint2DTuple.html#ae78e6e11a40e6dba1bae097358f97d15" title="The column indices for 2 dimension data point tuple.">column</a> );
<a name="l00133"></a>00133 
<a name="l00138"></a>00138   <span class="keywordtype">bool</span> smartExpandRootNTuple ( <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source, std::string &amp; <a class="code" href="namespacehippodraw_1_1DataPoint2DTuple.html#ae78e6e11a40e6dba1bae097358f97d15" title="The column indices for 2 dimension data point tuple.">column</a> );
<a name="l00139"></a>00139 
<a name="l00142"></a>00142   <span class="keyword">virtual</span> <span class="keywordtype">void</span> update ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Observable.html" title="Part of an implementation of the Observable-Observer pattern based on the example...">Observable</a> * );
<a name="l00143"></a>00143 
<a name="l00148"></a>00148   <span class="keyword">virtual</span> <span class="keywordtype">void</span> willDelete ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Observable.html" title="Part of an implementation of the Observable-Observer pattern based on the example...">Observable</a> * obs );
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 };
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 } <span class="comment">// namespace hippodraw</span>
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 <span class="preprocessor">#endif // RootController_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>