yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.0
WriterYODA.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_WRITERYODA_H
7#define YODA_WRITERYODA_H
8
9#include "YODA/Writer.h"
10
11namespace YODA {
12
13
15 class WriterYODA : public Writer {
16 public:
17
19 static Writer& create();
20
21 // Include definitions of all write methods (all fulfilled by Writer::write(...))
22 #include "YODA/WriterMethods.icc"
23
24
25 protected:
26
27 void writeAO(std::ostream& stream, const AnalysisObject& c);
28
29
30 private:
31
32 void _writeAnnotations(std::ostream& os, const AnalysisObject& ao);
33
35 WriterYODA() { }
36
37 };
38
39
40}
41
42#endif
AnalysisObject is the base class for histograms and scatters.
Persistency writer for YODA flat text format.
Definition WriterYODA.h:15
void writeAO(std::ostream &stream, const AnalysisObject &c)
Definition WriterYODA.cc:59
static Writer & create()
Singleton creation function.
Definition WriterYODA.cc:21
Pure virtual base class for various output writers.
Definition Writer.h:19
Anonymous namespace to limit visibility.