BALTRAD PPC
pypdpprocessor.h File Reference

Python version of the baltrad ppc generator. More...

#include "pdp_processor.h"

Go to the source code of this file.

Classes

struct  PyPdpProcessor
 The fmi image object. More...
 

Macros

#define PyPdpProcessor_Type_NUM   0
 index of type
 
#define PyPdpProcessor_GetNative_NUM   1
 index of GetNative
 
#define PyPdpProcessor_GetNative_RETURN   PdpProcessor_t*
 return type for GetNative
 
#define PyPdpProcessor_GetNative_PROTO   (PyPdpProcessor*)
 arguments for GetNative
 
#define PyPdpProcessor_New_NUM   2
 index of New
 
#define PyPdpProcessor_New_RETURN   PyPdpProcessor*
 return type for New
 
#define PyPdpProcessor_New_PROTO   (PdpProcessor_t*)
 arguments for New
 
#define PyPdpProcessor_API_pointers   3
 number of type and function pointers
 
#define PyPdpProcessor_CAPSULE_NAME   "_pdpprocessor._C_API"
 
#define PyPdpProcessor_GetNative    (*(PyPdpProcessor_GetNative_RETURN (*)PyPdpProcessor_GetNative_PROTO) PyPdpProcessor_API[PyPdpProcessor_GetNative_NUM])
 Returns a pointer to the internal pdp processor, remember to release the reference when done with the object.
 
#define PyPdpProcessor_New    (*(PyPdpProcessor_New_RETURN (*)PyPdpProcessor_New_PROTO) PyPdpProcessor_API[PyPdpProcessor_New_NUM])
 Creates a new pdp processor instance.
 
#define PyPdpProcessor_Check(op)
 Checks if the object is a python pdp processor.
 
#define PyPdpProcessor_Type   (*(PyTypeObject*)PyPdpProcessor_API[PyPdpProcessor_Type_NUM])
 
#define import_pdpprocessor()
 Imports the PyPdpProcessor module (like import _pdpprocessor in python).
 

Detailed Description

Python version of the baltrad ppc generator.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2019-02-17

Macro Definition Documentation

◆ import_pdpprocessor

#define import_pdpprocessor ( )
Value:
PyPdpProcessor_API = (void **)PyCapsule_Import(PyPdpProcessor_CAPSULE_NAME, 1);

Imports the PyPdpProcessor module (like import _pdpprocessor in python).

◆ PyPdpProcessor_API_pointers

#define PyPdpProcessor_API_pointers   3

number of type and function pointers

◆ PyPdpProcessor_Check

#define PyPdpProcessor_Check ( op)
Value:
(Py_TYPE(op) == &PyPdpProcessor_Type)

Checks if the object is a python pdp processor.

◆ PyPdpProcessor_GetNative

#define PyPdpProcessor_GetNative    (*(PyPdpProcessor_GetNative_RETURN (*)PyPdpProcessor_GetNative_PROTO) PyPdpProcessor_API[PyPdpProcessor_GetNative_NUM])

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

(RAVE_OBJECT_RELEASE).

◆ PyPdpProcessor_GetNative_NUM

#define PyPdpProcessor_GetNative_NUM   1

index of GetNative

◆ PyPdpProcessor_GetNative_PROTO

#define PyPdpProcessor_GetNative_PROTO   (PyPdpProcessor*)

arguments for GetNative

◆ PyPdpProcessor_GetNative_RETURN

#define PyPdpProcessor_GetNative_RETURN   PdpProcessor_t*

return type for GetNative

◆ PyPdpProcessor_New

#define PyPdpProcessor_New    (*(PyPdpProcessor_New_RETURN (*)PyPdpProcessor_New_PROTO) PyPdpProcessor_API[PyPdpProcessor_New_NUM])

Creates a new pdp processor instance.

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

Parameters
[in]processor- the PyPdpProcessor_t instance.
Returns
the PyPdpProcessor instance.

◆ PyPdpProcessor_New_NUM

#define PyPdpProcessor_New_NUM   2

index of New

◆ PyPdpProcessor_New_PROTO

#define PyPdpProcessor_New_PROTO   (PdpProcessor_t*)

arguments for New

◆ PyPdpProcessor_New_RETURN

#define PyPdpProcessor_New_RETURN   PyPdpProcessor*

return type for New

◆ PyPdpProcessor_Type_NUM

#define PyPdpProcessor_Type_NUM   0

index of type