29 #ifndef PYRAP_PYCRECORD_H
30 #define PYRAP_PYCRECORD_H
34 #include <boost/python.hpp>
35 #include <boost/python/dict.hpp>
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>());
78 boost::python::converter::rvalue_from_python_stage1_data* data);
casa_record_from_python()
static PyObject * convert(Record const &rec)
static Record makeRecord(PyObject *obj_ptr)
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)
static void construct(PyObject *obj_ptr, boost::python::converter::rvalue_from_python_stage1_data *data)
Constructs a Record from a Python object.
void register_convert_casa_record()
static void * convertible(PyObject *obj_ptr)
Check if it is a type we can convert.
Register the Record conversion.