25#ifndef PYAREAREGISTRY_H
26#define PYAREAREGISTRY_H
38#define PyAreaRegistry_Type_NUM 0
40#define PyAreaRegistry_GetNative_NUM 1
41#define PyAreaRegistry_GetNative_RETURN AreaRegistry_t*
42#define PyAreaRegistry_GetNative_PROTO (PyAreaRegistry*)
44#define PyAreaRegistry_New_NUM 2
45#define PyAreaRegistry_New_RETURN PyAreaRegistry*
46#define PyAreaRegistry_New_PROTO (AreaRegistry_t*)
48#define PyAreaRegistry_Load_NUM 3
49#define PyAreaRegistry_Load_RETURN PyAreaRegistry*
50#define PyAreaRegistry_Load_PROTO (const char* filename, PyProjectionRegistry* pyprojregistry)
52#define PyAreaRegistry_API_pointers 4
54#define PyAreaRegistry_CAPSULE_NAME "_area._C_API"
56#ifdef PYAREAREGISTRY_MODULE
58extern PyTypeObject PyAreaRegistry_Type;
61#define PyAreaRegistry_Check(op) ((op)->ob_type == &PyAreaRegistry_Type)
74static void **PyAreaRegistry_API;
80#define PyAreaRegistry_GetNative \
81 (*(PyAreaRegistry_GetNative_RETURN (*)PyAreaRegistry_GetNative_PROTO) PyAreaRegistry_API[PyAreaRegistry_GetNative_NUM])
90#define PyAreaRegistry_New \
91 (*(PyAreaRegistry_New_RETURN (*)PyAreaRegistry_New_PROTO) PyAreaRegistry_API[PyAreaRegistry_New_NUM])
99#define PyAreaRegistry_Load \
100 (*(PyAreaRegistry_Load_RETURN (*)PyAreaRegistry_Load_PROTO) PyAreaRegistry_API[PyAreaRegistry_Load_NUM])
105#define PyAreaRegistry_Check(op) \
106 (Py_TYPE(op) == &PyAreaRegistry_Type)
108#define PyAreaRegistry_Type (*(PyTypeObject*)PyAreaRegistry_API[PyAreaRegistry_Type_NUM])
113#define import_pyarearegistry() \
114 PyAreaRegistry_API = (void **)PyCapsule_Import(PyAreaRegistry_CAPSULE_NAME, 1);
Provides support for reading and writing areas to and from an xml-file.
#define PyAreaRegistry_GetNative
Returns a pointer to the internal area, remember to release the reference when done with the object.
Definition pyarearegistry.h:80
#define PyAreaRegistry_New_PROTO
arguments for New
Definition pyarearegistry.h:46
#define PyAreaRegistry_Load_RETURN
return type for Load
Definition pyarearegistry.h:49
#define PyAreaRegistry_Load_PROTO
argument prototype for Open
Definition pyarearegistry.h:50
#define PyAreaRegistry_GetNative_RETURN
return type for GetNative
Definition pyarearegistry.h:41
#define PyAreaRegistry_GetNative_PROTO
arguments for GetNative
Definition pyarearegistry.h:42
#define PyAreaRegistry_Load
Loads a area registry instance.
Definition pyarearegistry.h:99
#define PyAreaRegistry_New
Creates a area registry instance.
Definition pyarearegistry.h:90
#define PyAreaRegistry_New_RETURN
return type for New
Definition pyarearegistry.h:45
Python version of the Projection registry API.
A cartesian product.
Definition pyarearegistry.h:33
PyObject_HEAD AreaRegistry_t * registry
the area registry
Definition pyarearegistry.h:35
Represents the registry.
Definition arearegistry.c:38