Field3D
|
Contains utility functions and classes for Hdf5 files. More...
Classes | |
class | H5Base |
Base class for all scoped Hdf5 util classes. More... | |
class | H5ScopedAget_space |
Scoped object - opens an attribute data space on creation and closes it on destruction. More... | |
class | H5ScopedAget_type |
Scoped object - opens an attribute data type on creation and closes it on destruction. More... | |
class | H5ScopedAopen |
Scoped object - Opens attribute by name and closes it on destruction. More... | |
class | H5ScopedAopenIdx |
Scoped object - Opens attribute by index and closes it on destruction. More... | |
class | H5ScopedDcreate |
Scoped object - creates a dataset on creation and closes it on destruction. More... | |
class | H5ScopedDget_space |
Scoped object - opens a dataset on creation and closes it on destruction. More... | |
class | H5ScopedDget_type |
Scoped object - opens a dataset on creation and closes it on destruction. More... | |
class | H5ScopedDopen |
Scoped object - opens a dataset on creation and closes it on destruction. More... | |
class | H5ScopedGcreate |
Scoped object - creates a group on creation and closes it on destruction. More... | |
class | H5ScopedGopen |
Scoped object - opens a group on creation and closes it on destruction. More... | |
class | H5ScopedScreate |
Scoped object - creates a dataspace on creation and closes it on destruction. More... | |
class | H5ScopedTget_native_type |
Scoped object - opens an native type id on creation and closes it on destruction. More... | |
Functions | |
FIELD3D_API bool | checkHdf5Gzip () |
Checks whether gzip is available in the current hdf5 library. More... | |
bool | readAttribute (hid_t location, const string &attrName, string &value) |
bool | readAttribute (hid_t location, const string &attrName, unsigned int attrSize, int &value) |
bool | readAttribute (hid_t location, const string &attrName, unsigned int attrSize, float &value) |
bool | readAttribute (hid_t location, const string &attrName, unsigned int attrSize, double &value) |
bool | readAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, int &value) |
bool | readAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, float &value) |
bool | readAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, double &value) |
bool | writeAttribute (hid_t location, const string &attrName, const string &value) |
bool | writeAttribute (hid_t location, const string &attrName, unsigned int attrSize, const int &value) |
bool | writeAttribute (hid_t location, const string &attrName, unsigned int attrSize, const float &value) |
bool | writeAttribute (hid_t location, const string &attrName, unsigned int attrSize, const double &value) |
bool | writeAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, const int &value) |
bool | writeAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, const float &value) |
bool | writeAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, const double &value) |
Read/write simple data to hdf5 location | |
template<typename T > | |
void | writeSimpleData (hid_t location, const std::string &name, const std::vector< T > &data) |
Writes a simple linear data set to the given location. More... | |
template<typename T > | |
void | readSimpleData (hid_t location, const std::string &name, std::vector< T > &data) |
Reads a simple linear data set from the given location. More... | |
Attribute reading | |
FIELD3D_API bool | readAttribute (hid_t location, const std::string &attrName, std::string &value) |
Reads a string attribute. More... | |
FIELD3D_API bool | readAttribute (hid_t location, const std::string &attrName, unsigned int attrSize, int &value) |
Reads an int attribute of arbitrary size. More... | |
FIELD3D_API bool | readAttribute (hid_t location, const std::string &attrName, unsigned int attrSize, float &value) |
Reads a float attribute of arbitrary size. More... | |
FIELD3D_API bool | readAttribute (hid_t location, const std::string &attrName, unsigned int attrSize, double &value) |
Reads a double attribute of arbitrary size. More... | |
FIELD3D_API bool | readAttribute (hid_t location, const std::string &attrName, std::vector< unsigned int > &attrSize, int &value) |
Reads a int attribute of arbitrary size and rank. More... | |
FIELD3D_API bool | readAttribute (hid_t location, const std::string &attrName, std::vector< unsigned int > &attrSize, float &value) |
Reads a float attribute of arbitrary size and rank. More... | |
FIELD3D_API bool | readAttribute (hid_t location, const std::string &attrName, std::vector< unsigned int > &attrSize, double &value) |
Reads a double attribute of arbitrary size and rank. More... | |
Attribute writing | |
FIELD3D_API bool | writeAttribute (hid_t location, const std::string &attrName, const std::string &value) |
Writes a string attribute. More... | |
FIELD3D_API bool | writeAttribute (hid_t location, const std::string &attrName, unsigned int attrSize, const int &value) |
Writes an int attribute of arbitrary size. More... | |
FIELD3D_API bool | writeAttribute (hid_t location, const std::string &attrName, unsigned int attrSize, const float &value) |
Writes a float attribute of arbitrary size. More... | |
FIELD3D_API bool | writeAttribute (hid_t location, const std::string &attrName, unsigned int attrSize, const double &value) |
Writes a double attribute of arbitrary size. More... | |
FIELD3D_API bool | writeAttribute (hid_t location, const std::string &attrName, std::vector< unsigned int > &attrSize, const int &value) |
Writes a float attribute of arbitrary size and rank. More... | |
FIELD3D_API bool | writeAttribute (hid_t location, const std::string &attrName, std::vector< unsigned int > &attrSize, const float &value) |
Writes a float attribute of arbitrary size and rank. More... | |
FIELD3D_API bool | writeAttribute (hid_t location, const std::string &attrName, std::vector< unsigned int > &attrSize, const double &value) |
Writes a double attribute of arbitrary size and rank. More... | |
Contains utility functions and classes for Hdf5 files.
bool Hdf5Util::readAttribute | ( | hid_t | location, |
const string & | attrName, | ||
string & | value | ||
) |
bool Hdf5Util::readAttribute | ( | hid_t | location, |
const string & | attrName, | ||
unsigned int | attrSize, | ||
int & | value | ||
) |
bool Hdf5Util::readAttribute | ( | hid_t | location, |
const string & | attrName, | ||
unsigned int | attrSize, | ||
float & | value | ||
) |
bool Hdf5Util::readAttribute | ( | hid_t | location, |
const string & | attrName, | ||
unsigned int | attrSize, | ||
double & | value | ||
) |
bool Hdf5Util::readAttribute | ( | hid_t | location, |
const string & | attrName, | ||
std::vector< unsigned int > & | attrSize, | ||
int & | value | ||
) |
bool Hdf5Util::readAttribute | ( | hid_t | location, |
const string & | attrName, | ||
std::vector< unsigned int > & | attrSize, | ||
float & | value | ||
) |
bool Hdf5Util::readAttribute | ( | hid_t | location, |
const string & | attrName, | ||
std::vector< unsigned int > & | attrSize, | ||
double & | value | ||
) |
bool Hdf5Util::writeAttribute | ( | hid_t | location, |
const string & | attrName, | ||
const string & | value | ||
) |
Definition at line 385 of file Hdf5Util.cpp.
References g_hdf5Mutex, Msg::print(), and Msg::SevWarning.
bool Hdf5Util::writeAttribute | ( | hid_t | location, |
const string & | attrName, | ||
unsigned int | attrSize, | ||
const int & | value | ||
) |
Definition at line 438 of file Hdf5Util.cpp.
References g_hdf5Mutex, Msg::print(), and Msg::SevWarning.
bool Hdf5Util::writeAttribute | ( | hid_t | location, |
const string & | attrName, | ||
unsigned int | attrSize, | ||
const float & | value | ||
) |
Definition at line 481 of file Hdf5Util.cpp.
References g_hdf5Mutex, Msg::print(), and Msg::SevWarning.
bool Hdf5Util::writeAttribute | ( | hid_t | location, |
const string & | attrName, | ||
unsigned int | attrSize, | ||
const double & | value | ||
) |
Definition at line 524 of file Hdf5Util.cpp.
References g_hdf5Mutex, Msg::print(), and Msg::SevWarning.
bool Hdf5Util::writeAttribute | ( | hid_t | location, |
const string & | attrName, | ||
std::vector< unsigned int > & | attrSize, | ||
const int & | value | ||
) |
Definition at line 568 of file Hdf5Util.cpp.
References g_hdf5Mutex, Msg::print(), and Msg::SevWarning.
bool Hdf5Util::writeAttribute | ( | hid_t | location, |
const string & | attrName, | ||
std::vector< unsigned int > & | attrSize, | ||
const float & | value | ||
) |
Definition at line 620 of file Hdf5Util.cpp.
References g_hdf5Mutex, Msg::print(), and Msg::SevWarning.
bool Hdf5Util::writeAttribute | ( | hid_t | location, |
const string & | attrName, | ||
std::vector< unsigned int > & | attrSize, | ||
const double & | value | ||
) |
Definition at line 672 of file Hdf5Util.cpp.
References g_hdf5Mutex, Msg::print(), and Msg::SevWarning.