QtRootController.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _QtRootController_H_
15 #define _QtRootController_H_
16 
17 #include <string>
18 #include <vector>
19 
20 namespace hippodraw {
21 
22 class RootController;
23 class DataSource;
24 class PyDataSource;
34 {
35 
36 private:
37 
40 
43 
46 
49 
50 public:
51 
54  static QtRootController * instance ();
55 
58  DataSource * createNTuple ( const std::string & filename,
59  const std::string & treename );
60 
63  PyDataSource * createDataArray ( const std::string & filename,
64  const std::string & treename );
65 
68  const std::vector < std::string > &
69  getNTupleNames ( const std::string & filename );
70 
71 };
72 
73 } // namespace hippodraw
74 
75 #endif // _QtRootController_H_
static QtRootController * s_instance
The singleton QtRootController instance.
QtRootController()
The default constructor, protected from being used.
A wrapper for RootController, so that when RootController is used in Qt based application, the application object can be locked and unlocked before calling any ROOT functions.
PyDataSource * createDataArray(const std::string &filename, const std::string &treename)
Creates a PyDataSource wrapper to the RootNTuple object.
static RootController * m_instance
The singleton RootController object.
DataSource * createNTuple(const std::string &filename, const std::string &treename)
Creates a QtRootNTuple wrapper for RootNTuple object.
This class is the public interface to a DataSource object that the user sees as the DataArray object ...
Definition: PyDataSource.h:43
static QtRootController * instance()
The singleton instance method.
const std::vector< std::string > & getNTupleNames(const std::string &filename)
Returns the names of the top level tree in the Root file.
A Controller class for ROOT files.
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen