Go to the documentation of this file.
16 #ifdef XTENSOR_VERSION_MAJOR
17 #ifndef H5_USE_XTENSOR
18 #define H5_USE_XTENSOR
23 #include <xtensor/xarray.hpp>
24 #include <xtensor/xtensor.hpp>
28 #ifdef EIGEN_WORLD_VERSION
35 #include <Eigen/Eigen>
39 #ifdef CV_MAJOR_VERSION
46 #include <opencv2/opencv.hpp>
98 inline unsigned get()
const;
101 unsigned m_compression_level;
122 template <
class... Args>
146 template <
class T,
class... Args>
147 inline void set(T arg, Args... args);
158 inline void setChunkSize(std::initializer_list<size_t> shape);
166 inline bool flush()
const;
185 bool m_overwrite =
false;
187 unsigned m_compression_level = 0;
188 std::vector<hsize_t> m_chunk_size = {};
220 inline DataSet
dump(File& file,
236 inline DataSet
dump(File& file,
239 const DumpOptions& options);
252 inline DataSet
dump(File& file,
255 const std::vector<size_t>& idx);
268 inline DataSet
dump(File& file,
271 const std::initializer_list<size_t>& idx);
285 inline DataSet
dump(File& file,
288 const std::vector<size_t>& idx,
289 const DumpOptions& options);
303 inline DataSet
dump(File& file,
306 const std::initializer_list<size_t>& idx,
307 const DumpOptions& options);
319 inline T
load(
const File& file,
const std::string& path,
const std::vector<size_t>& idx);
366 const DumpOptions& options);
DumpMode
Write mode for DataSets.
Definition: H5Easy.hpp:67
T load(const File &file, const std::string &path, const std::vector< size_t > &idx)
Load entry "(i,j)" from a rank-two DataSet in an open HDF5 file to a scalar.
Definition: H5Easy_public.hpp:157
void setChunkSize(const std::vector< T > &shape)
Set chunk-size. If the input is rank (size) zero, automatic chunking is enabled.
Definition: H5Easy_public.hpp:58
bool compress() const
Check to compress.
Definition: H5Easy_public.hpp:78
Set compression level for written DataSets.
Definition: H5Easy.hpp:82
Flush
Enable/disable automatic flushing after write operations.
Definition: H5Easy.hpp:74
void set(DumpMode mode)
Overwrite setting.
Definition: H5Easy_public.hpp:35
std::vector< hsize_t > getChunkSize() const
Get chunk size.
Definition: H5Easy_public.hpp:93
unsigned getCompressionLevel() const
Get compression level.
Definition: H5Easy_public.hpp:83
PropertyList< PropertyType::DATASET_CREATE > DataSetCreateProps
Definition: H5PropertyList.hpp:79
Options for dumping data.
Definition: H5Easy.hpp:112
ObjectType
Enum of the types of objects (H5O api)
Definition: H5Object.hpp:25
Definition: H5PropertyList.hpp:117
size_t getSize(const File &file, const std::string &path)
Get the size of an existing DataSet in an open HDF5 file.
Definition: H5Easy_public.hpp:98
Definition: H5PropertyList.hpp:95
std::vector< size_t > getShape(const File &file, const std::string &path)
Get the shape of an existing DataSet in an readable file.
Definition: H5Easy_public.hpp:102
Definition: H5Easy.hpp:51
bool isChunked() const
Check if chunk-size is manually set (or should be computed automatically).
Definition: H5Easy_public.hpp:88
File class.
Definition: H5File.hpp:24
create an HDF5 DataType from a C++ type
Definition: H5_definitions.hpp:36
Class representing an attribute of a dataset or group.
Definition: H5Attribute.hpp:23
DumpOptions()=default
Constructor: accept all defaults.
unsigned get() const
Definition: H5Easy_public.hpp:30
bool overwrite() const
Check to overwrite.
Definition: H5Easy_public.hpp:68
Class representing the space (dimensions) of a dataset.
Definition: H5DataSpace.hpp:37
Attribute dumpAttribute(File &file, const std::string &path, const std::string &key, const T &data, DumpMode mode=DumpMode::Create)
Write object (templated) to a (new) Attribute in an open HDF5 file.
Definition: H5Easy_public.hpp:167
Definition: H5PropertyList.hpp:128
Basic HighFive Exception class.
Definition: H5Exception.hpp:24
NAME string(REPLACE ".cpp" "_bin" example_name ${example_filename}) if($
Definition: hops/Third-party/HighFive/src/examples/CMakeLists.txt:6
DataSet dump(File &file, const std::string &path, const T &data, DumpMode mode=DumpMode::Create)
Write object (templated) to a (new) DataSet in an open HDF5 file.
Definition: H5Easy_public.hpp:115
Compression(bool enable=true)
Definition: H5Easy_public.hpp:16
DumpOptions(Args... args)
Constructor: overwrite (some of the) defaults.
Definition: H5Easy.hpp:123
bool flush() const
Check to flush.
Definition: H5Easy_public.hpp:73
T loadAttribute(const File &file, const std::string &path, const std::string &key)
Load a Attribute in an open HDF5 file to an object (templated).
Definition: H5Easy_public.hpp:185
Class representing a dataset.
Definition: H5DataSet.hpp:27