Hdf5Util.cpp File Reference
`#include "Hdf5Util.h"`
`#include <iostream>`
`#include <vector>`
`#include <boost/scoped_array.hpp>`

Go to the source code of this file.

## Namespaces

namespace | Hdf5Util
| Contains utility functions and classes for Hdf5 files.

## Functions

FIELD3D_API bool | Hdf5Util::checkHdf5Gzip ()
| Checks whether gzip is available in the current hdf5 library.
bool | Hdf5Util::readAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, double &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, int &value)
bool | Hdf5Util::readAttribute (hid_t location, const string &attrName, string &value)
bool | Hdf5Util::readAttribute (hid_t location, const string &attrName, unsigned int attrSize, double &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, int &value)
bool | Hdf5Util::writeAttribute (hid_t location, const string &attrName, const string &value)
bool | Hdf5Util::writeAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, const double &value)
bool | Hdf5Util::writeAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, const float &value)
bool | Hdf5Util::writeAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, const int &value)
bool | Hdf5Util::writeAttribute (hid_t location, const string &attrName, unsigned int attrSize, const double &value)
bool | Hdf5Util::writeAttribute (hid_t location, const string &attrName, unsigned int attrSize, const float &value)
bool | Hdf5Util::writeAttribute (hid_t location, const string &attrName, unsigned int attrSize, const int &value)

## Variables

boost::recursive_mutex | g_hdf5Mutex

## Detailed Description

Todo
  The write attrib calls need some serious cleanup. They should be using scoped objects to open attributes and groups instead of all the replicated close calls.

Definition in file Hdf5Util.cpp.

## Variable Documentation

## g_hdf5Mutex

boost::recursive_mutex g_hdf5Mutex

Definition at line 67 of file Hdf5Util.cpp.

Referenced by Hdf5Util::checkHdf5Gzip(), Field3DFileHDF5Base::closeInternal(), Field3DOutputFileHDF5::create(), Hdf5Util::H5ScopedScreate::create(), Field3DOutputFileHDF5::createNewPartition(), Field3DFileHDF5Base::Field3DFileHDF5Base(), Hdf5Util::H5ScopedAget_space::H5ScopedAget_space(), Hdf5Util::H5ScopedAget_type::H5ScopedAget_type(), Hdf5Util::H5ScopedAopen::H5ScopedAopen(), Hdf5Util::H5ScopedAopen::H5ScopedAopen(), Hdf5Util::H5ScopedAopenIdx::H5ScopedAopenIdx(), Hdf5Util::H5ScopedDcreate::H5ScopedDcreate(), Hdf5Util::H5ScopedGcreate::H5ScopedGcreate(), Hdf5Util::H5ScopedGcreate::H5ScopedGcreate(), Hdf5Util::H5ScopedTget_native_type::H5ScopedTget_native_type(), Field3DInputFileHDF5::open(), Hdf5Util::H5ScopedDget_space::open(), Hdf5Util::H5ScopedDget_type::open(), Hdf5Util::H5ScopedDopen::open(), Hdf5Util::H5ScopedGopen::open(), Hdf5Util::H5ScopedGopen::open(), SparseFile::Reference< Data_T >::openFile(), InputFileHDF5::parseLayers(), InputFileHDF5::parsePartitions(), Hdf5Util::readAttribute(), Hdf5Util::readAttribute(), Hdf5Util::readAttribute(), Hdf5Util::readAttribute(), Hdf5Util::readAttribute(), Hdf5Util::readAttribute(), Hdf5Util::readAttribute(), SparseDataReader< Data_T >::readBlock(), SparseDataReader< Data_T >::readBlockList(), Field3DInputFileHDF5::readGroupMembership(), Field3DInputFileHDF5::readLayer(), Field3DInputFileHDF5::readMetadata(), Field3DInputFileHDF5::readMetadata(), Field3DInputFileHDF5::readPartitionAndLayerInfo(), Field3DInputFileHDF5::readProxyLayer(), Field3DInputFileHDF5::readProxyLayer(), Hdf5Util::readSimpleData(), Hdf5Util::writeAttribute(), Hdf5Util::writeAttribute(), Hdf5Util::writeAttribute(), Hdf5Util::writeAttribute(), Hdf5Util::writeAttribute(), Hdf5Util::writeAttribute(), Hdf5Util::writeAttribute(), Field3DOutputFileHDF5::writeGlobalMetadata(), Field3DOutputFileHDF5::writeGroupMembership(), Field3DOutputFileHDF5::writeLayer(), Field3DOutputFileHDF5::writeMapping(), Hdf5Util::writeSimpleData(), Hdf5Util::H5ScopedAget_space::~H5ScopedAget_space(), Hdf5Util::H5ScopedAget_type::~H5ScopedAget_type(), Hdf5Util::H5ScopedAopen::~H5ScopedAopen(), Hdf5Util::H5ScopedAopenIdx::~H5ScopedAopenIdx(), Hdf5Util::H5ScopedDcreate::~H5ScopedDcreate(), Hdf5Util::H5ScopedDget_space::~H5ScopedDget_space(), Hdf5Util::H5ScopedDget_type::~H5ScopedDget_type(), Hdf5Util::H5ScopedDopen::~H5ScopedDopen(), Hdf5Util::H5ScopedGcreate::~H5ScopedGcreate(), Hdf5Util::H5ScopedGopen::~H5ScopedGopen(), Hdf5Util::H5ScopedScreate::~H5ScopedScreate(), and Hdf5Util::H5ScopedTget_native_type::~H5ScopedTget_native_type().