29 #ifndef PYRAP_PYCVALUEHOLDER_H
30 #define PYRAP_PYCVALUEHOLDER_H
35 #include <boost/python.hpp>
36 #include <casacore/casa/Containers/ValueHolder.h>
37 #include <casacore/casa/Utilities/DataType.h>
39 namespace casacore {
namespace python {
66 boost::python::converter::registry::push_back(
69 boost::python::type_id<ValueHolder>());
78 boost::python::converter::rvalue_from_python_stage1_data* data);
const Double c
Fundamental physical constants (SI units):
void register_convert_casa_valueholder()
this file contains all the compiler specific defines
static ValueHolder toVector(PyObject *obj_ptr)
Make a vector from a python sequence.
static void * convertible(PyObject *obj_ptr)
Check if it is a type we can convert.
static ValueHolder makeValueHolder(PyObject *obj_ptr)
Make a ValueHolder from all possible python data types.
static DataType checkDataType(PyObject *obj_ptr)
Get (and check) the data type in a python sequence.
static void construct(PyObject *obj_ptr, boost::python::converter::rvalue_from_python_stage1_data *data)
Constructs a ValueHolder from a Python object.
static PyObject * convert(ValueHolder const &c)
static boost::python::object makeobject(ValueHolder const &)
Register the ValueHolder conversion.