|
Mantid
|
Operations for help with narrowing casts. More...
Enumerations | |
| enum class | Narrowing : bool { Allow = true , Prevent = false } |
| H5Util : TODO: DESCRIPTION. More... | |
Functions | |
| MANTID_NEXUS_DLL void | copyGroup (H5::H5Object &dest, const std::string &destGroupAddress, H5::H5Object &src, const std::string &srcGroupAddress) |
| Copy a group and all of its contents, between the same or different HDF5 files or groups. | |
| Group | createGroupCanSAS (Group &group, const std::string &name, const std::string &nxtype, const std::string &cstype) |
| MANTID_NEXUS_DLL H5::Group | createGroupCanSAS (H5::Group &group, const std::string &name, const std::string &nxtype, const std::string &cstype) |
| MANTID_NEXUS_DLL H5::Group | createGroupCanSAS (H5::H5File &file, const std::string &name, const std::string &nxtype, const std::string &cstype) |
| Group | createGroupCanSAS (H5File &file, const std::string &name, const std::string &nxtype, const std::string &cstype) |
| Group | createGroupNXS (Group &group, const std::string &name, const std::string &nxtype) |
| MANTID_NEXUS_DLL H5::Group | createGroupNXS (H5::Group &group, const std::string &name, const std::string &nxtype) |
| MANTID_NEXUS_DLL H5::Group | createGroupNXS (H5::H5File &file, const std::string &name, const std::string &nxtype) |
| Group | createGroupNXS (H5File &file, const std::string &name, const std::string &nxtype) |
| MANTID_NEXUS_DLL H5::FileAccPropList | defaultFileAcc () |
| Default file access is H5F_CLOSE_STRONG. | |
| MANTID_NEXUS_DLL void | deleteObjectLink (H5::H5Object &h5, const std::string &target) |
| Delete a target link for a group or dataset from a parent group. | |
| MANTID_NEXUS_DLL H5::DataSpace | getDataSpace (const size_t length) |
| Create a 1D data-space to hold data of length. | |
| template<typename NumT > | |
| H5::DataType | getType () |
| Convert a primitive type to the appropriate H5::DataType. | |
| template<typename NumT > | |
| DataType | getType () |
| Convert a primitive type to the appropriate H5::DataType. | |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< bool > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< char > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< double > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< float > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< int16_t > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< int32_t > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< int64_t > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< int8_t > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< std::string > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< uint16_t > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< uint32_t > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< uint64_t > () |
| template<> | |
| MANTID_NEXUS_DLL DataType | getType< uint8_t > () |
| MANTID_NEXUS_DLL bool | groupExists (H5::H5Object const &h5, const std::string &groupAddress) |
| Test if a group already exists within an HDF5 file or parent group. | |
| MANTID_NEXUS_DLL bool | hasAttribute (const H5::H5Object &object, const char *attributeName) |
| MANTID_NEXUS_DLL bool | isHdf5 (std::string const &filename) |
| Determine if a given file can be opened with HDF5 using the CORRECT file access level (H5F_CLOSE_STRONG) | |
| MANTID_NEXUS_DLL bool | keyHasValue (H5::H5Object const &h5, const std::string &key, const std::string &value) |
| Test if an attribute is present and has a specific string value for an HDF5 group or dataset. | |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< char > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< double > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< float > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< int16_t > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< int32_t > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< int64_t > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< int8_t > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< uint16_t > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< uint32_t > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< uint64_t > &output, const size_t length, const size_t offset) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const DataSet &dataset, std::vector< uint8_t > &output, const size_t length, const size_t offset) |
| template<typename NumT , Narrowing narrow = Narrowing::Allow> | |
| void | readArray1DCoerce (const H5::DataSet &dataset, std::vector< NumT > &output, const size_t length=std::numeric_limits< size_t >::max(), const size_t offset=static_cast< size_t >(0)) |
| template<typename OutT , Narrowing narrow> | |
| void | readArray1DCoerce (const H5::DataSet &dataset, std::vector< OutT > &output, const size_t length, const size_t offset) |
| Read a standard vector from a dataset, coerced to type of OutT. | |
| template<typename NumT , Narrowing narrow = Narrowing::Allow> | |
| std::vector< NumT > | readArray1DCoerce (const H5::Group &group, const std::string &name) |
| template<typename OutT , Narrowing narrow> | |
| std::vector< OutT > | readArray1DCoerce (const H5::Group &group, const std::string &name) |
| template MANTID_NEXUS_DLL std::vector< float > | readArray1DCoerce (const H5::Group &group, const std::string &name) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< double > &output) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< float > &output) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< int32_t > &output) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< int64_t > &output) |
| template<typename NumT , Narrowing narrow = Narrowing::Allow> | |
| void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< NumT > &output) |
| template<typename OutT , Narrowing narrow> | |
| void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< OutT > &output) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< uint32_t > &output) |
| template MANTID_NEXUS_DLL void | readArray1DCoerce (const H5::Group &group, const std::string &name, std::vector< uint64_t > &output) |
| template<typename NumT , Narrowing narrow = Narrowing::Allow> | |
| std::vector< NumT > | readNumArrayAttributeCoerce (const H5::H5Object &object, const std::string &attributeName) |
| Read a numerical array from an attribute, coerced to type of OutT. | |
| template<typename OutT , Narrowing narrow> | |
| std::vector< OutT > | readNumArrayAttributeCoerce (const H5::H5Object &object, const std::string &attributeName) |
| Read a numerical array from an attribute, coerced to type of OutT. | |
| template MANTID_NEXUS_DLL std::vector< float > | readNumArrayAttributeCoerce (const H5::H5Object &object, const std::string &attributeName) |
| template<typename NumT , Narrowing narrow = Narrowing::Allow> | |
| NumT | readNumAttributeCoerce (const H5::H5Object &object, const std::string &attributeName) |
| Read a single quantity from an attribute, coerced to type of OutT. | |
| template<typename OutT , Narrowing narrow> | |
| OutT | readNumAttributeCoerce (const H5::H5Object &object, const std::string &attributeName) |
| Read a single quantity from an attribute, coerced to type of OutT. | |
| template MANTID_NEXUS_DLL float | readNumAttributeCoerce (const H5::H5Object &object, const std::string &attributeName) |
| MANTID_NEXUS_DLL std::string | readString (const H5::DataSet &dataset) |
| MANTID_NEXUS_DLL std::string | readString (const H5::Group &group, const std::string &name) |
| MANTID_NEXUS_DLL std::string | readString (H5::H5File &file, const std::string &address) |
| MANTID_NEXUS_DLL void | readStringAttribute (const H5::H5Object &object, const std::string &attributeName, std::string &output) |
| std::vector< std::string > | readStringVector (DataSet &dataset) |
| std::vector< std::string > | readStringVector (Group &group, const std::string &name) |
| Returns 1D vector of variable length strings. | |
| MANTID_NEXUS_DLL std::vector< std::string > | readStringVector (H5::DataSet &) |
| MANTID_NEXUS_DLL std::vector< std::string > | readStringVector (H5::Group &, const std::string &) |
| MANTID_NEXUS_DLL H5::DSetCreatPropList | setCompressionAttributes (const std::size_t length, const int deflateLevel=6) |
| Sets up the chunking and compression rate. | |
| void | write (Group &group, const std::string &name, const std::string &value) |
| MANTID_NEXUS_DLL void | write (H5::Group &group, const std::string &name, const std::string &value) |
| template<typename NumT > | |
| void | writeArray1D (Group &group, const std::string &name, const std::vector< NumT > &values) |
| template MANTID_NEXUS_DLL void | writeArray1D (H5::Group &group, const std::string &name, const std::vector< double > &values) |
| template MANTID_NEXUS_DLL void | writeArray1D (H5::Group &group, const std::string &name, const std::vector< float > &values) |
| template MANTID_NEXUS_DLL void | writeArray1D (H5::Group &group, const std::string &name, const std::vector< int32_t > &values) |
| template MANTID_NEXUS_DLL void | writeArray1D (H5::Group &group, const std::string &name, const std::vector< int64_t > &values) |
| template<typename NumT > | |
| void | writeArray1D (H5::Group &group, const std::string &name, const std::vector< NumT > &values) |
| template MANTID_NEXUS_DLL void | writeArray1D (H5::Group &group, const std::string &name, const std::vector< uint32_t > &values) |
| template MANTID_NEXUS_DLL void | writeArray1D (H5::Group &group, const std::string &name, const std::vector< uint64_t > &values) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const char &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const double &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const float &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const int16_t &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const int32_t &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const int64_t &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const int8_t &value) |
| template<typename NumT > | |
| void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const NumT &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< char > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< double > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< float > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< int16_t > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< int32_t > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< int64_t > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< int8_t > &value) |
| template<typename NumT > | |
| void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< NumT > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< uint16_t > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< uint32_t > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< uint64_t > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const std::vector< uint8_t > &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const uint16_t &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const uint32_t &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const uint64_t &value) |
| template MANTID_NEXUS_DLL void | writeNumAttribute (const H5::H5Object &object, const std::string &name, const uint8_t &value) |
| template MANTID_NEXUS_DLL void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const double &value, const std::map< std::string, std::string > &attributes) |
| template MANTID_NEXUS_DLL void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const float &value, const std::map< std::string, std::string > &attributes) |
| template MANTID_NEXUS_DLL void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const int32_t &value, const std::map< std::string, std::string > &attributes) |
| template MANTID_NEXUS_DLL void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const int64_t &value, const std::map< std::string, std::string > &attributes) |
| template MANTID_NEXUS_DLL void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const std::string &value, const std::map< std::string, std::string > &attributes) |
| template<typename T > | |
| void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const T &value, const std::map< std::string, std::string > &attributes) |
| template MANTID_NEXUS_DLL void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const uint32_t &value, const std::map< std::string, std::string > &attributes) |
| template MANTID_NEXUS_DLL void | writeScalarDataSetWithStrAttributes (H5::Group &group, const std::string &name, const uint64_t &value, const std::map< std::string, std::string > &attributes) |
| MANTID_NEXUS_DLL void | writeStrAttribute (const H5::H5Object &object, const std::string &name, const std::string &value) |
Operations for help with narrowing casts.
|
strong |
| void Mantid::Nexus::H5Util::copyGroup | ( | H5::H5Object & | dest, |
| const std::string & | destGroupAddress, | ||
| H5::H5Object & | src, | ||
| const std::string & | srcGroupAddress | ||
| ) |
Copy a group and all of its contents, between the same or different HDF5 files or groups.
Definition at line 510 of file H5Util.cpp.
References groupExists(), and Mantid::Nexus::UniqueID< D >::reset().
| Group Mantid::Nexus::H5Util::createGroupCanSAS | ( | Group & | group, |
| const std::string & | name, | ||
| const std::string & | nxtype, | ||
| const std::string & | cstype | ||
| ) |
Definition at line 194 of file H5Util.cpp.
References createGroupNXS(), group, name, and writeStrAttribute().
| MANTID_NEXUS_DLL H5::Group Mantid::Nexus::H5Util::createGroupCanSAS | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::string & | nxtype, | ||
| const std::string & | cstype | ||
| ) |
Referenced by Mantid::DataHandling::SaveNXcanSASBase::addData(), Mantid::DataHandling::NXcanSAS::addDetectors(), Mantid::DataHandling::NXcanSAS::addInstrument(), Mantid::DataHandling::SaveNXcanSASBase::addPolarizedData(), Mantid::DataHandling::NXcanSAS::addPolarizer(), Mantid::DataHandling::NXcanSAS::addProcess(), Mantid::DataHandling::NXcanSAS::addSample(), Mantid::DataHandling::NXcanSAS::addSampleEMFields(), Mantid::DataHandling::SaveNXcanSASBase::addSasEntry(), and Mantid::DataHandling::NXcanSAS::addTransmission().
| MANTID_NEXUS_DLL H5::Group Mantid::Nexus::H5Util::createGroupCanSAS | ( | H5::H5File & | file, |
| const std::string & | name, | ||
| const std::string & | nxtype, | ||
| const std::string & | cstype | ||
| ) |
| Group Mantid::Nexus::H5Util::createGroupCanSAS | ( | H5File & | file, |
| const std::string & | name, | ||
| const std::string & | nxtype, | ||
| const std::string & | cstype | ||
| ) |
Definition at line 188 of file H5Util.cpp.
References createGroupNXS(), name, and writeStrAttribute().
| Group Mantid::Nexus::H5Util::createGroupNXS | ( | Group & | group, |
| const std::string & | name, | ||
| const std::string & | nxtype | ||
| ) |
Definition at line 182 of file H5Util.cpp.
References group, name, and writeStrAttribute().
| MANTID_NEXUS_DLL H5::Group Mantid::Nexus::H5Util::createGroupNXS | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::string & | nxtype | ||
| ) |
| MANTID_NEXUS_DLL H5::Group Mantid::Nexus::H5Util::createGroupNXS | ( | H5::H5File & | file, |
| const std::string & | name, | ||
| const std::string & | nxtype | ||
| ) |
Referenced by createGroupCanSAS(), createGroupCanSAS(), and Mantid::DataHandling::SaveDiffCal::exec().
| Group Mantid::Nexus::H5Util::createGroupNXS | ( | H5File & | file, |
| const std::string & | name, | ||
| const std::string & | nxtype | ||
| ) |
Definition at line 176 of file H5Util.cpp.
References group, name, and writeStrAttribute().
| H5::FileAccPropList Mantid::Nexus::H5Util::defaultFileAcc | ( | ) |
Default file access is H5F_CLOSE_STRONG.
This should be set consistently for all access of a file.
Definition at line 119 of file H5Util.cpp.
Referenced by Mantid::DataHandling::LoadMcStas::confidence(), Mantid::DataHandling::AlignAndFocusPowderSlim::AlignAndFocusPowderSlim::exec(), Mantid::DataHandling::LoadDiffCal::exec(), Mantid::DataHandling::LoadILLSALSA::exec(), Mantid::DataHandling::NXcanSAS::LoadNXcanSAS::exec(), Mantid::DataHandling::LoadSassena::exec(), Mantid::DataHandling::SaveDiffCal::exec(), Mantid::DataHandling::LoadMcStas::execLoader(), Mantid::DataHandling::LoadILLSANS::getMonitorIndices(), Mantid::Nexus::NexusDescriptor::initAllEntries(), isHdf5(), Mantid::DataHandling::LoadILLLagrange::loadData(), Mantid::DataHandling::LoadILLDiffraction::loadScanVars(), Mantid::NexusGeometry::NexusFileReader::NexusFileReader(), and Mantid::DataHandling::NXcanSAS::prepareFile().
| void Mantid::Nexus::H5Util::deleteObjectLink | ( | H5::H5Object & | h5, |
| const std::string & | target | ||
| ) |
Delete a target link for a group or dataset from a parent group.
If this is the last link to the target in the HDF5 graph, then it will be removed from the file.
Definition at line 532 of file H5Util.cpp.
| DataSpace Mantid::Nexus::H5Util::getDataSpace | ( | const size_t | length | ) |
Create a 1D data-space to hold data of length.
Definition at line 143 of file H5Util.cpp.
Referenced by writeArray1D(), and writeNumAttribute().
| H5::DataType Mantid::Nexus::H5Util::getType | ( | ) |
Convert a primitive type to the appropriate H5::DataType.
Definition at line 36 of file H5Util.cpp.
| DataType Mantid::Nexus::H5Util::getType | ( | ) |
Convert a primitive type to the appropriate H5::DataType.
Definition at line 36 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< bool > | ( | ) |
Definition at line 62 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< char > | ( | ) |
Definition at line 58 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< double > | ( | ) |
Definition at line 40 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< float > | ( | ) |
Definition at line 38 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< int16_t > | ( | ) |
Definition at line 46 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< int32_t > | ( | ) |
Definition at line 50 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< int64_t > | ( | ) |
Definition at line 54 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< int8_t > | ( | ) |
Definition at line 42 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< std::string > | ( | ) |
Definition at line 60 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< uint16_t > | ( | ) |
Definition at line 48 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< uint32_t > | ( | ) |
Definition at line 52 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< uint64_t > | ( | ) |
Definition at line 56 of file H5Util.cpp.
| MANTID_NEXUS_DLL DataType Mantid::Nexus::H5Util::getType< uint8_t > | ( | ) |
Definition at line 44 of file H5Util.cpp.
| bool Mantid::Nexus::H5Util::groupExists | ( | H5::H5Object const & | h5, |
| const std::string & | groupAddress | ||
| ) |
Test if a group already exists within an HDF5 file or parent group.
Test if a group exists in an HDF5 file or parent group.
Definition at line 484 of file H5Util.cpp.
Referenced by copyGroup().
| bool Mantid::Nexus::H5Util::hasAttribute | ( | const H5::H5Object & | object, |
| const char * | attributeName | ||
| ) |
Definition at line 337 of file H5Util.cpp.
References Mantid::DataHandling::exists().
Referenced by Mantid::DataHandling::LoadMcStas::execLoader(), and Mantid::DataHandling::LoadMcStas::readHistogramData().
| bool Mantid::Nexus::H5Util::isHdf5 | ( | std::string const & | filename | ) |
Determine if a given file can be opened with HDF5 using the CORRECT file access level (H5F_CLOSE_STRONG)
Definition at line 125 of file H5Util.cpp.
References defaultFileAcc(), and Mantid::Nexus::UniqueID< D >::reset().
| bool Mantid::Nexus::H5Util::keyHasValue | ( | H5::H5Object const & | h5, |
| const std::string & | key, | ||
| const std::string & | value | ||
| ) |
Test if an attribute is present and has a specific string value for an HDF5 group or dataset.
Test if an attribute is present on an HDF5 group or dataset and has a specific string value.
Definition at line 496 of file H5Util.cpp.
References value.
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< char > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< double > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< float > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< int16_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< int32_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< int64_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< int8_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< uint16_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< uint32_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< uint64_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const DataSet & | dataset, |
| std::vector< uint8_t > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
| void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::DataSet & | dataset, |
| std::vector< NumT > & | output, | ||
| const size_t | length = std::numeric_limits< size_t >::max(), |
||
| const size_t | offset = static_cast< size_t >(0) |
||
| ) |
| void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::DataSet & | dataset, |
| std::vector< OutT > & | output, | ||
| const size_t | length, | ||
| const size_t | offset | ||
| ) |
Read a standard vector from a dataset, coerced to type of OutT.
Narrowing behavior can be controlled with optional template param narrow, which, if narrow = Prevent, will throw an error if type coercion would cause narrowing.
Definition at line 456 of file H5Util.cpp.
References RUN_H5UTIL_FUNCTION.
| template MANTID_NEXUS_DLL std::vector< uint64_t > Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name | ||
| ) |
Definition at line 361 of file H5Util.cpp.
References Mantid::API::g_log, group, Mantid::Kernel::Logger::information(), and name.
| std::vector< OutT > Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name | ||
| ) |
Definition at line 361 of file H5Util.cpp.
References Mantid::API::g_log, group, Mantid::Kernel::Logger::information(), and name.
| template MANTID_NEXUS_DLL std::vector< float > Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< double > & | output | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< float > & | output | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< int32_t > & | output | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< int64_t > & | output | ||
| ) |
| void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< NumT > & | output | ||
| ) |
| void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< OutT > & | output | ||
| ) |
Definition at line 349 of file H5Util.cpp.
References Mantid::API::g_log, group, Mantid::Kernel::Logger::information(), and name.
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< uint32_t > & | output | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::readArray1DCoerce | ( | const H5::Group & | group, |
| const std::string & | name, | ||
| std::vector< uint64_t > & | output | ||
| ) |
| template MANTID_NEXUS_DLL std::vector< uint64_t > Mantid::Nexus::H5Util::readNumArrayAttributeCoerce | ( | const H5::H5Object & | object, |
| const std::string & | attributeName | ||
| ) |
Read a numerical array from an attribute, coerced to type of OutT.
Narrowing behavior can be controlled with optional template param narrow, which, if narrow = Prevent, will throw an error if type coercion would cause narrowing.
Definition at line 441 of file H5Util.cpp.
References RUN_H5UTIL_FUNCTION, and value.
| std::vector< OutT > Mantid::Nexus::H5Util::readNumArrayAttributeCoerce | ( | const H5::H5Object & | object, |
| const std::string & | attributeName | ||
| ) |
Read a numerical array from an attribute, coerced to type of OutT.
Narrowing behavior can be controlled with optional template param narrow, which, if narrow = Prevent, will throw an error if type coercion would cause narrowing.
Definition at line 441 of file H5Util.cpp.
References RUN_H5UTIL_FUNCTION, and value.
| template MANTID_NEXUS_DLL std::vector< float > Mantid::Nexus::H5Util::readNumArrayAttributeCoerce | ( | const H5::H5Object & | object, |
| const std::string & | attributeName | ||
| ) |
| template MANTID_NEXUS_DLL char Mantid::Nexus::H5Util::readNumAttributeCoerce | ( | const H5::H5Object & | object, |
| const std::string & | attributeName | ||
| ) |
Read a single quantity from an attribute, coerced to type of OutT.
Narrowing behavior can be controlled with optional template param narrow, which, if narrow = Prevent, will throw an error if type coercion would cause narrowing.
Definition at line 427 of file H5Util.cpp.
References RUN_H5UTIL_FUNCTION, and value.
| OutT Mantid::Nexus::H5Util::readNumAttributeCoerce | ( | const H5::H5Object & | object, |
| const std::string & | attributeName | ||
| ) |
Read a single quantity from an attribute, coerced to type of OutT.
Narrowing behavior can be controlled with optional template param narrow, which, if narrow = Prevent, will throw an error if type coercion would cause narrowing.
Definition at line 427 of file H5Util.cpp.
References RUN_H5UTIL_FUNCTION, and value.
| template MANTID_NEXUS_DLL float Mantid::Nexus::H5Util::readNumAttributeCoerce | ( | const H5::H5Object & | object, |
| const std::string & | attributeName | ||
| ) |
| std::string Mantid::Nexus::H5Util::readString | ( | const H5::DataSet & | dataset | ) |
Definition at line 289 of file H5Util.cpp.
References value.
| std::string Mantid::Nexus::H5Util::readString | ( | const H5::Group & | group, |
| const std::string & | name | ||
| ) |
Definition at line 279 of file H5Util.cpp.
References group, name, readString(), and UNUSED_ARG.
| std::string Mantid::Nexus::H5Util::readString | ( | H5::H5File & | file, |
| const std::string & | address | ||
| ) |
Definition at line 266 of file H5Util.cpp.
References readString(), and UNUSED_ARG.
Referenced by Mantid::DataHandling::LoadMcStas::confidence(), Mantid::DataHandling::LoadDiffCal::getInstrument(), Mantid::DataHandling::NXcanSAS::InstrumentNameInfo::getInstrumentNameFromFile(), Mantid::DataHandling::LoadMcStas::readEventData(), readString(), and readString().
| void Mantid::Nexus::H5Util::readStringAttribute | ( | const H5::H5Object & | object, |
| const std::string & | attributeName, | ||
| std::string & | output | ||
| ) |
Definition at line 342 of file H5Util.cpp.
Referenced by Mantid::DataHandling::LoadMcStas::execLoader(), Mantid::DataHandling::AlignAndFocusPowderSlim::ProcessBankSplitFullTimeTask::operator()(), Mantid::DataHandling::AlignAndFocusPowderSlim::ProcessBankSplitTask::operator()(), Mantid::DataHandling::AlignAndFocusPowderSlim::ProcessBankTask::operator()(), and Mantid::DataHandling::LoadMcStas::readHistogramData().
| std::vector< std::string > Mantid::Nexus::H5Util::readStringVector | ( | DataSet & | dataset | ) |
Definition at line 314 of file H5Util.cpp.
| std::vector< std::string > Mantid::Nexus::H5Util::readStringVector | ( | Group & | group, |
| const std::string & | name | ||
| ) |
Returns 1D vector of variable length strings.
| group | :: H5::Group already opened |
| name | :: name of the dataset in the group (rank must be 1) |
Definition at line 309 of file H5Util.cpp.
References group, name, and readStringVector().
| MANTID_NEXUS_DLL std::vector< std::string > Mantid::Nexus::H5Util::readStringVector | ( | H5::DataSet & | ) |
| MANTID_NEXUS_DLL std::vector< std::string > Mantid::Nexus::H5Util::readStringVector | ( | H5::Group & | , |
| const std::string & | |||
| ) |
Referenced by Mantid::DataHandling::LoadILLDiffraction::loadScanVars(), and readStringVector().
| DSetCreatPropList Mantid::Nexus::H5Util::setCompressionAttributes | ( | const std::size_t | length, |
| const int | deflateLevel = 6 |
||
| ) |
Sets up the chunking and compression rate.
| length | |
| deflateLevel |
Definition at line 200 of file H5Util.cpp.
Referenced by writeArray1D().
| void Mantid::Nexus::H5Util::write | ( | Group & | group, |
| const std::string & | name, | ||
| const std::string & | value | ||
| ) |
Definition at line 241 of file H5Util.cpp.
| MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::write | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::string & | value | ||
| ) |
Referenced by Mantid::DataHandling::NXcanSAS::addDetectors(), Mantid::DataHandling::NXcanSAS::addInstrument(), Mantid::DataHandling::NXcanSAS::addPolarizer(), Mantid::DataHandling::NXcanSAS::addProcess(), Mantid::DataHandling::SaveNXcanSASBase::addSasEntry(), Mantid::DataHandling::SaveNXcanSASBase::addStandardMetadata(), and Mantid::DataHandling::SaveDiffCal::exec().
| void Mantid::Nexus::H5Util::writeArray1D | ( | Group & | group, |
| const std::string & | name, | ||
| const std::vector< NumT > & | values | ||
| ) |
Definition at line 252 of file H5Util.cpp.
References getDataSpace(), group, name, and setCompressionAttributes().
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeArray1D | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::vector< double > & | values | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeArray1D | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::vector< float > & | values | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeArray1D | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::vector< int32_t > & | values | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeArray1D | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::vector< int64_t > & | values | ||
| ) |
| void Mantid::Nexus::H5Util::writeArray1D | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::vector< NumT > & | values | ||
| ) |
Referenced by Mantid::DataHandling::SaveDiffCal::writeDetIdsfromSVWS(), Mantid::DataHandling::SaveDiffCal::writeDoubleFieldFromTable(), Mantid::DataHandling::SaveDiffCal::writeDoubleFieldZeros(), Mantid::DataHandling::SaveDiffCal::writeIntFieldFromSVWS(), and Mantid::DataHandling::SaveDiffCal::writeIntFieldFromTable().
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeArray1D | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::vector< uint32_t > & | values | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeArray1D | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::vector< uint64_t > & | values | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const char & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const double & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const float & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const int16_t & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const int32_t & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const int64_t & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const int8_t & | value | ||
| ) |
| void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const NumT & | value | ||
| ) |
Definition at line 216 of file H5Util.cpp.
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< char > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< double > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< float > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< int16_t > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< int32_t > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< int64_t > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< int8_t > & | value | ||
| ) |
| void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< NumT > & | value | ||
| ) |
Definition at line 230 of file H5Util.cpp.
References getDataSpace(), name, and value.
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< uint16_t > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< uint32_t > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< uint64_t > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::vector< uint8_t > & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const uint16_t & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const uint32_t & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const uint64_t & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeNumAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const uint8_t & | value | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const double & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const float & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const int32_t & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const int64_t & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const std::string & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
| void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const T & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
Definition at line 244 of file H5Util.cpp.
References group, name, value, and writeStrAttribute().
Referenced by Mantid::DataHandling::NXcanSAS::addDetectors(), Mantid::DataHandling::NXcanSAS::addEMFieldDirection(), Mantid::DataHandling::NXcanSAS::addInstrument(), Mantid::DataHandling::NXcanSAS::addPolarizer(), Mantid::DataHandling::NXcanSAS::addSample(), Mantid::DataHandling::NXcanSAS::addSampleEMFields(), and Mantid::DataHandling::SaveNXcanSASBase::addStandardMetadata().
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const uint32_t & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
| template MANTID_NEXUS_DLL void Mantid::Nexus::H5Util::writeScalarDataSetWithStrAttributes | ( | H5::Group & | group, |
| const std::string & | name, | ||
| const uint64_t & | value, | ||
| const std::map< std::string, std::string > & | attributes | ||
| ) |
| void Mantid::Nexus::H5Util::writeStrAttribute | ( | const H5::H5Object & | object, |
| const std::string & | name, | ||
| const std::string & | value | ||
| ) |
Definition at line 208 of file H5Util.cpp.
Referenced by Mantid::DataHandling::SaveNXcanSASBase::addSasEntry(), Mantid::DataHandling::NXcanSAS::addTransmission(), createGroupCanSAS(), createGroupCanSAS(), createGroupNXS(), createGroupNXS(), Mantid::DataHandling::SaveDiffCal::exec(), and writeScalarDataSetWithStrAttributes().