yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.1.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-2025 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& ao);
28
29
30 private:
31
32 #ifdef HAVE_HDF5
33 void writeAOS(YODA_H5::File&, const vector<const AnalysisObject*>&) { };
34 #endif
35
36 void _writeAnnotations(std::ostream& os, const AnalysisObject& ao);
37
39 WriterYODA() { }
40
41 };
42
43
44}
45
46#endif
AnalysisObject is the base class for histograms and scatters.
Persistency writer for YODA flat text format.
Definition WriterYODA.h:15
static Writer & create()
Singleton creation function.
Definition WriterYODA.cc:16
void writeAO(std::ostream &stream, const AnalysisObject &ao)
Definition WriterYODA.cc:54
Pure virtual base class for various output writers.
Definition Writer.h:31
Anonymous namespace to limit visibility.