RAVE
pyprojectionregistry.h File Reference

Python version of the Projection registry API. More...

Go to the source code of this file.

Classes

struct  PyProjectionRegistry
 A projection registry. More...
 

Macros

#define PyProjectionRegistry_Type_NUM   0
 index of type
 
#define PyProjectionRegistry_GetNative_NUM   1
 index of GetNative
 
#define PyProjectionRegistry_GetNative_RETURN   ProjectionRegistry_t*
 return type for GetNative
 
#define PyProjectionRegistry_GetNative_PROTO   (PyProjectionRegistry*)
 arguments for GetNative
 
#define PyProjectionRegistry_New_NUM   2
 index of New
 
#define PyProjectionRegistry_New_RETURN   PyProjectionRegistry*
 return type for New
 
#define PyProjectionRegistry_New_PROTO   (ProjectionRegistry_t*)
 arguments for New
 
#define PyProjectionRegistry_Load_NUM   3
 index for Load
 
#define PyProjectionRegistry_Load_RETURN   PyProjectionRegistry*
 return type for Load
 
#define PyProjectionRegistry_Load_PROTO   (const char* filename)
 argument prototype for Open
 
#define PyProjectionRegistry_API_pointers   4
 number of API pointers
 
#define PyProjectionRegistry_CAPSULE_NAME   "_projectionregistry._C_API"
 
#define PyProjectionRegistry_GetNative    (*(PyProjectionRegistry_GetNative_RETURN (*)PyProjectionRegistry_GetNative_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_GetNative_NUM])
 Returns a pointer to the internal registry, remember to release the reference when done with the object.
 
#define PyProjectionRegistry_New    (*(PyProjectionRegistry_New_RETURN (*)PyProjectionRegistry_New_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_New_NUM])
 Creates a projection registry instance.
 
#define PyProjectionRegistry_Load    (*(PyProjectionRegistry_Load_RETURN (*)PyProjectionRegistry_Load_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_Load_NUM])
 Loads a projection registry instance.
 
#define PyProjectionRegistry_Check(op)
 Checks if the object is a python projection registry.
 
#define PyProjectionRegistry_Type   (*(PyTypeObject*)PyProjectionRegistry_API[PyProjectionRegistry_Type_NUM])
 
#define import_pyprojectionregistry()
 Imports the PyProjectionRegistry module (like import _projectionregistry in python).
 

Detailed Description

Python version of the Projection registry API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2009-12-15

Macro Definition Documentation

◆ import_pyprojectionregistry

#define import_pyprojectionregistry ( )
Value:
PyProjectionRegistry_API = (void **)PyCapsule_Import(PyProjectionRegistry_CAPSULE_NAME, 1);

Imports the PyProjectionRegistry module (like import _projectionregistry in python).

◆ PyProjectionRegistry_API_pointers

#define PyProjectionRegistry_API_pointers   4

number of API pointers

◆ PyProjectionRegistry_Check

#define PyProjectionRegistry_Check ( op)
Value:
(Py_TYPE(op) == &PyProjectionRegistry_Type)

Checks if the object is a python projection registry.

◆ PyProjectionRegistry_GetNative

#define PyProjectionRegistry_GetNative    (*(PyProjectionRegistry_GetNative_RETURN (*)PyProjectionRegistry_GetNative_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_GetNative_NUM])

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

(RAVE_OBJECT_RELEASE).

◆ PyProjectionRegistry_GetNative_NUM

#define PyProjectionRegistry_GetNative_NUM   1

index of GetNative

◆ PyProjectionRegistry_GetNative_PROTO

#define PyProjectionRegistry_GetNative_PROTO   (PyProjectionRegistry*)

arguments for GetNative

◆ PyProjectionRegistry_GetNative_RETURN

#define PyProjectionRegistry_GetNative_RETURN   ProjectionRegistry_t*

return type for GetNative

◆ PyProjectionRegistry_Load

#define PyProjectionRegistry_Load    (*(PyProjectionRegistry_Load_RETURN (*)PyProjectionRegistry_Load_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_Load_NUM])

Loads a projection registry instance.

Release this object with Py_DECREF.

Parameters
[in]filename- the filename.
Returns
the PyProjectionRegistry instance.

◆ PyProjectionRegistry_Load_NUM

#define PyProjectionRegistry_Load_NUM   3

index for Load

◆ PyProjectionRegistry_Load_PROTO

#define PyProjectionRegistry_Load_PROTO   (const char* filename)

argument prototype for Open

◆ PyProjectionRegistry_Load_RETURN

#define PyProjectionRegistry_Load_RETURN   PyProjectionRegistry*

return type for Load

◆ PyProjectionRegistry_New

#define PyProjectionRegistry_New    (*(PyProjectionRegistry_New_RETURN (*)PyProjectionRegistry_New_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_New_NUM])

Creates a projection registry instance.

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

Parameters
[in]registry- the ProjectionRegistry_t intance.
Returns
the PyProjectionRegistry instance.

◆ PyProjectionRegistry_New_NUM

#define PyProjectionRegistry_New_NUM   2

index of New

◆ PyProjectionRegistry_New_PROTO

#define PyProjectionRegistry_New_PROTO   (ProjectionRegistry_t*)

arguments for New

◆ PyProjectionRegistry_New_RETURN

#define PyProjectionRegistry_New_RETURN   PyProjectionRegistry*

return type for New

◆ PyProjectionRegistry_Type_NUM

#define PyProjectionRegistry_Type_NUM   0

index of type