14 # pragma warning(disable:4231) 17 # pragma warning(disable:4251) 20 # pragma warning(disable:4275) 23 # pragma warning(disable:4800) 27 #include <boost/python.hpp> 42 class_ < PyFitsController, bases<>,
45 "A class for creation of DataSource objects from a FITS file.",
48 .def (
"instance", &PyFitsController::instance,
49 return_value_policy < reference_existing_object > (),
50 "instance () -> FitsController\n" 52 "Returns the single instance of the controller." )
54 .staticmethod(
"instance" )
56 .def (
"getNTupleNames",
57 &PyFitsController::getNTupleNames,
58 return_value_policy < copy_const_reference > (),
59 "getNTupleNames ( string ) -> sequence\n" 61 "Returns the names of the HDU data source objects in the file." )
63 .def (
"createNTuple",
64 &PyFitsController::createNTuple,
65 return_value_policy < manage_new_object > (),
66 "createNTuple ( string, string ) -> FitsNTuple\n" 68 "Creates FitsNTuple from the named file with key name. Python \n" 69 "take possession of it." )
71 .def (
"createDataArray",
72 &PyFitsController::createDataArray,
73 return_value_policy < reference_existing_object > (),
74 "createDataArray ( string, string ) -> DataArray\n" 76 "Creates DataArray from a file with key name" )
79 (
void ( PyFitsController::* )
81 const std::string & ) )
82 &PyFitsController::writeToFile,
83 "writeToFile ( DataArray, filename ) -> None.\n" 84 "writeToFile ( DataSource, filename ) -> None,\n" 85 "writeToFile ( DataArray, filename, tuple, tuple ) -> None.\n" 86 "writeToFile ( DataSource, filename, tuple, tuple ) -> None,\n" 88 "Writes a DataSource or DataArray to FITS file as binary table.\n" 89 "In the latter two forms, the first tuple is list of Cuts and\n" 90 "and the second is tuple of column labels" )
93 (
void ( PyFitsController::* )
95 const std::string & ) )
96 &PyFitsController::writeToFile )
99 (
void ( PyFitsController::* )
102 const std::vector < QtCut * > &,
103 const std::vector < std::string > & ) )
104 &PyFitsController::writeToFile )
106 .def (
"writeToFile",
107 (
void ( PyFitsController::* )
110 const std::vector < QtCut * > &,
111 const std::vector < std::string > & ) )
112 &PyFitsController::writeToFile )
A wrapper for FitsController.
void export_FitsController()
Exports the FitsController.
hippodraw::PyFitsController class interface.
Base class for DataSource.
hippodraw::PyDataSource class interface
hippodraw::FitsNTuple class interface.
This class is the public interface to a DataSource object that the user sees as the DataArray object ...