// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // #ifndef STREAMERHEPREP_H #define STREAMERHEPREP_H 1 #include "FreeHepTypes.h" #include #include #include "HEPREP/HepRep.h" #include "HEPREP/HepRepSelectFilter.h" #include "HEPREP/HepRepWriter.h" #include "HEPREP/HepRepType.h" #include "HEPREP/HepRepTypeTree.h" #include "HEPREP/HepRepInstanceTree.h" /** * * @author M.Donszelmann */ class StreamerHepRep : public virtual HEPREP::HepRep { private: std::vector layers; public: StreamerHepRep(HEPREP::HepRepWriter* streamer); ~StreamerHepRep(); HEPREP::HepRep* copy(HEPREP::HepRepSelectFilter* filter); std::vector* getLayerOrder(); bool addLayer(std::string layer); bool addTypeTree(HEPREP::HepRepTypeTree* typeTree); void removeTypeTree(HEPREP::HepRepTypeTree* typeTree); HEPREP::HepRepTypeTree* getTypeTree(std::string name, std::string version); std::vector* getTypeTrees(); HEPREP::HepRepType* getType(std::string name); bool addInstanceTree(HEPREP::HepRepInstanceTree* instanceTree); void removeInstanceTree(HEPREP::HepRepInstanceTree* instanceTree); HEPREP::HepRepInstanceTree* getInstanceTreeTop(std::string name, std::string version); HEPREP::HepRepInstanceTree* getInstances(std::string name, std::string version, std::vector typeNames); HEPREP::HepRepInstanceTree* getInstancesAfterAction( std::string name, std::string version, std::vector typeNames, std::vector actions, bool getPoints, bool getDrawAtts, bool getNonDrawAtts, std::vector invertAtts); std::string checkForException(); std::vector* getInstanceTrees(); }; #endif