RAVE
pydetectionrange.h File Reference

Python version of the Detection range API. More...

#include "detection_range.h"

Go to the source code of this file.

Classes

struct  PyDetectionRange
 A detection range generator. More...
 

Macros

#define PyDetectionRange_Type_NUM   0
 index of type
 
#define PyDetectionRange_GetNative_NUM   1
 index of GetNative
 
#define PyDetectionRange_GetNative_RETURN   DetectionRange_t*
 return type for GetNative
 
#define PyDetectionRange_GetNative_PROTO   (PyDetectionRange*)
 arguments for GetNative
 
#define PyDetectionRange_New_NUM   2
 index of New
 
#define PyDetectionRange_New_RETURN   PyDetectionRange*
 return type for New
 
#define PyDetectionRange_New_PROTO   (DetectionRange_t*)
 arguments for New
 
#define PyDetectionRange_API_pointers   3
 number of api pointers
 
#define PyDetectionRange_CAPSULE_NAME   "_detectionrange._C_API"
 
#define PyDetectionRange_GetNative    (*(PyDetectionRange_GetNative_RETURN (*)PyDetectionRange_GetNative_PROTO) PyDetectionRange_API[PyDetectionRange_GetNative_NUM])
 Returns a pointer to the internal detection range, remember to release the reference when done with the object.
 
#define PyDetectionRange_New    (*(PyDetectionRange_New_RETURN (*)PyDetectionRange_New_PROTO) PyDetectionRange_API[PyDetectionRange_New_NUM])
 Creates a new detection range instance.
 
#define PyDetectionRange_Check(op)
 Checks if the object is a python detection range.
 
#define PyDetectionRange_Type   (*(PyTypeObject*)PyDetectionRange_API[PyDetectionRange_Type_NUM])
 
#define import_detectionrange()
 Imports the PyDetectionRange module (like import _pydetectionrange in python).
 
#define PyDetectionRange_Check(op)
 Checks if the object is a python detection range.
 

Detailed Description

Python version of the Detection range API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2011-02-18

Macro Definition Documentation

◆ import_detectionrange

#define import_detectionrange ( )
Value:
PyArea_API = (void **)PyCapsule_Import(PyDetectionRange_CAPSULE_NAME, 1);

Imports the PyDetectionRange module (like import _pydetectionrange in python).

◆ PyDetectionRange_API_pointers

#define PyDetectionRange_API_pointers   3

number of api pointers

◆ PyDetectionRange_Check [1/2]

#define PyDetectionRange_Check ( op)
Value:
(Py_TYPE(op) == &PyDetectionRange_Type)

Checks if the object is a python detection range.

◆ PyDetectionRange_Check [2/2]

#define PyDetectionRange_Check ( op)
Value:
((op)->ob_type == (PyTypeObject *)PyDetectionRange_API[PyDetectionRange_Type_NUM])
#define PyDetectionRange_Type_NUM
index of type
Definition pydetectionrange.h:37

Checks if the object is a python detection range.

◆ PyDetectionRange_GetNative

#define PyDetectionRange_GetNative    (*(PyDetectionRange_GetNative_RETURN (*)PyDetectionRange_GetNative_PROTO) PyDetectionRange_API[PyDetectionRange_GetNative_NUM])

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

(RAVE_OBJECT_RELEASE).

◆ PyDetectionRange_GetNative_NUM

#define PyDetectionRange_GetNative_NUM   1

index of GetNative

◆ PyDetectionRange_GetNative_PROTO

#define PyDetectionRange_GetNative_PROTO   (PyDetectionRange*)

arguments for GetNative

◆ PyDetectionRange_GetNative_RETURN

#define PyDetectionRange_GetNative_RETURN   DetectionRange_t*

return type for GetNative

◆ PyDetectionRange_New

#define PyDetectionRange_New    (*(PyDetectionRange_New_RETURN (*)PyDetectionRange_New_PROTO) PyDetectionRange_API[PyDetectionRange_New_NUM])

Creates a new detection range instance.

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

Parameters
[in]dr- the DetectopmRamge_t intance.
Returns
the PyDetectionRange instance.

◆ PyDetectionRange_New_NUM

#define PyDetectionRange_New_NUM   2

index of New

◆ PyDetectionRange_New_PROTO

#define PyDetectionRange_New_PROTO   (DetectionRange_t*)

arguments for New

◆ PyDetectionRange_New_RETURN

#define PyDetectionRange_New_RETURN   PyDetectionRange*

return type for New

◆ PyDetectionRange_Type_NUM

#define PyDetectionRange_Type_NUM   0

index of type