Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
H5Util.cpp File Reference
#include "MantidDataHandling/H5Util.h"
#include "MantidAPI/LogManager.h"
#include "MantidKernel/System.h"
#include <H5Cpp.h>
#include <algorithm>
#include <array>
#include <boost/numeric/conversion/cast.hpp>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::DataHandling
 
namespace  Mantid::DataHandling::H5Util
 

Functions

Group Mantid::DataHandling::H5Util::createGroupCanSAS (Group &group, const std::string &name, const std::string &nxtype, const std::string &cstype)
 
Group Mantid::DataHandling::H5Util::createGroupCanSAS (H5File &file, const std::string &name, const std::string &nxtype, const std::string &cstype)
 
Group Mantid::DataHandling::H5Util::createGroupNXS (Group &group, const std::string &name, const std::string &nxtype)
 
Group Mantid::DataHandling::H5Util::createGroupNXS (H5File &file, const std::string &name, const std::string &nxtype)
 
MANTID_DATAHANDLING_DLL H5::DataSpace Mantid::DataHandling::H5Util::getDataSpace (const size_t length)
 H5Util : TODO: DESCRIPTION. More...
 
template MANTID_DATAHANDLING_DLL DataSpace Mantid::DataHandling::H5Util::getDataSpace (const std::vector< double > &data)
 
template MANTID_DATAHANDLING_DLL DataSpace Mantid::DataHandling::H5Util::getDataSpace (const std::vector< float > &data)
 
template MANTID_DATAHANDLING_DLL DataSpace Mantid::DataHandling::H5Util::getDataSpace (const std::vector< int32_t > &data)
 
template MANTID_DATAHANDLING_DLL DataSpace Mantid::DataHandling::H5Util::getDataSpace (const std::vector< int64_t > &data)
 
template<typename NumT >
DataSpace Mantid::DataHandling::H5Util::getDataSpace (const std::vector< NumT > &data)
 Create a 1D data-space that will hold the supplied vector. More...
 
template MANTID_DATAHANDLING_DLL DataSpace Mantid::DataHandling::H5Util::getDataSpace (const std::vector< uint32_t > &data)
 
template MANTID_DATAHANDLING_DLL DataSpace Mantid::DataHandling::H5Util::getDataSpace (const std::vector< uint64_t > &data)
 
template<typename NumT >
DataType Mantid::DataHandling::H5Util::getType ()
 Convert a primitive type to the appropriate H5::DataType. More...
 
template<>
MANTID_DATAHANDLING_DLL DataType Mantid::DataHandling::H5Util::getType< double > ()
 
template<>
MANTID_DATAHANDLING_DLL DataType Mantid::DataHandling::H5Util::getType< float > ()
 
template<>
MANTID_DATAHANDLING_DLL DataType Mantid::DataHandling::H5Util::getType< int32_t > ()
 
template<>
MANTID_DATAHANDLING_DLL DataType Mantid::DataHandling::H5Util::getType< int64_t > ()
 
template<>
MANTID_DATAHANDLING_DLL DataType Mantid::DataHandling::H5Util::getType< uint32_t > ()
 
template<>
MANTID_DATAHANDLING_DLL DataType Mantid::DataHandling::H5Util::getType< uint64_t > ()
 
template<typename NumT >
std::vector< NumT > Mantid::DataHandling::H5Util::readArray1DCoerce (DataSet &dataset)
 
template<typename NumT >
std::vector< NumT > Mantid::DataHandling::H5Util::readArray1DCoerce (H5::Group &group, const std::string &name)
 
template MANTID_DATAHANDLING_DLL std::vector< float > Mantid::DataHandling::H5Util::readArray1DCoerce (H5::Group &group, const std::string &name)
 
template MANTID_DATAHANDLING_DLL std::vector< double > Mantid::DataHandling::H5Util::readArray1DCoerce< double > (DataSet &dataset)
 
template MANTID_DATAHANDLING_DLL std::vector< float > Mantid::DataHandling::H5Util::readArray1DCoerce< float > (DataSet &dataset)
 
template MANTID_DATAHANDLING_DLL std::vector< int32_t > Mantid::DataHandling::H5Util::readArray1DCoerce< int32_t > (DataSet &dataset)
 
template MANTID_DATAHANDLING_DLL std::vector< int64_t > Mantid::DataHandling::H5Util::readArray1DCoerce< int64_t > (DataSet &dataset)
 
template MANTID_DATAHANDLING_DLL std::vector< uint32_t > Mantid::DataHandling::H5Util::readArray1DCoerce< uint32_t > (DataSet &dataset)
 
template MANTID_DATAHANDLING_DLL std::vector< uint64_t > Mantid::DataHandling::H5Util::readArray1DCoerce< uint64_t > (DataSet &dataset)
 
template MANTID_DATAHANDLING_DLL std::string Mantid::DataHandling::H5Util::readAttributeAsString (H5::DataSet &location, const std::string &attributeName)
 
template MANTID_DATAHANDLING_DLL std::string Mantid::DataHandling::H5Util::readAttributeAsString (H5::Group &location, const std::string &attributeName)
 
template<typename LocationType >
std::string Mantid::DataHandling::H5Util::readAttributeAsString (LocationType &dataset, const std::string &attributeName)
 
template MANTID_DATAHANDLING_DLL std::vector< float > Mantid::DataHandling::H5Util::readNumArrayAttributeCoerce (H5::DataSet &location, const std::string &attributeName)
 
template MANTID_DATAHANDLING_DLL std::vector< float > Mantid::DataHandling::H5Util::readNumArrayAttributeCoerce (H5::Group &location, const std::string &attributeName)
 
template<typename NumT , typename LocationType >
std::vector< NumT > Mantid::DataHandling::H5Util::readNumArrayAttributeCoerce (LocationType &location, const std::string &attributeName)
 
template MANTID_DATAHANDLING_DLL float Mantid::DataHandling::H5Util::readNumAttributeCoerce (H5::DataSet &location, const std::string &attributeName)
 
template MANTID_DATAHANDLING_DLL float Mantid::DataHandling::H5Util::readNumAttributeCoerce (H5::Group &location, const std::string &attributeName)
 
template<typename NumT , typename LocationType >
NumT Mantid::DataHandling::H5Util::readNumAttributeCoerce (LocationType &location, const std::string &attributeName)
 
MANTID_DATAHANDLING_DLL std::string Mantid::DataHandling::H5Util::readString (H5::DataSet &dataset)
 
MANTID_DATAHANDLING_DLL std::string Mantid::DataHandling::H5Util::readString (H5::Group &group, const std::string &name)
 
MANTID_DATAHANDLING_DLL std::string Mantid::DataHandling::H5Util::readString (H5::H5File &file, const std::string &path)
 
std::vector< std::string > Mantid::DataHandling::H5Util::readStringVector (Group &group, const std::string &name)
 Returns 1D vector of variable length strings. More...
 
MANTID_DATAHANDLING_DLL H5::DSetCreatPropList Mantid::DataHandling::H5Util::setCompressionAttributes (const std::size_t length, const int deflateLevel=6)
 Sets up the chunking and compression rate. More...
 
void Mantid::DataHandling::H5Util::write (Group &group, const std::string &name, const std::string &value)
 
template<typename NumT >
void Mantid::DataHandling::H5Util::writeArray1D (Group &group, const std::string &name, const std::vector< NumT > &values)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeArray1D (H5::Group &group, const std::string &name, const std::vector< double > &values)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeArray1D (H5::Group &group, const std::string &name, const std::vector< float > &values)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeArray1D (H5::Group &group, const std::string &name, const std::vector< int32_t > &values)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeArray1D (H5::Group &group, const std::string &name, const std::vector< int64_t > &values)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeArray1D (H5::Group &group, const std::string &name, const std::vector< uint32_t > &values)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeArray1D (H5::Group &group, const std::string &name, const std::vector< uint64_t > &values)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const double &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const float &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const int32_t &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const int64_t &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const std::vector< double > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const std::vector< float > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const std::vector< int32_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const std::vector< int64_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const std::vector< uint32_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const std::vector< uint64_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const uint32_t &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::DataSet &location, const std::string &name, const uint64_t &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const double &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const float &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const int32_t &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const int64_t &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const std::vector< double > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const std::vector< float > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const std::vector< int32_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const std::vector< int64_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const std::vector< uint32_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const std::vector< uint64_t > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const uint32_t &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeNumAttribute (H5::Group &location, const std::string &name, const uint64_t &value)
 
template<typename NumT , typename LocationType >
void Mantid::DataHandling::H5Util::writeNumAttribute (LocationType &location, const std::string &name, const NumT &value)
 
template<typename NumT , typename LocationType >
void Mantid::DataHandling::H5Util::writeNumAttribute (LocationType &location, const std::string &name, const std::vector< NumT > &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const double &value, const std::map< std::string, std::string > &attributes)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const float &value, const std::map< std::string, std::string > &attributes)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const int32_t &value, const std::map< std::string, std::string > &attributes)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const int64_t &value, const std::map< std::string, std::string > &attributes)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const std::string &value, const std::map< std::string, std::string > &attributes)
 
template<typename T >
void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const T &value, const std::map< std::string, std::string > &attributes)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const uint32_t &value, const std::map< std::string, std::string > &attributes)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const uint64_t &value, const std::map< std::string, std::string > &attributes)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeStrAttribute (H5::DataSet &location, const std::string &name, const std::string &value)
 
template MANTID_DATAHANDLING_DLL void Mantid::DataHandling::H5Util::writeStrAttribute (H5::Group &location, const std::string &name, const std::string &value)
 
template<typename LocationType >
void Mantid::DataHandling::H5Util::writeStrAttribute (LocationType &location, const std::string &name, const std::string &value)