yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.1.0
ReaderFLAT.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-2025 The YODA collaboration (see AUTHORS for details)
5//
6#ifndef YODA_READERFLAT_H
7#define YODA_READERFLAT_H
8
9#include "YODA/Reader.h"
10
11namespace YODA {
12
13
15 class ReaderFLAT : public Reader {
16 public:
17
19 static Reader& create();
20
22 ReaderFLAT(const ReaderFLAT&) = delete;
24
26 void operator=(const ReaderFLAT&) = delete;
27 void operator=(ReaderFLAT&&) = delete;
28
29 void read(std::istream& stream, std::vector<AnalysisObject*>& aos,
30 const std::string& match = "",
31 const std::string& unmatch = "");
32
33 private:
34
35 // Suppress H5 read method
36 #ifdef HAVE_HDF5
37 void read(const YODA_H5::File&, std::vector<AnalysisObject*>&,
38 const std::string& = "", const std::string& = "") { };
39 #endif
40
42 ReaderFLAT() { }
43
45 void registerDefaultTypes();
46
47 };
48
49}
50
51#endif
Persistency reader from YODA flat text data format.
Definition ReaderFLAT.h:15
ReaderFLAT(const ReaderFLAT &)=delete
Disable copy and move constructors.
ReaderFLAT(ReaderFLAT &&)=delete
void operator=(ReaderFLAT &&)=delete
void read(std::istream &stream, std::vector< AnalysisObject * > &aos, const std::string &match="", const std::string &unmatch="")
Read in a collection of objects objs from output stream stream.
void operator=(const ReaderFLAT &)=delete
Disable copy and move assignments.
static Reader & create()
Singleton creation function.
Pure virtual base class for various output writers.
Definition Reader.h:35
Anonymous namespace to limit visibility.