RAVE
|
Functions for managing io cache files like static files. More...
Go to the source code of this file.
Typedefs | |
typedef struct _RaveIOCache_t | RaveIOCache_t |
Defines a Rave IO Cache instance. | |
Functions | |
RaveField_t * | RaveIOCache_loadField (RaveIOCache_t *iocache, const char *filename, const char *fieldname) |
Opens a supported HDF5 file and loads it into the RaveIOCache instance. | |
int | RaveIOCache_saveField (RaveIOCache_t *iocache, RaveField_t *obj, const char *filename) |
Saves a rave object as specified. | |
void | RaveIOCache_setCompressionLevel (RaveIOCache_t *iocache, int lvl) |
Sets the compression level. | |
int | RaveIOCache_getCompressionLevel (RaveIOCache_t *iocache) |
Returns the compression level. | |
void | RaveIOCache_setUserBlock (RaveIOCache_t *iocache, unsigned long long userblock) |
Sets the user block. | |
unsigned long long | RaveIOCache_getUserBlock (RaveIOCache_t *iocache) |
Returns the user block. | |
void | RaveIOCache_setSizes (RaveIOCache_t *iocache, size_t sz, size_t addr) |
Sets the sizes. | |
void | RaveIOCache_getSizes (RaveIOCache_t *iocache, size_t *sz, size_t *addr) |
Returns the sizes. | |
void | RaveIOCache_setSymk (RaveIOCache_t *iocache, int ik, int lk) |
Sets the symk. | |
void | RaveIOCache_getSymk (RaveIOCache_t *iocache, int *ik, int *lk) |
Returns the symk. | |
void | RaveIOCache_setIStoreK (RaveIOCache_t *iocache, long k) |
Sets the istore_k value. | |
long | RaveIOCache_getIStoreK (RaveIOCache_t *iocache) |
Returns the istore_k value. | |
void | RaveIOCache_setMetaBlockSize (RaveIOCache_t *iocache, long sz) |
Sets the meta block size. | |
long | RaveIOCache_getMetaBlockSize (RaveIOCache_t *iocache) |
Returns the meta block size. | |
const char * | RaveIOCache_getErrorMessage (RaveIOCache_t *iocache) |
If an error occurs during writing, you might get an indication for why by checking the error message. | |
Variables | |
RaveCoreObjectType | RaveIOCache_TYPE |
Type definition to use when creating a rave object. | |
Functions for managing io cache files like static files.
typedef struct _RaveIOCache_t RaveIOCache_t |
Defines a Rave IO Cache instance.
int RaveIOCache_getCompressionLevel | ( | RaveIOCache_t * | iocache | ) |
Returns the compression level.
[in] | iocache- | self |
const char * RaveIOCache_getErrorMessage | ( | RaveIOCache_t * | iocache | ) |
If an error occurs during writing, you might get an indication for why by checking the error message.
[in] | iocache | - rave io |
long RaveIOCache_getIStoreK | ( | RaveIOCache_t * | iocache | ) |
Returns the istore_k value.
[in] | iocache | - self |
long RaveIOCache_getMetaBlockSize | ( | RaveIOCache_t * | iocache | ) |
Returns the meta block size.
[in] | iocache | - self |
void RaveIOCache_getSizes | ( | RaveIOCache_t * | iocache, |
size_t * | sz, | ||
size_t * | addr ) |
Returns the sizes.
[in] | iocache | - self |
[in] | sz | - same as sizes.sizeof_size |
[in] | addr | - same as sizes.sizeof_addr |
void RaveIOCache_getSymk | ( | RaveIOCache_t * | iocache, |
int * | ik, | ||
int * | lk ) |
Returns the symk.
[in] | iocache | - self |
[in] | ik | - same as sym_k.ik |
[in] | lk | - same as sym_k.lk |
unsigned long long RaveIOCache_getUserBlock | ( | RaveIOCache_t * | iocache | ) |
Returns the user block.
[in] | iocache | - self |
RaveField_t * RaveIOCache_loadField | ( | RaveIOCache_t * | iocache, |
const char * | filename, | ||
const char * | fieldname ) |
Opens a supported HDF5 file and loads it into the RaveIOCache instance.
[in] | iocache | - self |
[in] | filename | - name of file to read |
[in] | fieldname | - name of field (/fieldX) to load, if NULL, /field1 is read. |
Opens a supported HDF5 file and loads it into the RaveIOCache instance.
[in] | vp | - the vertical profile to be added to a node list |
[in] | nodelist | - the nodelist the nodes should be added to |
int RaveIOCache_saveField | ( | RaveIOCache_t * | iocache, |
RaveField_t * | obj, | ||
const char * | filename ) |
Saves a rave object as specified.
[in] | iocache | - self |
[in] | obj | - the field to save |
[in] | filename | - the filename to save with. |
void RaveIOCache_setCompressionLevel | ( | RaveIOCache_t * | iocache, |
int | lvl ) |
Sets the compression level.
[in] | iocache | - self |
[in] | lvl | - the compression level (0..9) |
void RaveIOCache_setIStoreK | ( | RaveIOCache_t * | iocache, |
long | k ) |
Sets the istore_k value.
[in] | iocache | - self |
[in] | k | - the istore_k value |
void RaveIOCache_setMetaBlockSize | ( | RaveIOCache_t * | iocache, |
long | sz ) |
Sets the meta block size.
[in] | iocache | - self |
[in] | sz | - the meta block size |
void RaveIOCache_setSizes | ( | RaveIOCache_t * | iocache, |
size_t | sz, | ||
size_t | addr ) |
Sets the sizes.
[in] | iocache | - self |
[in] | sz | - same as sizes.sizeof_size |
[in] | addr | - same as sizes.sizeof_addr |
void RaveIOCache_setSymk | ( | RaveIOCache_t * | iocache, |
int | ik, | ||
int | lk ) |
Sets the symk.
[in] | iocache | - self |
[in] | ik | - same as sym_k.ik |
[in] | lk | - same as sym_k.lk |
void RaveIOCache_setUserBlock | ( | RaveIOCache_t * | iocache, |
unsigned long long | userblock ) |
Sets the user block.
[in] | iocache | - self |
[in] | userblock | - the user block |
|
extern |
Type definition to use when creating a rave object.