ATLAS Offline Software
Loading...
Searching...
No Matches
common.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef H5UTILS_COMMON_H
5#define H5UTILS_COMMON_H
6
7namespace H5 {
8 class CompType;
9 class DataSpace;
10 class DSetCreatPropList;
11}
12
13#include "WriterConfiguration.h"
14
15#include "H5Traits.h"
16#include "H5Cpp.h"
17
18#include <vector>
19
20namespace H5Utils {
21 namespace internal {
22
23 // packing utility, to create a compact on-disk representation of
24 // the HDF5 type.
25 H5::CompType packed(H5::CompType in);
26
27 // functions which are used by writers to set up the data spaces
28 // and datasets
29 H5::DataSpace getUnlimitedSpace(const std::vector<hsize_t>& max_length);
30 template <size_t N>
31 H5::DSetCreatPropList getChunckedDatasetParams(
33 std::vector<hsize_t> getStriding(std::vector<hsize_t> max_length);
34
35 // writer error handling
36 void throwIfExists(const std::string& name, const H5::Group& in_group);
37 void printDestructorError(const std::string& msg);
38
39 }
40}
41
42#include "common.icc"
43
44#endif
clssses to add type traits for H5
Definition common.h:21
H5::CompType packed(H5::CompType in)
Definition common.cxx:16
H5::DSetCreatPropList getChunckedDatasetParams(const WriterConfiguration< N > &)
std::vector< hsize_t > getStriding(std::vector< hsize_t > max_length)
Definition common.cxx:38
H5::DataSpace getUnlimitedSpace(const std::vector< hsize_t > &max_length)
Definition common.cxx:31
void printDestructorError(const std::string &msg)
Definition common.cxx:24
void throwIfExists(const std::string &name, const H5::Group &in_group)
Definition common.cxx:46
HDF5 Tuple Writer.
Definition common.h:20
HDF5 Traits.
MsgStream & msg
Definition testRead.cxx:32