yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.2
WriterFLAT.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_WRITERFLAT_H
7#define YODA_WRITERFLAT_H
8
9#include "YODA/Writer.h"
10
11namespace YODA {
12
13
15 class WriterFLAT : 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 void _writeAnnotations(std::ostream& os, const AnalysisObject& ao);
33
35 WriterFLAT() { }
36
37 };
38
39
40}
41
42#endif
AnalysisObject is the base class for histograms and scatters.
Persistency writer for flat text format.
Definition WriterFLAT.h:15
void writeAO(std::ostream &stream, const AnalysisObject &ao)
Definition WriterFLAT.cc:35
static Writer & create()
Singleton creation function.
Definition WriterFLAT.cc:17
Pure virtual base class for various output writers.
Definition Writer.h:19
Anonymous namespace to limit visibility.