RAVE
|
Python version of the RaveIO API. More...
#include "rave_io.h"
Go to the source code of this file.
Classes | |
struct | PyRaveIO |
The RaveIO. More... | |
Macros | |
#define | PyRaveIO_Type_NUM 0 |
index for Type | |
#define | PyRaveIO_GetNative_NUM 1 |
index for GetNative | |
#define | PyRaveIO_GetNative_RETURN RaveIO_t* |
return type for GetNative | |
#define | PyRaveIO_GetNative_PROTO (PyRaveIO*) |
argument prototype for GetNative | |
#define | PyRaveIO_New_NUM 2 |
index for New | |
#define | PyRaveIO_New_RETURN PyRaveIO* |
return type for New | |
#define | PyRaveIO_New_PROTO (RaveIO_t*) |
argument prototype for New | |
#define | PyRaveIO_Open_NUM 3 |
index for Open | |
#define | PyRaveIO_Open_RETURN PyRaveIO* |
return type for Open | |
#define | PyRaveIO_Open_PROTO (const char* filename, int lazyLoading, const char* preloadQuantities) |
argument prototype for Open | |
#define | PyRaveIO_API_pointers 4 |
Total number of C API pointers. | |
#define | PyRaveIO_CAPSULE_NAME "_raveio._C_API" |
#define | PyRaveIO_GetNative (*(PyRaveIO_GetNative_RETURN (*)PyRaveIO_GetNative_PROTO) PyRaveIO_API[PyRaveIO_GetNative_NUM]) |
Returns a pointer to the internal rave io, remember to release the reference when done with the object. | |
#define | PyRaveIO_New (*(PyRaveIO_New_RETURN (*)PyRaveIO_New_PROTO) PyRaveIO_API[PyRaveIO_New_NUM]) |
Creates a new rave io instance. | |
#define | PyRaveIO_Open (*(PyRaveIO_Open_RETURN (*)PyRaveIO_Open_PROTO) PyRaveIO_API[PyRaveIO_Open_NUM]) |
Opens a rave io instance. | |
#define | PyRaveIO_Check(op) |
Checks if the object is a python rave io. | |
#define | PyRaveIO_Type (*(PyTypeObject*)PyRaveIO_API[PyRaveIO_Type_NUM]) |
#define | import_pyraveio() |
Imports the PyRaveIO module (like import _raveio in python). | |
Python version of the RaveIO API.
#define import_pyraveio | ( | ) |
Imports the PyRaveIO module (like import _raveio in python).
#define PyRaveIO_API_pointers 4 |
Total number of C API pointers.
#define PyRaveIO_Check | ( | op | ) |
Checks if the object is a python rave io.
#define PyRaveIO_GetNative (*(PyRaveIO_GetNative_RETURN (*)PyRaveIO_GetNative_PROTO) PyRaveIO_API[PyRaveIO_GetNative_NUM]) |
Returns a pointer to the internal rave io, remember to release the reference when done with the object.
(RAVE_OBJECT_RELEASE).
#define PyRaveIO_GetNative_NUM 1 |
index for GetNative
#define PyRaveIO_GetNative_PROTO (PyRaveIO*) |
argument prototype for GetNative
#define PyRaveIO_GetNative_RETURN RaveIO_t* |
return type for GetNative
#define PyRaveIO_New (*(PyRaveIO_New_RETURN (*)PyRaveIO_New_PROTO) PyRaveIO_API[PyRaveIO_New_NUM]) |
Creates a new rave io instance.
Release this object with Py_DECREF. If a RaveIO_t instance is provided and this instance already is bound to a python instance, this instance will be increfed and returned.
[in] | raveio | - the RaveIO_t intance. |
#define PyRaveIO_New_NUM 2 |
index for New
#define PyRaveIO_New_PROTO (RaveIO_t*) |
argument prototype for New
#define PyRaveIO_New_RETURN PyRaveIO* |
return type for New
#define PyRaveIO_Open (*(PyRaveIO_Open_RETURN (*)PyRaveIO_Open_PROTO) PyRaveIO_API[PyRaveIO_Open_NUM]) |
Opens a rave io instance.
Release this object with Py_DECREF.
[in] | filename | - the filename. |
#define PyRaveIO_Open_NUM 3 |
index for Open
#define PyRaveIO_Open_PROTO (const char* filename, int lazyLoading, const char* preloadQuantities) |
argument prototype for Open
#define PyRaveIO_Open_RETURN PyRaveIO* |
return type for Open
#define PyRaveIO_Type_NUM 0 |
index for Type