29 #ifndef PYRAP_PYCRECORD_H 30 #define PYRAP_PYCRECORD_H 34 #include <boost/python.hpp> 35 #include <boost/python/dict.hpp> 36 #include <casacore/casa/Containers/Record.h> 38 namespace casacore {
namespace python {
57 return boost::python::incref(
makeobject(rec).ptr());
66 boost::python::converter::registry::push_back(
69 boost::python::type_id<Record>());
73 static void* convertible(PyObject* obj_ptr);
76 static void construct(
78 boost::python::converter::rvalue_from_python_stage1_data* data);
80 static Record makeRecord (PyObject* obj_ptr);
casa_record_from_python()
static PyObject * convert(Record const &rec)
A hierarchical collection of named fields of various types.
A class to convert a (Table)Record to/from Python objects.
static boost::python::dict makeobject(Record const &rec)
void register_convert_casa_record()
this file contains all the compiler specific defines
Register the Record conversion.