25#ifndef PYPROJECTIONREGISTRY_H
26#define PYPROJECTIONREGISTRY_H
37#define PyProjectionRegistry_Type_NUM 0
39#define PyProjectionRegistry_GetNative_NUM 1
40#define PyProjectionRegistry_GetNative_RETURN ProjectionRegistry_t*
41#define PyProjectionRegistry_GetNative_PROTO (PyProjectionRegistry*)
43#define PyProjectionRegistry_New_NUM 2
44#define PyProjectionRegistry_New_RETURN PyProjectionRegistry*
45#define PyProjectionRegistry_New_PROTO (ProjectionRegistry_t*)
47#define PyProjectionRegistry_Load_NUM 3
48#define PyProjectionRegistry_Load_RETURN PyProjectionRegistry*
49#define PyProjectionRegistry_Load_PROTO (const char* filename)
51#define PyProjectionRegistry_API_pointers 4
53#define PyProjectionRegistry_CAPSULE_NAME "_projectionregistry._C_API"
55#ifdef PYPROJECTIONREGISTRY_MODULE
57extern PyTypeObject PyProjectionRegistry_Type;
60#define PyProjectionRegistry_Check(op) ((op)->ob_type == &PyProjectionRegistry_Type)
73static void **PyProjectionRegistry_API;
79#define PyProjectionRegistry_GetNative \
80 (*(PyProjectionRegistry_GetNative_RETURN (*)PyProjectionRegistry_GetNative_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_GetNative_NUM])
89#define PyProjectionRegistry_New \
90 (*(PyProjectionRegistry_New_RETURN (*)PyProjectionRegistry_New_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_New_NUM])
97#define PyProjectionRegistry_Load \
98 (*(PyProjectionRegistry_Load_RETURN (*)PyProjectionRegistry_Load_PROTO) PyProjectionRegistry_API[PyProjectionRegistry_Load_NUM])
103#define PyProjectionRegistry_Check(op) \
104 (Py_TYPE(op) == &PyProjectionRegistry_Type)
106#define PyProjectionRegistry_Type (*(PyTypeObject*)PyProjectionRegistry_API[PyProjectionRegistry_Type_NUM])
111#define import_pyprojectionregistry() \
112 PyProjectionRegistry_API = (void **)PyCapsule_Import(PyProjectionRegistry_CAPSULE_NAME, 1);
Provides support for reading and writing projections to and from an xml-file.
#define PyProjectionRegistry_Load
Loads a projection registry instance.
Definition pyprojectionregistry.h:97
#define PyProjectionRegistry_New
Creates a projection registry instance.
Definition pyprojectionregistry.h:89
#define PyProjectionRegistry_New_RETURN
return type for New
Definition pyprojectionregistry.h:44
#define PyProjectionRegistry_New_PROTO
arguments for New
Definition pyprojectionregistry.h:45
#define PyProjectionRegistry_Load_RETURN
return type for Load
Definition pyprojectionregistry.h:48
#define PyProjectionRegistry_Load_PROTO
argument prototype for Open
Definition pyprojectionregistry.h:49
#define PyProjectionRegistry_GetNative_RETURN
return type for GetNative
Definition pyprojectionregistry.h:40
#define PyProjectionRegistry_GetNative_PROTO
arguments for GetNative
Definition pyprojectionregistry.h:41
#define PyProjectionRegistry_GetNative
Returns a pointer to the internal registry, remember to release the reference when done with the obje...
Definition pyprojectionregistry.h:79
A projection registry.
Definition pyprojectionregistry.h:32
PyObject_HEAD ProjectionRegistry_t * registry
the projection registry
Definition pyprojectionregistry.h:34
Represents the registry.
Definition projectionregistry.c:36