Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:38:19

0001 // -*- C++ -*-
0002 //
0003 // ManagedObject.h is a part of ThePEG - Toolkit for HEP Event Generation
0004 // Copyright (C) 1999-2019 Leif Lonnblad
0005 //
0006 // ThePEG is licenced under version 3 of the GPL, see COPYING for details.
0007 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
0008 //
0009 #ifndef LWH_ManagedObject_H
0010 #define LWH_ManagedObject_H
0011 //
0012 // This is the declaration of the ManagedObject class.
0013 //
0014 
0015 #include "AIManagedObject.h"
0016 #include <iostream>
0017 
0018 namespace LWH {
0019 
0020 using namespace AIDA;
0021 
0022 /**
0023  * The creator of trees.
0024  */
0025 class ManagedObject: public IManagedObject {
0026 
0027 public:
0028 
0029   /// Destructor.
0030   virtual ~ManagedObject() {}
0031 
0032   /**
0033    * Write out the object to the given stream in XML format.
0034    */
0035   virtual bool writeXML(std::ostream & os,
0036             std::string path, std::string name) = 0;
0037 
0038   /**
0039    * Write out the object to the given stream in simple table format.
0040    */
0041   virtual bool writeFLAT(std::ostream & os,
0042              std::string path, std::string name) = 0;
0043 
0044 };
0045 
0046 }
0047 
0048 #endif /* LWH_ManagedObject_H */