ATLAS Offline Software
Loading...
Searching...
No Matches
MergeUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HDF5Utils_MergeUtils_H
6#define HDF5Utils_MergeUtils_H
7
8#include "H5Cpp.h"
9#include <string>
10
16
17namespace H5Utils {
26 const H5::DataSet& target,
27 const H5::DataSet& source,
28 hsize_t mergeAxis);
29
40 const H5::DataSet& target,
41 const H5::DataSet& source,
42 hsize_t mergeAxis,
43 std::string& errMsg);
44
58 void mergeDatasets(
59 H5::DataSet& target,
60 const H5::DataSet& source,
61 hsize_t mergeAxis,
62 std::size_t bufferSize = -1);
63
76 H5::DataSet createDataSet(
77 H5::H5Location& targetLocation,
78 const H5::DataSet& source,
79 hsize_t mergeAxis,
80 int chunkSize = -1,
81 int mergeExtent = -1);
82
93 std::size_t getRowSize(const H5::DataSet& ds, hsize_t axis);
94
95} //> end namespace H5Utils
96
97#endif //> !HDF5Utils_MergeUtils_H
HDF5 Tuple Writer.
Definition common.h:20
bool checkDatasetsToMerge(const H5::DataSet &target, const H5::DataSet &source, hsize_t mergeAxis)
Make sure that two datasets can be merged.
std::size_t getRowSize(const H5::DataSet &ds, hsize_t axis)
Calculate the size of a row of a dataset in bytes.
H5::DataSet createDataSet(H5::H5Location &targetLocation, const H5::DataSet &source, hsize_t mergeAxis, int chunkSize=-1, int mergeExtent=-1)
Make a new dataset using the properties of another.
void mergeDatasets(H5::DataSet &target, const H5::DataSet &source, hsize_t mergeAxis, std::size_t bufferSize=-1)
Merge two datasets.