22 #include <boost/python/class.hpp>
23 #include <boost/python/enum.hpp>
24 #include <boost/python/module.hpp>
25 #include <boost/python/suite/indexing/vector_indexing_suite.hpp>
26 #include <boost/python/suite/indexing/map_indexing_suite.hpp>
41 bp::class_<PyOutputWrapper, boost::noncopyable>(
"OutputWrapper",
42 "A file-like object used to wrap stdout and stderr", bp::no_init)
60 bp::class_<PyMeasurementImage>(
"MeasurementImage",
61 "C++ part of the MeasurementImage", bp::init<std::string, std::string, std::string>())
80 bp::class_<PyId>(
"Id", bp::init<>())
83 bp::class_<PyAperture, bp::bases<PyId>>(
"Aperture",
84 "Set of aperture photometries", bp::init<bp::list>())
89 bp::class_<CoordinateSystem, boost::noncopyable>(
"CoordinateSystem",
90 "Implements transformation of coordinates between image and world coordinates", bp::no_init)
93 bp::register_ptr_to_python<std::shared_ptr<CoordinateSystem>>();
95 bp::class_<WorldCoordinate>(
"WorldCoordinate",
"World coordinates")
96 .def(bp::init<double, double>())
100 bp::class_<ImageCoordinate>(
"ImageCoordinate",
"Image coordinates, in pixels")
101 .def(bp::init<double, double>())
105 bp::enum_<Flags>(
"Flags",
"Source flags")
116 bp::class_<std::vector<int> >(
"_IntVector")
119 bp::class_<std::vector<unsigned int> >(
"_UIntVector")
122 bp::class_<std::map<std::string, std::string>>(
"_StringStringMap")
125 bp::class_<PyFitsFile>(
"FitsFile",
"A FITS file opened by SourceXtractor++", bp::init<const std::string&>())