27#ifndef PYRAP_PYCVALUEHOLDER_H 
   28#define PYRAP_PYCVALUEHOLDER_H 
   33#include <boost/python.hpp> 
   34#include <casacore/casa/Containers/ValueHolder.h> 
   35#include <casacore/casa/Utilities/DataType.h> 
   37namespace casacore { 
namespace python {
 
   56      return boost::python::incref(
makeobject(c).ptr());
 
 
 
   64      boost::python::converter::registry::push_back(
 
   67        boost::python::type_id<ValueHolder>());
 
 
   76      boost::python::converter::rvalue_from_python_stage1_data* data);
 
 
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 ValueHolder makeValueHolder(PyObject *obj_ptr)
Make a ValueHolder from all possible python data types.
 
static void * convertible(PyObject *obj_ptr)
Check if it is a type we can convert.
 
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.