ATLAS Offline Software
Public Member Functions | List of all members
H5Utils::IH5Merger Class Referenceabstract

#include <IH5Merger.h>

Inheritance diagram for H5Utils::IH5Merger:
Collaboration diagram for H5Utils::IH5Merger:

Public Member Functions

virtual ~IH5Merger ()=0
 
virtual void merge (H5::H5File &target, const H5::H5File &source)
 Merge a source file into a target file. More...
 
virtual void merge (H5::Group &target, const H5::Group &source)=0
 Merge a source group into a target group. More...
 
virtual void merge (H5::DataSet &target, const H5::DataSet &source)=0
 Merge a source dataset into a target dataset. More...
 
virtual H5::Group createFrom (H5::H5Location &targetLocation, const H5::Group &source)
 Make a new group from information in a source group. More...
 
virtual H5::DataSet createFrom (H5::H5Location &targetLocation, const H5::DataSet &source)=0
 Make a new dataset from information in a source dataset. More...
 

Detailed Description

Definition at line 25 of file IH5Merger.h.

Constructor & Destructor Documentation

◆ ~IH5Merger()

H5Utils::IH5Merger::~IH5Merger ( )
pure virtual

Definition at line 9 of file IH5Merger.cxx.

9 {}

Member Function Documentation

◆ createFrom() [1/2]

virtual H5::DataSet H5Utils::IH5Merger::createFrom ( H5::H5Location &  targetLocation,
const H5::DataSet &  source 
)
pure virtual

Make a new dataset from information in a source dataset.

Parameters
targetLocationWhere the new dataset will be created
sourceThe dataset to use to create the new dataset

Implemented in H5Utils::DefaultMerger.

◆ createFrom() [2/2]

H5::Group H5Utils::IH5Merger::createFrom ( H5::H5Location &  targetLocation,
const H5::Group &  source 
)
virtual

Make a new group from information in a source group.

Parameters
targetLocationWhere the new group will be created
sourceThe group to use to create the new group

The default implementation provided here just copies the source group's name then uses the merge function.

Definition at line 18 of file IH5Merger.cxx.

21  {
22  H5::Group newGroup = targetLocation.createGroup(source.getObjName() );
23  merge(newGroup, source);
24  return newGroup;
25  }

◆ merge() [1/3]

virtual void H5Utils::IH5Merger::merge ( H5::DataSet &  target,
const H5::DataSet &  source 
)
pure virtual

Merge a source dataset into a target dataset.

Parameters
targetThe dataset to merge into
sourceThe dataset to merge from

Implemented in H5Utils::DefaultMerger.

◆ merge() [2/3]

virtual void H5Utils::IH5Merger::merge ( H5::Group &  target,
const H5::Group &  source 
)
pure virtual

Merge a source group into a target group.

Parameters
targetThe group to merge into
sourceThe group to merge from

Implemented in H5Utils::DefaultMerger.

◆ merge() [3/3]

void H5Utils::IH5Merger::merge ( H5::H5File &  target,
const H5::H5File &  source 
)
virtual

Merge a source file into a target file.

Parameters
targetThe file to merge into
sourceThe file to merge from

The default implementation provided here just forwards this to the group function.

Definition at line 11 of file IH5Merger.cxx.

12  {
13  merge(
14  static_cast<H5::Group&>(target),
15  static_cast<const H5::Group&>(source) );
16  }

The documentation for this class was generated from the following files:
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
H5Utils::IH5Merger::merge
virtual void merge(H5::H5File &target, const H5::H5File &source)
Merge a source file into a target file.
Definition: IH5Merger.cxx:11
COOLRates.target
target
Definition: COOLRates.py:1106