RAVE
pyradardefinition.h File Reference

Python version of the RadarDefinition API. More...

#include "radardefinition.h"

Go to the source code of this file.

Classes

struct  PyRadarDefinition
 A radar definition. More...
 

Macros

#define PyRadarDefinition_Type_NUM   0
 index of type
 
#define PyRadarDefinition_GetNative_NUM   1
 index of GetNative
 
#define PyRadarDefinition_GetNative_RETURN   RadarDefinition_t*
 return type for GetNative
 
#define PyRadarDefinition_GetNative_PROTO   (PyRadarDefinition*)
 arguments for GetNative
 
#define PyRadarDefinition_New_NUM   2
 index of New
 
#define PyRadarDefinition_New_RETURN   PyRadarDefinition*
 return type for New
 
#define PyRadarDefinition_New_PROTO   (RadarDefinition_t*)
 arguments for New
 
#define PyRadarDefinition_API_pointers   3
 number of API pointers
 
#define PyRadarDefinition_CAPSULE_NAME   "_radardef._C_API"
 
#define PyRadarDefinition_GetNative    (*(PyRadarDefinition_GetNative_RETURN (*)PyRadarDefinition_GetNative_PROTO) PyRadarDefinition_API[PyRadarDefinition_GetNative_NUM])
 Returns a pointer to the internal definition, remember to release the reference when done with the object.
 
#define PyRadarDefinition_New    (*(PyRadarDefinition_New_RETURN (*)PyRadarDefinition_New_PROTO) PyRadarDefinition_API[PyRadarDefinition_New_NUM])
 Creates a new radar definition instance.
 
#define PyRadarDefinition_Check(op)
 Checks if the object is a python radar definition.
 
#define PyRadarDefinition_Type   (*(PyTypeObject*)PyRadarDefinition_API[PyRadarDefinition_Type_NUM])
 
#define import_pyradardefinition()
 Imports the PyRadarDefinition module (like import _radardef in python).
 

Detailed Description

Python version of the RadarDefinition API.

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

Macro Definition Documentation

◆ import_pyradardefinition

#define import_pyradardefinition ( )
Value:
PyRadarDefinition_API = (void **)PyCapsule_Import(PyRadarDefinition_CAPSULE_NAME, 1);

Imports the PyRadarDefinition module (like import _radardef in python).

◆ PyRadarDefinition_API_pointers

#define PyRadarDefinition_API_pointers   3

number of API pointers

◆ PyRadarDefinition_Check

#define PyRadarDefinition_Check ( op)
Value:
(Py_TYPE(op) == &PyRadarDefinition_Type)

Checks if the object is a python radar definition.

◆ PyRadarDefinition_GetNative

#define PyRadarDefinition_GetNative    (*(PyRadarDefinition_GetNative_RETURN (*)PyRadarDefinition_GetNative_PROTO) PyRadarDefinition_API[PyRadarDefinition_GetNative_NUM])

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

(RAVE_OBJECT_RELEASE).

◆ PyRadarDefinition_GetNative_NUM

#define PyRadarDefinition_GetNative_NUM   1

index of GetNative

◆ PyRadarDefinition_GetNative_PROTO

#define PyRadarDefinition_GetNative_PROTO   (PyRadarDefinition*)

arguments for GetNative

◆ PyRadarDefinition_GetNative_RETURN

#define PyRadarDefinition_GetNative_RETURN   RadarDefinition_t*

return type for GetNative

◆ PyRadarDefinition_New

#define PyRadarDefinition_New    (*(PyRadarDefinition_New_RETURN (*)PyRadarDefinition_New_PROTO) PyRadarDefinition_API[PyRadarDefinition_New_NUM])

Creates a new radar definition instance.

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

Parameters
[in]radar- the RadarDefinition_t intance.
Returns
the PyRadarDefinition instance.

◆ PyRadarDefinition_New_NUM

#define PyRadarDefinition_New_NUM   2

index of New

◆ PyRadarDefinition_New_PROTO

#define PyRadarDefinition_New_PROTO   (RadarDefinition_t*)

arguments for New

◆ PyRadarDefinition_New_RETURN

#define PyRadarDefinition_New_RETURN   PyRadarDefinition*

return type for New

◆ PyRadarDefinition_Type_NUM

#define PyRadarDefinition_Type_NUM   0

index of type