ROPO
Loading...
Searching...
No Matches
pyropogenerator.h File Reference
Include dependency graph for pyropogenerator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PyRopoGenerator
 

Macros

#define PyRopoGenerator_Type_NUM   0
 
#define PyRopoGenerator_GetNative_NUM   1
 
#define PyRopoGenerator_GetNative_RETURN   RaveRopoGenerator_t*
 
#define PyRopoGenerator_GetNative_PROTO   (PyRopoGenerator*)
 
#define PyRopoGenerator_New_NUM   2
 
#define PyRopoGenerator_New_RETURN   PyRopoGenerator*
 
#define PyRopoGenerator_New_PROTO   (RaveRopoGenerator_t*, RaveFmiImage_t*)
 
#define PyRopoGenerator_API_pointers   3
 
#define PyRopoGenerator_CAPSULE_NAME   "_fmiimage._C_API"
 
#define PyRopoGenerator_GetNative    (*(PyRopoGenerator_GetNative_RETURN (*)PyRopoGenerator_GetNative_PROTO) PyRopoGenerator_API[PyRopoGenerator_GetNative_NUM])
 
#define PyRopoGenerator_New    (*(PyRopoGenerator_New_RETURN (*)PyRopoGenerator_New_PROTO) PyRopoGenerator_API[PyRopoGenerator_New_NUM])
 
#define PyRopoGenerator_Check(op)    (Py_TYPE(op) == &PyRopoGenerator_Type)
 
#define PyRopoGenerator_Type   (*(PyTypeObject*)PyRopoGenerator_API[PyRopoGenerator_Type_NUM])
 
#define import_ropogenerator()    PyRopoGenerator_API = (void **)PyCapsule_Import(PyRopoGenerator_CAPSULE_NAME, 1);
 

Detailed Description

Python version of the ropo generator

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2011-08-31

Definition in file pyropogenerator.h.

Macro Definition Documentation

◆ import_ropogenerator

#define import_ropogenerator ( )     PyRopoGenerator_API = (void **)PyCapsule_Import(PyRopoGenerator_CAPSULE_NAME, 1);

Imports the PyRopoGenerator module (like import _ropogenerator in python).

Definition at line 97 of file pyropogenerator.h.

◆ PyRopoGenerator_API_pointers

#define PyRopoGenerator_API_pointers   3

number of type and function pointers

Definition at line 47 of file pyropogenerator.h.

◆ PyRopoGenerator_CAPSULE_NAME

#define PyRopoGenerator_CAPSULE_NAME   "_fmiimage._C_API"

Definition at line 49 of file pyropogenerator.h.

◆ PyRopoGenerator_Check

#define PyRopoGenerator_Check ( op)     (Py_TYPE(op) == &PyRopoGenerator_Type)

Checks if the object is a python fmi image.

Definition at line 89 of file pyropogenerator.h.

◆ PyRopoGenerator_GetNative

#define PyRopoGenerator_GetNative    (*(PyRopoGenerator_GetNative_RETURN (*)PyRopoGenerator_GetNative_PROTO) PyRopoGenerator_API[PyRopoGenerator_GetNative_NUM])

Returns a pointer to the internal fmi image, remember to release the reference when done with the object. (RAVE_OBJECT_RELEASE).

Definition at line 72 of file pyropogenerator.h.

◆ PyRopoGenerator_GetNative_NUM

#define PyRopoGenerator_GetNative_NUM   1

index of GetNative

Definition at line 39 of file pyropogenerator.h.

◆ PyRopoGenerator_GetNative_PROTO

#define PyRopoGenerator_GetNative_PROTO   (PyRopoGenerator*)

arguments for GetNative

Definition at line 41 of file pyropogenerator.h.

◆ PyRopoGenerator_GetNative_RETURN

#define PyRopoGenerator_GetNative_RETURN   RaveRopoGenerator_t*

return type for GetNative

Definition at line 40 of file pyropogenerator.h.

◆ PyRopoGenerator_New

#define PyRopoGenerator_New    (*(PyRopoGenerator_New_RETURN (*)PyRopoGenerator_New_PROTO) PyRopoGenerator_API[PyRopoGenerator_New_NUM])

Creates a new ropo generator instance. Release this object with Py_DECREF. If a RaveRopoGenerator_t instance is provided and this instance already is bound to a python instance, this instance will be increfed and returned.

Parameters
[in]generator- the RaveRopoGenerator_t instance.
[in]image- the ropo generator for this object only used if generator == NULL
Returns
the PyRopoGenerator instance.

Definition at line 83 of file pyropogenerator.h.

◆ PyRopoGenerator_New_NUM

#define PyRopoGenerator_New_NUM   2

index of New

Definition at line 43 of file pyropogenerator.h.

◆ PyRopoGenerator_New_PROTO

#define PyRopoGenerator_New_PROTO   (RaveRopoGenerator_t*, RaveFmiImage_t*)

arguments for New

Definition at line 45 of file pyropogenerator.h.

◆ PyRopoGenerator_New_RETURN

#define PyRopoGenerator_New_RETURN   PyRopoGenerator*

return type for New

Definition at line 44 of file pyropogenerator.h.

◆ PyRopoGenerator_Type

#define PyRopoGenerator_Type   (*(PyTypeObject*)PyRopoGenerator_API[PyRopoGenerator_Type_NUM])

Definition at line 92 of file pyropogenerator.h.

◆ PyRopoGenerator_Type_NUM

#define PyRopoGenerator_Type_NUM   0

index of type

Definition at line 37 of file pyropogenerator.h.