RAVE
pycartesianparam.h File Reference

Python version of the Cartesian API. More...

#include "cartesianparam.h"

Go to the source code of this file.

Classes

struct  PyCartesianParam
 A cartesian product. More...
 

Macros

#define PyCartesianParam_Type_NUM   0
 index of type
 
#define PyCartesianParam_GetNative_NUM   1
 index of GetNative
 
#define PyCartesianParam_GetNative_RETURN   CartesianParam_t*
 return type for GetNative
 
#define PyCartesianParam_GetNative_PROTO   (PyCartesianParam*)
 arguments for GetNative
 
#define PyCartesianParam_New_NUM   2
 index of New
 
#define PyCartesianParam_New_RETURN   PyCartesianParam*
 return type for New
 
#define PyCartesianParam_New_PROTO   (CartesianParam_t*)
 arguments for New
 
#define PyCartesianParam_API_pointers   3
 number of api pointers
 
#define PyCartesianParam_CAPSULE_NAME   "_cartesianparam._C_API"
 
#define PyCartesianParam_GetNative    (*(PyCartesianParam_GetNative_RETURN (*)PyCartesianParam_GetNative_PROTO) PyCartesianParam_API[PyCartesianParam_GetNative_NUM])
 Returns a pointer to the internal cartesian, remember to release the reference when done with the object.
 
#define PyCartesianParam_New    (*(PyCartesianParam_New_RETURN (*)PyCartesianParam_New_PROTO) PyCartesianParam_API[PyCartesianParam_New_NUM])
 Creates a new cartesian instance.
 
#define PyCartesianParam_Check(op)
 Checks if the object is a python cartesian param.
 
#define PyCartesianParam_Type   (*(PyTypeObject*)PyCartesianParam_API[PyCartesianParam_Type_NUM])
 
#define import_pycartesianparam()
 Imports the PyCartesianParam module (like import _area in python).
 

Detailed Description

Python version of the Cartesian API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2009-12-10

Macro Definition Documentation

◆ import_pycartesianparam

#define import_pycartesianparam ( )
Value:
PyCartesianParam_API = (void **)PyCapsule_Import(PyCartesianParam_CAPSULE_NAME, 1);

Imports the PyCartesianParam module (like import _area in python).

◆ PyCartesianParam_API_pointers

#define PyCartesianParam_API_pointers   3

number of api pointers

◆ PyCartesianParam_Check

#define PyCartesianParam_Check ( op)
Value:
(Py_TYPE(op) == &PyCartesianParam_Type)

Checks if the object is a python cartesian param.

◆ PyCartesianParam_GetNative

#define PyCartesianParam_GetNative    (*(PyCartesianParam_GetNative_RETURN (*)PyCartesianParam_GetNative_PROTO) PyCartesianParam_API[PyCartesianParam_GetNative_NUM])

Returns a pointer to the internal cartesian, remember to release the reference when done with the object.

(RAVE_OBJECT_RELEASE).

◆ PyCartesianParam_GetNative_NUM

#define PyCartesianParam_GetNative_NUM   1

index of GetNative

◆ PyCartesianParam_GetNative_PROTO

#define PyCartesianParam_GetNative_PROTO   (PyCartesianParam*)

arguments for GetNative

◆ PyCartesianParam_GetNative_RETURN

#define PyCartesianParam_GetNative_RETURN   CartesianParam_t*

return type for GetNative

◆ PyCartesianParam_New

#define PyCartesianParam_New    (*(PyCartesianParam_New_RETURN (*)PyCartesianParam_New_PROTO) PyCartesianParam_API[PyCartesianParam_New_NUM])

Creates a new cartesian instance.

Release this object with Py_DECREF. If a Cartesian_t instance is provided and this instance already is bound to a python instance, this instance will be increfed and returned.

Parameters
[in]cartesian- the Cartesian_t intance.
Returns
the PyCartesian instance.

◆ PyCartesianParam_New_NUM

#define PyCartesianParam_New_NUM   2

index of New

◆ PyCartesianParam_New_PROTO

#define PyCartesianParam_New_PROTO   (CartesianParam_t*)

arguments for New

◆ PyCartesianParam_New_RETURN

#define PyCartesianParam_New_RETURN   PyCartesianParam*

return type for New

◆ PyCartesianParam_Type_NUM

#define PyCartesianParam_Type_NUM   0

index of type