yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.1.0
ReaderH5.h
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// This file is part of YODA -- Yet more Objects for Data Analysis
4// Copyright (C) 2008-2023 The YODA collaboration (see AUTHORS for details)
5//
6#ifndef YODA_READERH5_H
7#define YODA_READERH5_H
8
9#include "YODA/Reader.h"
10
11namespace YODA {
12
13
15 class ReaderH5 : public Reader {
16 public:
17
19 static Reader& create();
20
22 ReaderH5(const ReaderH5&) = delete;
23 ReaderH5(ReaderH5&&) = delete;
24
26 void operator=(const ReaderH5&) = delete;
27 void operator=(ReaderH5&&) = delete;
28
29 void read(const YODA_H5::File& file, std::vector<AnalysisObject*>& aos,
30 const std::string& match = "",
31 const std::string& unmatch = "");
32
33 // Include definitions of all read methods (all fulfilled by Reader::read(...))
34 #include "YODA/ReaderMethods.icc"
35
36 private:
37
38 // Suppress stream read method
39 void read(std::istream&, std::vector<AnalysisObject*>&,
40 const std::string& = "", const std::string& = "") { };
41
43 ReaderH5() { }
44
46 template<typename... Args>
47 void registerDefaultTypes();
48
49 };
50
51
52}
53
54#endif
Persistency reader from YODA text data format.
Definition ReaderH5.h:15
ReaderH5(const ReaderH5 &)=delete
Disable copy and move constructors.
void operator=(const ReaderH5 &)=delete
Disable copy and move assignments.
static Reader & create()
Singleton creation function.
Definition ReaderH5.cc:28
void operator=(ReaderH5 &&)=delete
void read(const YODA_H5::File &file, std::vector< AnalysisObject * > &aos, const std::string &match="", const std::string &unmatch="")
Read in a collection of objects objs from an HDF5 file.
Definition ReaderH5.cc:78
ReaderH5(ReaderH5 &&)=delete
Pure virtual base class for various output writers.
Definition Reader.h:35
Anonymous namespace to limit visibility.