Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-19 09:13:42

0001 // -*- C++ -*-
0002 //
0003 // This file is part of YODA -- Yet more Objects for Data Analysis
0004 // Copyright (C) 2008-2024 The YODA collaboration (see AUTHORS for details)
0005 //
0006 #ifndef YODA_WRITERFLAT_H
0007 #define YODA_WRITERFLAT_H
0008 
0009 #include "YODA/Writer.h"
0010 
0011 namespace YODA {
0012 
0013 
0014   /// Persistency writer for flat text format.
0015   class WriterFLAT : public Writer {
0016   public:
0017 
0018     /// Singleton creation function
0019     static Writer& create();
0020 
0021     // Include definitions of all write methods (all fulfilled by Writer::write(...))
0022     #include "YODA/WriterMethods.icc"
0023 
0024 
0025   protected:
0026 
0027     void writeAO(std::ostream& stream, const AnalysisObject& ao);
0028 
0029 
0030   private:
0031 
0032     void _writeAnnotations(std::ostream& os, const AnalysisObject& ao);
0033 
0034     /// Private since it's a singleton.
0035     WriterFLAT() { }
0036 
0037   };
0038 
0039 
0040 }
0041 
0042 #endif