#include <H5Tpublic.h>
#include <H5Dpublic.h>
#include <H5Gpublic.h>
#include <H5Spublic.h>
#include <H5Ppublic.h>
#include "mhdf.h"
#include "util.h"
#include "file-handle.h"
#include "status.h"
#include "names-and-paths.h"
Go to the source code of this file.
Enumerations | |
enum | SetMetaCol { CONTENT = 0 , CHILDREN = 1 , PARENTS = 2 , FLAGS = 3 } |
Functions | |
int | mhdf_haveSets (mhdf_FileHandle file, int *have_data, int *have_child, int *have_parent, mhdf_Status *status) |
Check if file contains any sets. More... | |
hid_t | mhdf_createSetMeta (mhdf_FileHandle file, long num_sets, long *first_id_out, mhdf_Status *status) |
Create table holding list of meshsets and their properties. More... | |
hid_t | mhdf_openSetMeta (mhdf_FileHandle file, long *num_sets, long *first_id_out, mhdf_Status *status) |
Open table holding list of meshsets and their properties. More... | |
hid_t | mhdf_openSetMetaSimple (mhdf_FileHandle file, mhdf_Status *status) |
static int | mhdf_readwriteSetMeta (hid_t table_id, int read, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_readSetMeta (hid_t table_id, long offset, long count, hid_t type, void *data, mhdf_Status *status) |
Read list of sets and meta-information about sets. More... | |
void | mhdf_readSetMetaWithOpt (hid_t table_id, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_writeSetMeta (hid_t table_id, long offset, long count, hid_t type, const void *data, mhdf_Status *status) |
Write list of sets and meta-information about sets. More... | |
void | mhdf_writeSetMetaWithOpt (hid_t table_id, long offset, long count, hid_t type, const void *data, hid_t prop, mhdf_Status *status) |
static int | mhdf_readSetMetaColumn (hid_t table_id, enum SetMetaCol column, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_readSetFlags (hid_t table_id, long offset, long count, hid_t type, void *data, mhdf_Status *status) |
Read only the flags portion of the set description table. More... | |
void | mhdf_readSetFlagsWithOpt (hid_t table_id, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_readSetContentEndIndices (hid_t table_id, long offset, long count, hid_t type, void *data, mhdf_Status *status) |
Read only the content end indices portion of the set description table. More... | |
void | mhdf_readSetContentEndIndicesWithOpt (hid_t table_id, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_readSetChildEndIndices (hid_t table_id, long offset, long count, hid_t type, void *data, mhdf_Status *status) |
Read only the child end indices portion of the set description table. More... | |
void | mhdf_readSetChildEndIndicesWithOpt (hid_t table_id, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_readSetParentEndIndices (hid_t table_id, long offset, long count, hid_t type, void *data, mhdf_Status *status) |
Read only the parent end indices portion of the set description table. More... | |
void | mhdf_readSetParentEndIndicesWithOpt (hid_t table_id, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
hid_t | mhdf_createSetData (mhdf_FileHandle file_handle, long data_list_size, mhdf_Status *status) |
Create file object to hold list of meshset contents. More... | |
hid_t | mhdf_openSetData (mhdf_FileHandle file_handle, long *data_list_size_out, mhdf_Status *status) |
Open the file object for the meshset contents. More... | |
void | mhdf_writeSetData (hid_t table_id, long offset, long count, hid_t type, const void *data, mhdf_Status *status) |
Write set contents. More... | |
void | mhdf_writeSetDataWithOpt (hid_t table_id, long offset, long count, hid_t type, const void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_readSetData (hid_t table_id, long offset, long count, hid_t type, void *data, mhdf_Status *status) |
Read set contents. More... | |
void | mhdf_readSetDataWithOpt (hid_t table_id, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
hid_t | mhdf_createSetChildren (mhdf_FileHandle file_handle, long child_list_size, mhdf_Status *status) |
Create file object for storing the set child list. More... | |
hid_t | mhdf_openSetChildren (mhdf_FileHandle file_handle, long *child_list_size, mhdf_Status *status) |
Open the file object containing the set child list. More... | |
hid_t | mhdf_createSetParents (mhdf_FileHandle file_handle, long parent_list_size, mhdf_Status *status) |
Create file object for storing the set parent list. More... | |
hid_t | mhdf_openSetParents (mhdf_FileHandle file_handle, long *parent_list_size, mhdf_Status *status) |
Open the file object containing the set parent list. More... | |
void | mhdf_writeSetParentsChildren (hid_t table_id, long offset, long count, hid_t type, const void *data, mhdf_Status *status) |
Write set parent/child list. More... | |
void | mhdf_writeSetParentsChildrenWithOpt (hid_t table_id, long offset, long count, hid_t type, const void *data, hid_t prop, mhdf_Status *status) |
void | mhdf_readSetParentsChildren (hid_t table_id, long offset, long count, hid_t type, void *data, mhdf_Status *status) |
Read set parent/child list. More... | |
void | mhdf_readSetParentsChildrenWithOpt (hid_t table_id, long offset, long count, hid_t type, void *data, hid_t prop, mhdf_Status *status) |
enum SetMetaCol |
hid_t mhdf_createSetChildren | ( | mhdf_FileHandle | file_handle, |
long | child_list_size, | ||
mhdf_Status * | status | ||
) |
Create file object for storing the set child list.
Create a data group for the list of set children.
The format of this data is the concatenation of the lists of global IDs of child sets for each set. The order of the sets and the number of children for each set is contained in the set meta table. (See mhdf_createSetMeta ).
file_handle | The file |
child_list_size | The total length of the data (the sum of the number of children for each set.) |
status | Passed back status of API call. |
Definition at line 718 of file sets.c.
References API_BEGIN, API_END_H, dim, struct_FileHandle::hdf_handle, struct_FileHandle::id_type, mhdf_check_valid_file(), mhdf_create_table(), mhdf_setFail(), and SET_CHILD_PATH.
Referenced by moab::WriteHDF5::create_set_tables().
hid_t mhdf_createSetData | ( | mhdf_FileHandle | file_handle, |
long | data_list_size, | ||
mhdf_Status * | status | ||
) |
Create file object to hold list of meshset contents.
Create set contents data object. The format of this data is a vector of integer values which is the concatenation of the contents list for all the meshsets. The length and format of the data for each set is stored in the set meta table. See mhdf_createSetMeta and mhdf_SET_RANGE_BIT for a description of that data.
file_handle | The file. |
data_list_size | The total length (number of integer values) to be written for all the sets. |
status | Passed back status of API call. |
Definition at line 635 of file sets.c.
References API_BEGIN, API_END_H, dim, struct_FileHandle::hdf_handle, struct_FileHandle::id_type, mhdf_check_valid_file(), mhdf_create_table(), mhdf_setFail(), and SET_DATA_PATH.
Referenced by moab::WriteHDF5::create_set_tables().
hid_t mhdf_createSetMeta | ( | mhdf_FileHandle | file_handle, |
long | num_sets, | ||
long * | first_set_id_out, | ||
mhdf_Status * | status | ||
) |
Create table holding list of meshsets and their properties.
The set table contains description of sets, but not contents or children. The table is a n x 4
matrix of values.
One row for each of n
sets. Each row contains the end index for the set in the contents table, the end index for the set in the children table, the end index for the set in the parents table, and the set flags, respectively. The mhdf_SET_RANGE_BIT bit in the flags specifies the format of the contents list for each set. See a description of the mhdf_SET_RANGE_BIT flag for a description of the two possible data formats. The index values in the first two columns of the table are the index of the last value for the set in the corresponding contents and children lists. The first index is always one greater than the last index for the previous set in the table. The first index of the first set in the table is implicitly zero. A special value of -1 in the appropriate column should be used to indicate that the first set contains no contents or has no children. For any other set, if the last index for the set is the same as that of the previous set, it has no data in the corresponding list.
file_handle | The file. |
num_sets | The number of sets in the table. |
first_set_id_out | The global ID that will be assigned to the first set in the table. All subsequent sets in the table will be assigned sequential global IDs. |
status | Passed back status of API call. |
Definition at line 109 of file sets.c.
References API_BEGIN, API_END_H, struct_FileHandle::hdf_handle, struct_FileHandle::max_id, mhdf_check_valid_file(), mhdf_create_scalar_attrib(), mhdf_create_table(), MHDF_INDEX_TYPE, mhdf_setOkay(), mhdf_write_max_id(), struct_FileHandle::open_handle_count, SET_META_PATH, and START_ID_ATTRIB.
Referenced by moab::WriteHDF5::create_set_meta().
hid_t mhdf_createSetParents | ( | mhdf_FileHandle | file_handle, |
long | parent_list_size, | ||
mhdf_Status * | status | ||
) |
Create file object for storing the set parent list.
Create a data group for the list of set parents.
The format of this data is the concatenation of the lists of global IDs of parent sets for each set. The order of the sets and the number of parents for each set is contained in the set meta table. (See mhdf_createSetMeta ).
file_handle | The file |
parent_list_size | The total length of the data (the sum of the number of parents for each set.) |
status | Passed back status of API call. |
Definition at line 763 of file sets.c.
References API_BEGIN, API_END_H, dim, struct_FileHandle::hdf_handle, struct_FileHandle::id_type, mhdf_check_valid_file(), mhdf_create_table(), mhdf_setFail(), and SET_PARENT_PATH.
Referenced by moab::WriteHDF5::create_set_tables().
int mhdf_haveSets | ( | mhdf_FileHandle | file, |
int * | have_data, | ||
int * | have_child, | ||
int * | have_parent, | ||
mhdf_Status * | status | ||
) |
Check if file contains any sets.
MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.
Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Definition at line 27 of file sets.c.
References API_BEGIN, API_END, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_is_in_group(), mhdf_setFail(), mhdf_setOkay(), ROOT_GROUP, SET_CHILD_NAME, SET_DATA_NAME, SET_GROUP, SET_GROUP_NAME, SET_META_NAME, and SET_PARENT_NAME.
Referenced by mhdf_getFileSummary().
hid_t mhdf_openSetChildren | ( | mhdf_FileHandle | file_handle, |
long * | child_list_size, | ||
mhdf_Status * | status | ||
) |
Open the file object containing the set child list.
Open the data group containing the list of set children.
See mhdf_createSetChildren and mhdf_createSetMeta for a description of this data.
file_handle | The file |
child_list_size | The total length of the data (the sum of the number of children for each set.) |
status | Passed back status of API call. |
Definition at line 740 of file sets.c.
References API_BEGIN, API_END_H, dim, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_open_table(), mhdf_setFail(), and SET_CHILD_PATH.
Referenced by check_valid_sets(), moab::ReadHDF5::read_set_ids_recursive(), moab::ReadHDF5::read_sets(), and moab::WriteHDF5::write_sets().
hid_t mhdf_openSetData | ( | mhdf_FileHandle | file_handle, |
long * | data_list_size_out, | ||
mhdf_Status * | status | ||
) |
Open the file object for the meshset contents.
Open set contents data object. The format of this data is a vector of integer values which is the concatenation of the contents list for all the meshsets. The length and format of the data for each set is stored in the set meta table. See mhdf_createSetMeta and mhdf_SET_RANGE_BIT for a description of that data.
file_handle | The file. |
data_list_size_out | The length of the table. |
status | Passed back status of API call. |
Definition at line 657 of file sets.c.
References API_BEGIN, API_END_H, dim, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_open_table(), mhdf_setFail(), and SET_DATA_PATH.
Referenced by check_valid_sets(), moab::ReadHDF5::find_sets_containing(), moab::ReadHDF5::get_set_contents(), moab::ReadHDF5::read_set_ids_recursive(), moab::ReadHDF5::read_sets(), and moab::WriteHDF5::write_sets().
hid_t mhdf_openSetMeta | ( | mhdf_FileHandle | file_handle, |
long * | num_sets_out, | ||
long * | first_set_id_out, | ||
mhdf_Status * | status | ||
) |
Open table holding list of meshsets and their properties.
Open set list.
See mhdf_createSetMeta or mhdf Meshset data for a description of this data.
file_handle | The file. |
num_sets_out | The number of sets in the table. |
first_set_id_out | The global ID that will of the first set in the table. All subsequent sets in the table have sequential global IDs. |
status | Passed back status of API call. |
Definition at line 145 of file sets.c.
References API_BEGIN, API_END_H, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_open_table2(), mhdf_setFail(), mhdf_setOkay(), struct_FileHandle::open_handle_count, and SET_META_PATH.
Referenced by check_valid_sets(), mhdf_getFileSummary(), and moab::WriteHDF5::write_sets().
hid_t mhdf_openSetMetaSimple | ( | mhdf_FileHandle | file, |
mhdf_Status * | status | ||
) |
Definition at line 174 of file sets.c.
References API_BEGIN, API_END_H, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_open_table_simple(), mhdf_setOkay(), struct_FileHandle::open_handle_count, and SET_META_PATH.
Referenced by moab::ReadHDF5::read_all_set_meta().
hid_t mhdf_openSetParents | ( | mhdf_FileHandle | file_handle, |
long * | parent_list_size, | ||
mhdf_Status * | status | ||
) |
Open the file object containing the set parent list.
Open the data group containing the list of set parents.
See mhdf_createSetParents and mhdf_createSetMeta for a description of this data.
file_handle | The file |
parent_list_size | The total length of the data (the sum of the number of parents for each set.) |
status | Passed back status of API call. |
Definition at line 785 of file sets.c.
References API_BEGIN, API_END_H, dim, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_open_table(), mhdf_setFail(), and SET_PARENT_PATH.
Referenced by check_valid_sets(), moab::ReadHDF5::read_sets(), and moab::WriteHDF5::write_sets().
void mhdf_readSetChildEndIndices | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | end_indices_out, | ||
mhdf_Status * | status | ||
) |
Read only the child end indices portion of the set description table.
For each set, read the last index of that set's data in the set children table.
NOTE: This is a signed value. Any sets w/out contents that occur first in the list will have an end index of -1.
data_handle | The handle returned from mdhf_createSetMeta or mhdf_openSetMeta |
offset | The offset (set index) at which to begin reading. |
count | The number of values (number of sets) to read. |
hdf_integer_type | The integer type of the input array 'set_flag_data'. |
end_indices_out | Array of indices. |
status | Location at which to store status of API call. |
Definition at line 592 of file sets.c.
References API_BEGIN, API_END, CHILDREN, and mhdf_readSetMetaColumn().
Referenced by check_valid_parents_children().
void mhdf_readSetChildEndIndicesWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_readSetContentEndIndices | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | end_indices_out, | ||
mhdf_Status * | status | ||
) |
Read only the content end indices portion of the set description table.
For each set, read the last index of that set's data in the set contents table.
NOTE: This is a signed value. Any sets w/out contents that occur first in the list will have an end index of -1.
data_handle | The handle returned from mdhf_createSetMeta or mhdf_openSetMeta |
offset | The offset (set index) at which to begin reading. |
count | The number of values (number of sets) to read. |
hdf_integer_type | The integer type of the input array 'set_flag_data'. |
end_indices_out | Array of indices. |
status | Location at which to store status of API call. |
Definition at line 568 of file sets.c.
References API_BEGIN, API_END, CONTENT, and mhdf_readSetMetaColumn().
Referenced by check_valid_set_contents().
void mhdf_readSetContentEndIndicesWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_readSetData | ( | hid_t | set_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | set_data, | ||
mhdf_Status * | status | ||
) |
Read set contents.
Read data specifying entities contained in sets. The format of this data is a vector of integer values which is the concatenation of the contents list for all the meshsets. The length and format of the data for each set is stored in the set meta table. See mhdf_createSetMeta and mhdf_SET_RANGE_BIT for a description of that data.
set_handle | The handle returned from mhdf_createSetData or mhdf_openSetData . |
offset | The position at which to read from the integer vector. |
count | The number of values to read from the data vector. |
hdf_integer_type | The type of the integer data in set_data . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
set_data | A pointer to memory at which to store the read data. |
status | Passed back status of API call. |
Definition at line 699 of file sets.c.
References API_BEGIN, API_END, and mhdf_read_data().
Referenced by check_valid_set_contents(), and moab::ReadHDF5::find_sets_containing().
void mhdf_readSetDataWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 705 of file sets.c.
References API_BEGIN, API_END, and mhdf_read_data().
Referenced by moab::ReadHDF5::find_sets_containing().
void mhdf_readSetFlags | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | set_flag_data, | ||
mhdf_Status * | status | ||
) |
Read only the flags portion of the set description table.
Read flags for each set from the set description table. See mhdf_createSetMeta for a description of this data.
data_handle | The handle returned from mdhf_createSetMeta or mhdf_openSetMeta |
offset | The offset (set index) at which to begin reading. |
count | The number of values (number of sets) to read. |
hdf_integer_type | The integer type of the input array 'set_flag_data'. |
set_flag_data | Array of integers. |
status | Location at which to store status of API call. |
Definition at line 549 of file sets.c.
References API_BEGIN, API_END, FLAGS, and mhdf_readSetMetaColumn().
Referenced by check_valid_set_contents().
void mhdf_readSetFlagsWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_readSetMeta | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | set_desc_data, | ||
mhdf_Status * | status | ||
) |
Read list of sets and meta-information about sets.
Read set descriptions. See mhdf_createSetMeta or mhdf Meshset data for a description of this data.
data_handle | The handle returned from mhdf_createSetMeta or mhdf_openSetMeta. |
offset | The offset (set index) to begin reading at. |
count | The number of rows (sets, integer triples) to read. |
hdf_integer_type | The type of the integer data in set_desc_data . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
status | Passed back status of API call. |
set_desc_data | The memory location at which to write the data. |
Definition at line 367 of file sets.c.
References API_BEGIN, API_END, and mhdf_readwriteSetMeta().
|
static |
Definition at line 413 of file sets.c.
References FLAGS, mhdf_setFail(), mhdf_setOkay(), and PARENTS.
Referenced by mhdf_readSetChildEndIndices(), mhdf_readSetChildEndIndicesWithOpt(), mhdf_readSetContentEndIndices(), mhdf_readSetContentEndIndicesWithOpt(), mhdf_readSetFlags(), mhdf_readSetFlagsWithOpt(), mhdf_readSetParentEndIndices(), and mhdf_readSetParentEndIndicesWithOpt().
void mhdf_readSetMetaWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 373 of file sets.c.
References API_BEGIN, API_END, and mhdf_readwriteSetMeta().
Referenced by moab::ReadHDF5::read_all_set_meta().
void mhdf_readSetParentEndIndices | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | end_indices_out, | ||
mhdf_Status * | status | ||
) |
Read only the parent end indices portion of the set description table.
For each set, read the last index of that set's data in the set parents table.
NOTE: This is a signed value. Any sets w/out contents that occur first in the list will have an end index of -1.
data_handle | The handle returned from mdhf_createSetMeta or mhdf_openSetMeta |
offset | The offset (set index) at which to begin reading. |
count | The number of values (number of sets) to read. |
hdf_integer_type | The integer type of the input array 'set_flag_data'. |
end_indices_out | Array of indices. |
status | Location at which to store status of API call. |
Definition at line 611 of file sets.c.
References API_BEGIN, API_END, mhdf_readSetMetaColumn(), and PARENTS.
Referenced by check_valid_parents_children().
void mhdf_readSetParentEndIndicesWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_readSetParentsChildren | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | id_list, | ||
mhdf_Status * | status | ||
) |
Read set parent/child list.
Read from the list of parent or child IDs for sets. See mhdf_createSetChildren and mhdf_createSetMeta for a description of this data.
data_handle | The value returned from mhdf_createSetChildren or mhdf_openSetChildren. |
offset | The offset into the list of global IDs. |
count | The number of global IDs to read. |
hdf_integer_type | The type of the integer data in child_id_list . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
id_list | Pointer to memory in which to the read data. |
status | Passed back status of API call. |
Definition at line 832 of file sets.c.
References API_BEGIN, API_END, and mhdf_read_data().
Referenced by check_valid_parents_children().
void mhdf_readSetParentsChildrenWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
|
static |
Definition at line 191 of file sets.c.
References mhdf_setFail(), and mhdf_setOkay().
Referenced by mhdf_readSetMeta(), mhdf_readSetMetaWithOpt(), mhdf_writeSetMeta(), and mhdf_writeSetMetaWithOpt().
void mhdf_writeSetData | ( | hid_t | set_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | set_data, | ||
mhdf_Status * | status | ||
) |
Write set contents.
Write data specifying entities contained in sets. The format of this data is a vector of integer values which is the concatenation of the contents list for all the meshsets. The length and format of the data for each set is stored in the set meta table. See mhdf_createSetMeta and mhdf_SET_RANGE_BIT for a description of that data.
set_handle | The handle returned from mhdf_createSetData or mhdf_openSetData . |
offset | The position at which to write into the integer vector. |
count | The number of values to write into the data vector. |
hdf_integer_type | The type of the integer data in set_data . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
set_data | The data to write. |
status | Passed back status of API call. |
Definition at line 680 of file sets.c.
References API_BEGIN, API_END, and mhdf_write_data().
void mhdf_writeSetDataWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
const void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 686 of file sets.c.
References API_BEGIN, API_END, and mhdf_write_data().
Referenced by moab::WriteHDF5::write_set_data().
void mhdf_writeSetMeta | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | set_desc_data, | ||
mhdf_Status * | status | ||
) |
Write list of sets and meta-information about sets.
Write set descriptions. See mhdf_createSetMeta or mhdf Meshset data for a description of the data format.
data_handle | The handle returned from mhdf_createSetMeta or mhdf_openSetMeta. |
offset | The offset (set index) to begin writing at. |
count | The number of rows (sets, integer triples) to write. |
hdf_integer_type | The type of the integer data in set_desc_data . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
set_desc_data | The data to write. |
status | Passed back status of API call. |
Definition at line 386 of file sets.c.
References API_BEGIN, API_END, and mhdf_readwriteSetMeta().
void mhdf_writeSetMetaWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
const void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 392 of file sets.c.
References API_BEGIN, API_END, and mhdf_readwriteSetMeta().
Referenced by moab::WriteHDF5::write_sets().
void mhdf_writeSetParentsChildren | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | id_list, | ||
mhdf_Status * | status | ||
) |
Write set parent/child list.
Write the list of parent or child IDs for sets. See mhdf_createSetChildren and mhdf_createSetMeta for a description of this data.
data_handle | The value returned from mhdf_createSetChildren or mhdf_openSetChildren. |
offset | The offset into the list of global IDs. |
count | The number of global IDs to write. |
hdf_integer_type | The type of the integer data in child_id_list . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
id_list | The data to write. |
status | Passed back status of API call. |
Definition at line 808 of file sets.c.
References API_BEGIN, API_END, and mhdf_write_data().
void mhdf_writeSetParentsChildrenWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
hid_t | type, | ||
const void * | data, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 819 of file sets.c.
References API_BEGIN, API_END, and mhdf_write_data().
Referenced by moab::WriteHDF5::write_set_data().