yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.2
ReaderYODA.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-2024 The YODA collaboration (see AUTHORS for details)
5//
6#ifndef YODA_READERYODA_H
7#define YODA_READERYODA_H
8
9#include "YODA/Reader.h"
10
11namespace YODA {
12
13
15 class ReaderYODA : public Reader {
16 public:
17
19 static Reader& create();
20
22 ReaderYODA(const ReaderYODA&) = delete;
24
26 void operator=(const ReaderYODA&) = delete;
27 void operator=(ReaderYODA&&) = delete;
28
29 void read(std::istream& stream, 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
39 ReaderYODA() { }
40
42 template<typename... Args>
43 void registerDefaultTypes();
44
45 };
46
47
48}
49
50#endif
Persistency reader from YODA text data format.
Definition ReaderYODA.h:15
void operator=(ReaderYODA &&)=delete
static Reader & create()
Singleton creation function.
ReaderYODA(const ReaderYODA &)=delete
Disable copy and move constructors.
void operator=(const ReaderYODA &)=delete
Disable copy and move assignments.
ReaderYODA(ReaderYODA &&)=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.
Pure virtual base class for various output writers.
Definition Reader.h:23
Anonymous namespace to limit visibility.