HL-HDF
|
This is the currently provided APIs available in C. More...
Classes | |
struct | _HL_Node |
Represents a HDF5 object/attribute/reference/... More... | |
struct | _HL_NodeList |
Represents a HDF5 file. More... | |
struct | HL_PropertyVersion |
See hdf5 documentation for H5Pget_version for purpose. More... | |
struct | HL_PropertySize |
See hdf5 documentation for H5Pset_sizes and H5Pget_sizes for purpose. More... | |
struct | HL_PropertySymK |
See hdf5 documentation for H5Pset_sym_k and H5Pget_sym_k for purpose. More... | |
struct | HL_FileCreationProperty |
Properties that can be finely tuned when creating a HDF5 file. More... | |
struct | HL_Compression |
Compression properties. More... | |
struct | HL_CompoundTypeAttribute |
This type is designed to describe an individual node with a complicated structure, ie. More... | |
struct | HL_CompoundTypeDescription |
This type is a list of HL_CompoundTypeAttributes. More... | |
Typedefs | |
typedef enum HL_Debug | HL_Debug |
Debug levels. | |
typedef enum HL_CompressionType | HL_CompressionType |
Defines what type of compression that should be used. | |
typedef enum HL_Type | HL_Type |
This is an enumeration variable designed to identify the type of a given node. | |
typedef enum HL_DataType | HL_DataType |
This is an enumeration variable designed to identify the type of data in a given node. | |
typedef enum HL_NodeMark | HL_NodeMark |
This is an enumeration variable designed to keep track of the status of a given node. | |
typedef struct _HL_Node | HL_Node |
Each entry and type in a HDF5 file is represented by a HL_Node. | |
typedef struct _HL_NodeList | HL_NodeList |
Represents a HDF5 file. | |
Enumerations | |
enum | HL_Debug { HLHDF_SPEWDEBUG =0 , HLHDF_DEBUG , HLHDF_DEPRECATED , HLHDF_INFO , HLHDF_WARNING , HLHDF_ERROR , HLHDF_CRITICAL , HLHDF_SILENT } |
Debug levels. More... | |
enum | HL_CompressionType { CT_NONE =0 , CT_ZLIB , CT_SZLIB } |
Defines what type of compression that should be used. More... | |
enum | HL_Type { UNDEFINED_ID =-1 , ATTRIBUTE_ID =0 , GROUP_ID , DATASET_ID , TYPE_ID , REFERENCE_ID } |
This is an enumeration variable designed to identify the type of a given node. More... | |
enum | HL_DataType { DTYPE_UNDEFINED_ID =-1 , HL_SIMPLE =0 , HL_ARRAY } |
This is an enumeration variable designed to identify the type of data in a given node. More... | |
enum | HL_NodeMark { NMARK_UNDEFINED =-1 , NMARK_ORIGINAL =0 , NMARK_CREATED , NMARK_CHANGED , NMARK_SELECT , NMARK_SELECTMETA } |
This is an enumeration variable designed to keep track of the status of a given node. More... | |
Functions | |
void | HL_disableErrorReporting (void) |
Disables error reporting. | |
void | HL_enableErrorReporting (void) |
Enables error reporting. | |
int | HL_isErrorReportingEnabled (void) |
Returns if error reporting is enabled or not. | |
void | HL_init (void) |
Initializes the HLHDF handler functions. | |
void | HL_setDebugMode (int flag) |
Toggles the debug mode for HLHDF. | |
int | HL_isHDF5File (const char *filename) |
Verifies if the provided filename is a valid HDF5 file or not. | |
HL_FileCreationProperty * | HLFileCreationProperty_new (void) |
Creates a file property instance that can be passed on to createHlHdfFile when creating a HDF5 file. | |
void | HLFileCreationProperty_free (HL_FileCreationProperty *prop) |
Deallocates the HL_FileCreationProperty instance. | |
int | HL_sizeOfFormat (const char *format) |
Calculates the size in bytes of the provided format specifiers. | |
int | HL_isFormatSupported (const char *format) |
Verifies if the format name is supported by HLHDF. | |
HL_Compression * | HLCompression_new (HL_CompressionType type) |
Creates an allocated and initialized instance of HL_Compression. | |
HL_Compression * | HLCompression_clone (HL_Compression *inv) |
Creates a copy of the provided HL_Compression instance. | |
void | HLCompression_init (HL_Compression *inv, HL_CompressionType type) |
Initializes a HL_Compressiosn instance. | |
void | HLCompression_free (HL_Compression *inv) |
Deallocates the HL_Compression instance. | |
HL_CompoundTypeDescription * | newHL_CompoundTypeDescription (void) |
Creates a compound type description list. | |
void | freeHL_CompoundTypeDescription (HL_CompoundTypeDescription *typelist) |
Frees the compound type, including all members. | |
HL_CompoundTypeAttribute * | newHL_CompoundTypeAttribute (char *attrname, size_t offset, const char *format, size_t size, int ndims, size_t *dims) |
Creates a compound attribute member node. | |
void | freeHL_CompoundTypeAttribute (HL_CompoundTypeAttribute *attr) |
Frees one compound type attribute. | |
int | addHL_CompoundTypeAttribute (HL_CompoundTypeDescription *typelist, HL_CompoundTypeAttribute *attribute) |
Adds a compound type attribute to the type description. | |
HL_CompoundTypeDescription * | copyHL_CompoundTypeDescription (HL_CompoundTypeDescription *descr) |
Copies the compound type descriptor. | |
hid_t | createCompoundType (size_t size) |
Creates a new compound type. | |
herr_t | addAttributeToCompoundType (hid_t loc_id, const char *name, size_t offset, hid_t type_id) |
Adds one attribute to a compound type. | |
herr_t | addAttributeToCompoundType_fmt (hid_t loc_id, const char *name, size_t offset, const char *fmt) |
Same as addAttributeToCompoundType, but instead of a type as hid_t a format specifier is provided. | |
herr_t | addArrayToCompoundType (hid_t loc_id, const char *name, size_t offset, int ndims, size_t *dims, hid_t type_id) |
Adds an array attribute to a compound type. | |
herr_t | addArrayToCompoundType_fmt (hid_t loc_id, const char *name, size_t offset, int ndims, size_t *dims, const char *fmt) |
Same as addArrayToCompoundType, but instead of a type as hid_t, the format is specified with a format specifier. | |
void | HL_InitializeDebugger (void) |
Initializes the debugger structure, must have been called before executing the code. | |
void | HL_setDebugLevel (HL_Debug lvl) |
Sets the debug level. | |
void | HL_setDebugFunction (void(*dbgfun)(char *filename, int lineno, HL_Debug lvl, const char *fmt,...)) |
Sets the debug function where the debug printouts should be routed. | |
void | HL_setHdf5ErrorFunction (void(*hdf5fun)(unsigned n, const H5E_error_t *val)) |
Sets the HDF5 error reporting function. | |
void | HL_disableHdf5ErrorReporting (void) |
Disables the HDF5 error reporting. | |
void | HL_enableHdf5ErrorReporting (void) |
Enables the HDF5 error reporting. | |
HL_Node * | HLNode_new (const char *name) |
Creates a new HL_Node instance. | |
void | HLNode_free (HL_Node *node) |
Deallocates the provided node. | |
HL_Node * | HLNode_newGroup (const char *name) |
Creates an empty group HL_Node of type HL_Type::GROUP_ID. | |
HL_Node * | HLNode_newAttribute (const char *name) |
Creates an empty attribute HL_Node of type HL_Type::ATTRIBUTE_ID. | |
HL_Node * | HLNode_newDataset (const char *name) |
Creates an empty data set HL_Node of type HL_Type::DATASET_ID. | |
HL_Node * | HLNode_newDatatype (const char *name) |
Creates an empty data type HL_Node of type HL_Type::TYPE_ID. | |
HL_Node * | HLNode_newReference (const char *name) |
Creates an empty reference HL_Node of type HL_Type::REFERENCE_ID. | |
HL_Node * | HLNode_copy (HL_Node *node) |
Copies an HL_Node. | |
int | HLNode_setScalarValue (HL_Node *node, size_t sz, unsigned char *value, const char *fmt, hid_t typid) |
Sets a scalar value in the specified node. | |
int | HLNode_setArrayValue (HL_Node *node, size_t sz, int ndims, hsize_t *dims, unsigned char *value, const char *fmt, hid_t typid) |
Sets an array value in the specified node. | |
int | HLNode_commitType (HL_Node *node, hid_t typid) |
Will mark the node to be committed, only applicable on type nodes. | |
HL_NodeList * | HLNodeList_new (void) |
Creates a new HL_NodeList instance. | |
void | HLNodeList_free (HL_NodeList *nodelist) |
Releasing all resources associated with this node list including the node list itself. | |
int | HLNodeList_addNode (HL_NodeList *nodelist, HL_Node *node) |
Adds a node to the nodelist. | |
HL_Node * | HLNodeList_getNodeByName (HL_NodeList *nodelist, const char *nodeName) |
Locates a node called nodeName in the nodelist and returns a pointer to this node. | |
HL_CompoundTypeDescription * | HLNodeList_findCompoundDescription (HL_NodeList *nodelist, unsigned long objno0, unsigned long objno1) |
Searches the nodelist for any type node, that has got the same object id as objno0 and objno1. | |
HL_NodeList * | HLNodeList_readFrom (const char *filename, const char *fromPath) |
Reads an HDF5 file with name filename from the group fromPath and downwards. | |
HL_NodeList * | HLNodeList_read (const char *filename) |
Reads an HDF5 file with name filename from the root group ("/") and downwards. | |
int | HLNodeList_selectNode (HL_NodeList *nodelist, const char *name) |
Selects the node named 'name' from which to fetch data. | |
int | HLNodeList_selectAllNodes (HL_NodeList *nodelist) |
Marks all nodes in the nodelist for retrival. | |
int | HLNodeList_selectMetadataNodes (HL_NodeList *nodelist) |
Selects all metadata nodes in the nodelist to be fetched, ie. | |
int | HLNodeList_selectAllMetadataNodes (HL_NodeList *nodelist) |
Selects all metadata including metadata about datasets but will exclude data for datasets. | |
int | HLNodeList_selectOnlyDatasetNodes (HL_NodeList *nodelist) |
Only select data set nodes for fetching. | |
int | HLNodeList_deselectNode (HL_NodeList *nodelist, const char *name) |
De-selects the node named 'name' to be retrived when fetching data from the nodelist file. | |
int | HLNodeList_fetchMarkedNodes (HL_NodeList *nodelist) |
Fills all nodes (marked as select) with data. | |
HL_Node * | HLNodeList_fetchNode (HL_NodeList *nodelist, const char *name) |
Behaves as a combination of HLNodeList_selectNode()/fetch()/getNode(). | |
int | HLNodeList_write (HL_NodeList *nodelist, HL_FileCreationProperty *property, HL_Compression *compr) |
Writes a HDF5 file from a nodelist with the specified file properties and compression level/type. | |
int | HLNodeList_update (HL_NodeList *nodelist, HL_Compression *compr) |
Updates a HDF5 file from a nodelist. | |
This is the currently provided APIs available in C.
This group is a subset of all defined functions and if more information on all source code is wanted, please refer to the files section of the documentation.
typedef enum HL_CompressionType HL_CompressionType |
Defines what type of compression that should be used.
typedef enum HL_DataType HL_DataType |
This is an enumeration variable designed to identify the type of data in a given node.
When new nodes are initiated, they are initialized with DTYPE_UNDEFINED_ID.
Debug levels.
The levels are defined so that if HLHDF_INFO debug level is turned on, all higher levels will also be printed except HLHDF_SILENT which means turn of logging.
typedef struct _HL_NodeList HL_NodeList |
Represents a HDF5 file.
typedef enum HL_NodeMark HL_NodeMark |
This is an enumeration variable designed to keep track of the status of a given node.
This is an enumeration variable designed to identify the type of a given node.
enum HL_CompressionType |
enum HL_DataType |
enum HL_Debug |
Debug levels.
The levels are defined so that if HLHDF_INFO debug level is turned on, all higher levels will also be printed except HLHDF_SILENT which means turn of logging.
enum HL_NodeMark |
This is an enumeration variable designed to keep track of the status of a given node.
enum HL_Type |
This is an enumeration variable designed to identify the type of a given node.
herr_t addArrayToCompoundType | ( | hid_t | loc_id, |
const char * | name, | ||
size_t | offset, | ||
int | ndims, | ||
size_t * | dims, | ||
hid_t | type_id ) |
Adds an array attribute to a compound type.
[in] | loc_id | The type this attribute should be inserted in |
[in] | name | The name of the attribute |
[in] | offset | Offset of this attribute |
[in] | ndims | The rank of the array attribute (max 4) |
[in] | dims | The dimension of the array attribute |
[in] | type_id | The type of the array attribute |
herr_t addArrayToCompoundType_fmt | ( | hid_t | loc_id, |
const char * | name, | ||
size_t | offset, | ||
int | ndims, | ||
size_t * | dims, | ||
const char * | fmt ) |
Same as addArrayToCompoundType, but instead of a type as hid_t, the format is specified with a format specifier.
[in] | loc_id | The type this attribute should be inserted in |
[in] | name | The name of the attribute |
[in] | offset | Offset of this attribute |
[in] | ndims | The rank of the array attribute (max 4) |
[in] | dims | The dimension of the array attribute |
[in] | fmt | The type of the attribute. See format specifiers. Returns: <0 is failure, otherwise ok. |
herr_t addAttributeToCompoundType | ( | hid_t | loc_id, |
const char * | name, | ||
size_t | offset, | ||
hid_t | type_id ) |
Adds one attribute to a compound type.
[in] | loc_id | The type the attribute should be inserted in. |
[in] | name | The name of the member attribute |
[in] | offset | Offset of this attribute |
[in] | type_id | The type of the attribute |
herr_t addAttributeToCompoundType_fmt | ( | hid_t | loc_id, |
const char * | name, | ||
size_t | offset, | ||
const char * | fmt ) |
Same as addAttributeToCompoundType, but instead of a type as hid_t a format specifier is provided.
[in] | loc_id | The type the attribute should be inserted in. |
[in] | name | The name of the member attribute |
[in] | offset | Offset of this attribute |
[in] | fmt | The type of the attribute. See format specifiers. |
int addHL_CompoundTypeAttribute | ( | HL_CompoundTypeDescription * | typelist, |
HL_CompoundTypeAttribute * | attribute ) |
Adds a compound type attribute to the type description.
[in] | typelist | the descriptor that should get the new attribute |
[in] | attribute | the attribute that should be added |
HL_CompoundTypeDescription * copyHL_CompoundTypeDescription | ( | HL_CompoundTypeDescription * | descr | ) |
Copies the compound type descriptor.
[in] | descr | the descriptor that should be copied. |
hid_t createCompoundType | ( | size_t | size | ) |
Creates a new compound type.
[in] | size | The size of the compound type, usually sizeof(struct name). |
void freeHL_CompoundTypeAttribute | ( | HL_CompoundTypeAttribute * | attr | ) |
Frees one compound type attribute.
[in] | attr | the attribute that should be deallocated. |
void freeHL_CompoundTypeDescription | ( | HL_CompoundTypeDescription * | typelist | ) |
Frees the compound type, including all members.
[in] | typelist | the descriptor that should be deleted. |
void HL_disableErrorReporting | ( | void | ) |
Disables error reporting.
void HL_disableHdf5ErrorReporting | ( | void | ) |
Disables the HDF5 error reporting.
void HL_enableErrorReporting | ( | void | ) |
Enables error reporting.
void HL_enableHdf5ErrorReporting | ( | void | ) |
Enables the HDF5 error reporting.
void HL_init | ( | void | ) |
Initializes the HLHDF handler functions.
This always needs to be done before doing anything else when using HLHDF.
void HL_InitializeDebugger | ( | void | ) |
Initializes the debugger structure, must have been called before executing the code.
int HL_isErrorReportingEnabled | ( | void | ) |
Returns if error reporting is enabled or not.
int HL_isFormatSupported | ( | const char * | format | ) |
Verifies if the format name is supported by HLHDF.
Does not see string and compound as a supported format since they are not possible to determine without a hid.
[in] | format | the format name string |
int HL_isHDF5File | ( | const char * | filename | ) |
Verifies if the provided filename is a valid HDF5 file or not.
[in] | filename | the full path of the file to check |
void HL_setDebugFunction | ( | void(* | dbgfun )(char *filename, int lineno, HL_Debug lvl, const char *fmt,...) | ) |
Sets the debug function where the debug printouts should be routed.
[in] | dbgfun | The debug function. |
void HL_setDebugLevel | ( | HL_Debug | lvl | ) |
Sets the debug level.
[in] | lvl | the debug level. See HL_Debug. |
void HL_setDebugMode | ( | int | flag | ) |
Toggles the debug mode for HLHDF.
Possible values of flag are:
[in] | flag | the level of debugging |
void HL_setHdf5ErrorFunction | ( | void(* | hdf5fun )(unsigned n, const H5E_error_t *val) | ) |
Sets the HDF5 error reporting function.
[in] | hdf5fun | the HDF5 error reporting function |
int HL_sizeOfFormat | ( | const char * | format | ) |
Calculates the size in bytes of the provided format specifiers.
The exception is string and compound type since they needs to be analyzed to get the size.
[in] | format | The format specifier. |
HL_Compression * HLCompression_clone | ( | HL_Compression * | inv | ) |
Creates a copy of the provided HL_Compression instance.
[in] | inv | the instance to be cloned |
void HLCompression_free | ( | HL_Compression * | inv | ) |
Deallocates the HL_Compression instance.
inv | The instance that should be deallocated |
void HLCompression_init | ( | HL_Compression * | inv, |
HL_CompressionType | type ) |
Initializes a HL_Compressiosn instance.
[in] | inv | The compression object to be initialized |
[in] | type | the type of compression the object should be initialized with |
HL_Compression * HLCompression_new | ( | HL_CompressionType | type | ) |
Creates an allocated and initialized instance of HL_Compression.
[in] | type | the compression type to use |
void HLFileCreationProperty_free | ( | HL_FileCreationProperty * | prop | ) |
Deallocates the HL_FileCreationProperty instance.
[in] | prop | The property to be deallocated |
HL_FileCreationProperty * HLFileCreationProperty_new | ( | void | ) |
Creates a file property instance that can be passed on to createHlHdfFile when creating a HDF5 file.
int HLNode_commitType | ( | HL_Node * | node, |
hid_t | typid ) |
Will mark the node to be committed, only applicable on type nodes.
[in] | node | the node that should be commited |
[in] | typid | the HDF5 type identifier |
Copies an HL_Node.
[in] | node | the node that should be copied |
void HLNode_free | ( | HL_Node * | node | ) |
Deallocates the provided node.
[in] | node | the node that should be deallocated |
HL_Node * HLNode_new | ( | const char * | name | ) |
Creates a new HL_Node instance.
[in] | name | the name of this node, should be fully qualified name. I.e. /a/b/c |
HL_Node * HLNode_newAttribute | ( | const char * | name | ) |
Creates an empty attribute HL_Node of type HL_Type::ATTRIBUTE_ID.
[in] | name | the fully qualified name |
HL_Node * HLNode_newDataset | ( | const char * | name | ) |
Creates an empty data set HL_Node of type HL_Type::DATASET_ID.
[in] | name | the fully qualified name |
HL_Node * HLNode_newDatatype | ( | const char * | name | ) |
Creates an empty data type HL_Node of type HL_Type::TYPE_ID.
[in] | name | the fully qualified name |
HL_Node * HLNode_newGroup | ( | const char * | name | ) |
Creates an empty group HL_Node of type HL_Type::GROUP_ID.
[in] | name | the fully qualified name |
HL_Node * HLNode_newReference | ( | const char * | name | ) |
Creates an empty reference HL_Node of type HL_Type::REFERENCE_ID.
[in] | name | the fully qualified name |
int HLNode_setArrayValue | ( | HL_Node * | node, |
size_t | sz, | ||
int | ndims, | ||
hsize_t * | dims, | ||
unsigned char * | value, | ||
const char * | fmt, | ||
hid_t | typid ) |
Sets an array value in the specified node.
[in] | node | the node that should get its value set |
[in] | sz | the size of the type |
[in] | ndims | the rank |
[in] | dims | the dimension |
[in] | value | the data buffer |
[in] | fmt | the format specifier, |
[in] | typid | if a custom made type should be used for writing the data, otherwise use -1. |
int HLNode_setScalarValue | ( | HL_Node * | node, |
size_t | sz, | ||
unsigned char * | value, | ||
const char * | fmt, | ||
hid_t | typid ) |
Sets a scalar value in the specified node.
[in] | node | the node that should get its value set. |
[in] | sz | the size of the data |
[in] | value | the data |
[in] | fmt | the format specifier, |
[in] | typid | if a custom made type should be used for writing the data, otherwise use -1. |
int HLNodeList_addNode | ( | HL_NodeList * | nodelist, |
HL_Node * | node ) |
Adds a node to the nodelist.
[in] | nodelist | the nodelist that should get a node added |
[in] | node | the node that should be added to the node list |
int HLNodeList_deselectNode | ( | HL_NodeList * | nodelist, |
const char * | name ) |
De-selects the node named 'name' to be retrived when fetching data from the nodelist file.
[in] | nodelist | the node list |
[in] | name | the name that should be deselected |
int HLNodeList_fetchMarkedNodes | ( | HL_NodeList * | nodelist | ) |
Fills all nodes (marked as select) with data.
[in] | nodelist | the node list |
HL_Node * HLNodeList_fetchNode | ( | HL_NodeList * | nodelist, |
const char * | name ) |
Behaves as a combination of HLNodeList_selectNode()/fetch()/getNode().
[in] | nodelist | the node list |
[in] | name | the name of the node that should be fetched. |
HL_CompoundTypeDescription * HLNodeList_findCompoundDescription | ( | HL_NodeList * | nodelist, |
unsigned long | objno0, | ||
unsigned long | objno1 ) |
Searches the nodelist for any type node, that has got the same object id as objno0 and objno1.
[in] | nodelist | the nodelist that should be searched |
[in] | objno0 | identifier 0 |
[in] | objno1 | identifier 1 |
void HLNodeList_free | ( | HL_NodeList * | nodelist | ) |
Releasing all resources associated with this node list including the node list itself.
[in] | nodelist | the list that should be released. |
HL_Node * HLNodeList_getNodeByName | ( | HL_NodeList * | nodelist, |
const char * | nodeName ) |
Locates a node called nodeName in the nodelist and returns a pointer to this node.
I.e. Do not delete it!
[in] | nodelist | the nodelist that should be searched in |
[in] | nodeName | the name of the node that should be located |
HL_NodeList * HLNodeList_new | ( | void | ) |
Creates a new HL_NodeList instance.
HL_NodeList * HLNodeList_read | ( | const char * | filename | ) |
Reads an HDF5 file with name filename from the root group ("/") and downwards.
This function will not fetch the actual data but will only read the structure. Use selectAll/selectAllNodes and fetchMarkedNodes to retrieve the data.
[in] | filename | the name of the HDF5 file |
HL_NodeList * HLNodeList_readFrom | ( | const char * | filename, |
const char * | fromPath ) |
Reads an HDF5 file with name filename from the group fromPath and downwards.
This function will not fetch the actual data but will only read the structure. Use selectAll/selectAllNodes and fetchMarkedNodes to retrieve the data.
[in] | filename | the name of the HDF5 file |
[in] | fromPath | the path from where the file should be read. |
int HLNodeList_selectAllMetadataNodes | ( | HL_NodeList * | nodelist | ) |
Selects all metadata including metadata about datasets but will exclude data for datasets.
VOLATILE: Do not attempt to access dataset arrays after calling this.
[in] | nodelist | the node list |
int HLNodeList_selectAllNodes | ( | HL_NodeList * | nodelist | ) |
Marks all nodes in the nodelist for retrival.
[in] | nodelist | the node list |
int HLNodeList_selectMetadataNodes | ( | HL_NodeList * | nodelist | ) |
Selects all metadata nodes in the nodelist to be fetched, ie.
dataset attributes but no dataset arrays or arrays. VOLATILE: Do not attempt to access dataset arrays after calling this.
[in] | nodelist | the node list |
int HLNodeList_selectNode | ( | HL_NodeList * | nodelist, |
const char * | name ) |
Selects the node named 'name' from which to fetch data.
[in] | nodelist | the nodelist where the node named name should be marked for select |
[in] | name | the fully qualified name of the node that should be selected. |
int HLNodeList_selectOnlyDatasetNodes | ( | HL_NodeList * | nodelist | ) |
Only select data set nodes for fetching.
This is useful if for example wanting to first read metadata. Then depending on content fetch dataset nodes.
[in] | nodelist | the node list |
int HLNodeList_update | ( | HL_NodeList * | nodelist, |
HL_Compression * | compr ) |
Updates a HDF5 file from a nodelist.
[in] | nodelist | the node list to update |
[in] | compr | the wanted compression type and level |
int HLNodeList_write | ( | HL_NodeList * | nodelist, |
HL_FileCreationProperty * | property, | ||
HL_Compression * | compr ) |
Writes a HDF5 file from a nodelist with the specified file properties and compression level/type.
[in] | nodelist | the node list to write |
[in] | property | the file creation properties |
[in] | compr | the wanted compression type and level |
HL_CompoundTypeAttribute * newHL_CompoundTypeAttribute | ( | char * | attrname, |
size_t | offset, | ||
const char * | format, | ||
size_t | size, | ||
int | ndims, | ||
size_t * | dims ) |
Creates a compound attribute member node.
[in] | attrname | The name of this attribute |
[in] | offset | the offset in the structure for this member (See HOFFSET in HDF5 documentation) |
[in] | format | Format specifier. |
[in] | size | The size of this data type |
[in] | ndims | The number of dimensions |
[in] | dims | The dimensions |
HL_CompoundTypeDescription * newHL_CompoundTypeDescription | ( | void | ) |
Creates a compound type description list.