9#include "MantidDataHandling/DllConfig.h"
19class DSetCreatPropList;
26namespace DataHandling {
32MANTID_DATAHANDLING_DLL H5::DataSpace
getDataSpace(
const size_t length);
35template <
typename NumT> H5::DataSpace
getDataSpace(
const std::vector<NumT> &data);
38template <
typename NumT> H5::DataType
getType();
40MANTID_DATAHANDLING_DLL H5::Group
createGroupNXS(H5::H5File &file,
const std::string &name,
const std::string &nxtype);
42MANTID_DATAHANDLING_DLL H5::Group
createGroupNXS(H5::Group &group,
const std::string &name,
const std::string &nxtype);
44MANTID_DATAHANDLING_DLL H5::Group
createGroupCanSAS(H5::Group &group,
const std::string &name,
45 const std::string &nxtype,
const std::string &cstype);
47MANTID_DATAHANDLING_DLL H5::Group
createGroupCanSAS(H5::H5File &file,
const std::string &name,
48 const std::string &nxtype,
const std::string &cstype);
57 const int deflateLevel = 6);
59template <
typename LocationType>
62template <
typename NumT,
typename LocationType>
65template <
typename NumT,
typename LocationType>
68MANTID_DATAHANDLING_DLL
void write(H5::Group &group,
const std::string &name,
const std::string &
value);
72 const std::map<std::string, std::string> &attributes);
74template <
typename NumT>
void writeArray1D(H5::Group &group,
const std::string &name,
const std::vector<NumT> &values);
76MANTID_DATAHANDLING_DLL std::string
readString(H5::H5File &file,
const std::string &path);
78MANTID_DATAHANDLING_DLL std::string
readString(H5::Group &group,
const std::string &name);
80MANTID_DATAHANDLING_DLL std::string
readString(H5::DataSet &dataset);
82MANTID_DATAHANDLING_DLL std::vector<std::string>
readStringVector(H5::Group &,
const std::string &);
84template <
typename LocationType>
87template <
typename NumT,
typename LocationType>
90template <
typename NumT,
typename LocationType>
93template <
typename NumT> std::vector<NumT>
readArray1DCoerce(H5::Group &group,
const std::string &name);
double value
The value of the point.
MANTID_DATAHANDLING_DLL H5::DSetCreatPropList setCompressionAttributes(const std::size_t length, const int deflateLevel=6)
Sets up the chunking and compression rate.
MANTID_DATAHANDLING_DLL std::string readString(H5::H5File &file, const std::string &path)
MANTID_DATAHANDLING_DLL std::vector< std::string > readStringVector(H5::Group &, const std::string &)
MANTID_DATAHANDLING_DLL H5::Group createGroupCanSAS(H5::Group &group, const std::string &name, const std::string &nxtype, const std::string &cstype)
void writeNumAttribute(LocationType &location, const std::string &name, const NumT &value)
void writeArray1D(H5::Group &group, const std::string &name, const std::vector< NumT > &values)
MANTID_DATAHANDLING_DLL H5::DataSpace getDataSpace(const size_t length)
H5Util : TODO: DESCRIPTION.
MANTID_DATAHANDLING_DLL H5::Group createGroupNXS(H5::H5File &file, const std::string &name, const std::string &nxtype)
std::string readAttributeAsString(LocationType &dataset, const std::string &attributeName)
NumT readNumAttributeCoerce(LocationType &location, const std::string &attributeName)
MANTID_DATAHANDLING_DLL void write(H5::Group &group, const std::string &name, const std::string &value)
std::vector< NumT > readNumArrayAttributeCoerce(LocationType &location, const std::string &attributeName)
void writeStrAttribute(LocationType &location, const std::string &name, const std::string &value)
std::vector< NumT > readArray1DCoerce(H5::Group &group, const std::string &name)
void writeScalarDataSetWithStrAttributes(H5::Group &group, const std::string &name, const T &value, const std::map< std::string, std::string > &attributes)
H5::DataType getType()
Convert a primitive type to the appropriate H5::DataType.
Helper class which provides the Collimation Length for SANS instruments.