Field3D
Hdf5Util.cpp File Reference
#include "Hdf5Util.h"
#include <iostream>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  Hdf5Util
 

Contains utility functions and classes for Hdf5 files.


Functions

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, unsigned int attrSize, int &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, string &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, unsigned int attrSize, float &value)
bool Hdf5Util::writeAttribute (hid_t location, const string &attrName, const string &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 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 double &value)
bool Hdf5Util::writeAttribute (hid_t location, const string &attrName, unsigned int attrSize, const int &value)
bool Hdf5Util::writeAttribute (hid_t location, const string &attrName, std::vector< unsigned int > &attrSize, const int &value)

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.