PyFitsController.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _PyFitsController_H_
15 #define _PyFitsController_H_
16 
17 #include <string>
18 #include <vector>
19 
20 namespace hippodraw {
21 
22  class DataSource;
23  class FitsController;
24  class FitsNTuple;
25  class PyDataSource;
26  class QtCut;
27 
36 {
37 
38 private:
39 
42 
45 
48 
51 
52 public:
53 
56  static PyFitsController * instance ();
57 
60  FitsNTuple * createNTuple ( const std::string & filename,
61  const std::string & hduname );
62 
66  PyDataSource * createDataArray ( const std::string & filename,
67  const std::string & hduname );
68 
71  void writeToFile ( const DataSource * source,
72  const std::string & filename );
73 
76  void writeToFile ( const PyDataSource * source,
77  const std::string & filename );
78 
83  void writeToFile ( const DataSource * source,
84  const std::string & filename,
85  const std::vector < QtCut * > & cut_list,
86  const std::vector < std::string > & column_list );
87 
92  void writeToFile ( const PyDataSource * source,
93  const std::string & filename,
94  const std::vector < QtCut * > & cut_list,
95  const std::vector < std::string > & column_list );
96 
99  const std::vector < std::string > &
100  getNTupleNames ( const std::string & filename );
101 
102 };
103 
104 } // namespace hippodraw
105 
106 #endif // _PyFitsController_H_
void writeToFile(const DataSource *source, const std::string &filename)
Writes the DataSource to a FITS file as a binary table.
static PyFitsController * s_instance
The singleton PyFitsController instance.
PyDataSource * createDataArray(const std::string &filename, const std::string &hduname)
Creates a DataArray Python object from the FITS file filename and the FITS HDU named hduname...
static FitsController * m_instance
The singleton FitsController object.
const std::vector< std::string > & getNTupleNames(const std::string &filename)
Returns the names of the top level tree in the Root file.
This class is the public interface to a DataSource object that the user sees as the DataArray object ...
Definition: PyDataSource.h:43
FitsNTuple * createNTuple(const std::string &filename, const std::string &hduname)
Creates a FitsNTuple object.
A Controller class for FITS files.
A DataSource class implemented with a vector &lt; DataColumn * &gt; objects.
Definition: FitsNTuple.h:31
PyFitsController()
The default constructor, protected from being used.
A wrapper for FitsController.
static PyFitsController * instance()
The singleton instance method.
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen