BEAM BLOCKAGE
pybbtopography.h File Reference

Python version of the beam blockage topography field. More...

#include "Python.h"
#include "bbtopography.h"

Go to the source code of this file.

Classes

struct  PyBBTopography
 The beam blockage. More...
 

Macros

#define PyBBTopography_Type_NUM   0
 index of type
 
#define PyBBTopography_GetNative_NUM   1
 index of GetNative
 
#define PyBBTopography_GetNative_RETURN   BBTopography_t*
 return type for GetNative
 
#define PyBBTopography_GetNative_PROTO   (PyBBTopography*)
 arguments for GetNative
 
#define PyBBTopography_New_NUM   2
 index of New
 
#define PyBBTopography_New_RETURN   PyBBTopography*
 return type for New
 
#define PyBBTopography_New_PROTO   (BBTopography_t*)
 arguments for New
 
#define PyBBTopography_API_pointers   3
 number of type and function pointers
 
#define PyBBTopography_CAPSULE_NAME   "_bbtopography._C_API"
 
#define PyBBTopography_GetNative    (*(PyBBTopography_GetNative_RETURN (*)PyBBTopography_GetNative_PROTO) PyBBTopography_API[PyBBTopography_GetNative_NUM])
 Returns a pointer to the internal object, remember to release the reference when done with the object.
 
#define PyBBTopography_New    (*(PyBBTopography_New_RETURN (*)PyBBTopography_New_PROTO) PyBBTopography_API[PyBBTopography_New_NUM])
 Creates a new instance.
 
#define PyBBTopography_Check(op)
 Checks if the object is a python topography instance.
 
#define PyBBTopography_Type   (*(PyTypeObject*)PyBBTopography_API[PyBBTopography_Type_NUM])
 
#define import_bbtopography()
 Imports the PyBBTopography module (like import _bbtopography in python).
 

Detailed Description

Python version of the beam blockage topography field.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2011-11-16

Macro Definition Documentation

◆ import_bbtopography

#define import_bbtopography ( )
Value:
PyBBTopography_API = (void **)PyCapsule_Import(PyBBTopography_CAPSULE_NAME, 1);

Imports the PyBBTopography module (like import _bbtopography in python).

◆ PyBBTopography_API_pointers

#define PyBBTopography_API_pointers   3

number of type and function pointers

◆ PyBBTopography_Check

#define PyBBTopography_Check ( op)
Value:
(Py_TYPE(op) == &PyBBTopography_Type)

Checks if the object is a python topography instance.

◆ PyBBTopography_GetNative

#define PyBBTopography_GetNative    (*(PyBBTopography_GetNative_RETURN (*)PyBBTopography_GetNative_PROTO) PyBBTopography_API[PyBBTopography_GetNative_NUM])

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

(RAVE_OBJECT_RELEASE).

◆ PyBBTopography_GetNative_NUM

#define PyBBTopography_GetNative_NUM   1

index of GetNative

◆ PyBBTopography_GetNative_PROTO

#define PyBBTopography_GetNative_PROTO   (PyBBTopography*)

arguments for GetNative

◆ PyBBTopography_GetNative_RETURN

#define PyBBTopography_GetNative_RETURN   BBTopography_t*

return type for GetNative

◆ PyBBTopography_New

#define PyBBTopography_New    (*(PyBBTopography_New_RETURN (*)PyBBTopography_New_PROTO) PyBBTopography_API[PyBBTopography_New_NUM])

Creates a new instance.

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

Parameters
[in]obj- the BBTopography_t instance.
Returns
the PyBBTopography instance.

◆ PyBBTopography_New_NUM

#define PyBBTopography_New_NUM   2

index of New

◆ PyBBTopography_New_PROTO

#define PyBBTopography_New_PROTO   (BBTopography_t*)

arguments for New

◆ PyBBTopography_New_RETURN

#define PyBBTopography_New_RETURN   PyBBTopography*

return type for New

◆ PyBBTopography_Type_NUM

#define PyBBTopography_Type_NUM   0

index of type