29 #ifndef PYRAP_PYCARRAY_H
30 #define PYRAP_PYCARRAY_H
34 #include <boost/python.hpp>
35 #include <boost/python/object.hpp>
42 namespace casacore {
namespace python {
100 {
return boost::python::incref(
makeobject(c).ptr()); }
static boost::python::object makeobject(Array< T > const &arr)
DataType PycArrayScalarType(PyObject *obj_ptr)
Get the data type of the array scalar object.
boost::python::object makePyArrayObject(casacore::Array< T > const &arr)
Do the actual making of the PyArrayObject.
static ValueHolder makeScalar(PyObject *obj_ptr)
Construct a scalar from an array scalar (i.e.
static ValueHolder makeArrayFromDict(PyObject *obj_ptr)
Construct an Array<String> from a special Python dict object.
std::string object(const std::string &name)
A holder for a value of any basic Casacore data type.
bool Bool
Define the standard types used by Casacore.
Bool PycArrayScalarCheck(PyObject *obj_ptr)
Check if the PyObject is an array scalar object.
static ValueHolder makeArray(PyObject *obj_ptr, Bool copyData=False)
Constructs an Array from a Python object.
template <class T, class U> class vector;
const Double c
Fundamental physical constants (SI units):
static PyObject * convert(Array< T > const &c)
Bool PycArrayCheck(PyObject *obj_ptr)
A class to convert an Array to/from Python objects.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.