PyNTupleController.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _PyNTupleController_H_
15 #define _PyNTupleController_H_
16 
17 #include <string>
18 #include <vector>
19 
20 namespace hippodraw {
21 
22  class CircularBuffer;
23  class DataSource;
24  class NTupleController;
25  class NTuple;
26  class PyDataSource;
27 
36 {
37 
38 private:
39 
43 
47 
50 
53 
54 public:
55 
58  static PyNTupleController * instance ();
59 
62  NTuple * createNTuple ();
63 
66  DataSource * createNTuple ( const std::string & filename );
67 
70  CircularBuffer * createCircularBuffer ( unsigned int n );
71 
74  PyDataSource * createDataArray ( const std::string & filename );
75 
78  DataSource * findDataSource ( const std::string & name ) const;
79 
82  std::string registerNTuple ( DataSource * source );
83 
86  void registerNTuple ( const std::string & name,
87  DataSource * source );
88 
93  int writeNTupleToFile ( DataSource * source,
94  const std::string & filename );
95 
98  void changeName ( DataSource * source, const std::string & new_name );
99 
100 };
101 
102 } // namespace hippodraw
103 
104 #endif // _PyNTupleController_H_
std::string registerNTuple(DataSource *source)
Registers the DataSource object and returns its assigned name.
int writeNTupleToFile(DataSource *source, const std::string &filename)
Writes the DataSource to the file filename.
PyDataSource * createDataArray(const std::string &filename)
Creates a DataArray Python object from the file filename.
static PyNTupleController * instance()
The singleton instance method.
CircularBuffer * createCircularBuffer(unsigned int n)
Creates an empty CircularBuffer object with n columns.
static PyNTupleController * s_instance
The singleton PyNTupleController instance.
A singleton class that is the interface between GUI and the NTuple objects.
PyNTupleController()
The default constructor, protected from being used.
This class is the public interface to a DataSource object that the user sees as the DataArray object ...
Definition: PyDataSource.h:43
DataSource * findDataSource(const std::string &name) const
Finds the DataSource by name.
A wrapper for NTupleController for use from Python.
A DataSource class implemented with std::vector&lt;double&gt; to store the column data. ...
Definition: NTuple.h:33
CircularBuffer manager.
void changeName(DataSource *source, const std::string &new_name)
Changes the name of the DataSource.
static NTupleController * m_instance
The singleton NTupleController object.
NTuple * createNTuple()
Creates an empty NTuple object.
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen