Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HEPREP::HepRepWriter Class Referenceabstract

#include <HepRepWriter.h>

+ Inheritance diagram for HEPREP::HepRepWriter:

Public Member Functions

virtual ~HepRepWriter ()
 Destructor.
 
virtual bool addProperty (std::string key, std::string value)=0
 
virtual bool close ()=0
 
virtual bool write (HepRep *heprep, std::string name)=0
 
virtual bool write (std::vector< std::string > layerOrder)=0
 
virtual bool write (HepRepTypeTree *typeTree)=0
 
virtual bool write (HepRepType *type)=0
 
virtual bool write (HepRepTreeID *treeID)=0
 
virtual bool write (HepRepAction *action)=0
 
virtual bool write (HepRepInstanceTree *instanceTree)=0
 
virtual bool write (HepRepInstance *instance)=0
 
virtual bool write (HepRepPoint *point)=0
 
virtual bool write (HepRepAttribute *attribute)=0
 
virtual bool write (HepRepDefinition *definition)=0
 
virtual bool write (HepRepAttValue *attValue)=0
 
virtual bool write (HepRepAttDef *attDef)=0
 

Detailed Description

HepRepWriter interface.

Author
Mark Donszelmann

Definition at line 35 of file HepRepWriter.h.

Constructor & Destructor Documentation

◆ ~HepRepWriter()

virtual HEPREP::HepRepWriter::~HepRepWriter ( )
inlinevirtual

Destructor.

Definition at line 39 of file HepRepWriter.h.

39{ /* nop */; }

Member Function Documentation

◆ addProperty()

virtual bool HEPREP::HepRepWriter::addProperty ( std::string  key,
std::string  value 
)
pure virtual

Adds a property, to be written to the HepRep file when closed.

Parameters
key
value
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

Referenced by G4HepRepSceneHandler::closeHepRep().

◆ close()

virtual bool HEPREP::HepRepWriter::close ( )
pure virtual

Closes the writer and its underlying stream.

Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

Referenced by G4HepRepSceneHandler::closeFile().

◆ write() [1/13]

virtual bool HEPREP::HepRepWriter::write ( HepRep heprep,
std::string  name 
)
pure virtual

Writes a HepRep.

Parameters
heprepto be written.
namefor the heprep to be written (for tagged access), may be ommited.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

Referenced by G4HepRepSceneHandler::closeHepRep().

◆ write() [2/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepAction action)
pure virtual

Writes a HepRepAction.

Parameters
actionto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [3/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepAttDef attDef)
pure virtual

Writes a HepRepAttDef.

Parameters
attDefto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [4/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepAttribute attribute)
pure virtual

Writes a HepRepAttribute.

Parameters
attributeto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [5/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepAttValue attValue)
pure virtual

Writes a HepRepAttValue.

Parameters
attValueto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [6/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepDefinition definition)
pure virtual

Writes a HepRepDefinition.

Parameters
definitionto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [7/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepInstance instance)
pure virtual

Writes a HepRepInstance.

Parameters
instanceto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [8/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepInstanceTree instanceTree)
pure virtual

Writes a HepRepInstanceTree.

Parameters
instanceTreeto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [9/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepPoint point)
pure virtual

Writes a HepRepPoint.

Parameters
pointto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [10/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepTreeID treeID)
pure virtual

Writes a HepRepTreeID.

Parameters
treeIDto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [11/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepType type)
pure virtual

Writes a HepRepType.

Parameters
typeto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [12/13]

virtual bool HEPREP::HepRepWriter::write ( HepRepTypeTree typeTree)
pure virtual

Writes a HepRepTypeTree.

Parameters
typeTreeto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.

◆ write() [13/13]

virtual bool HEPREP::HepRepWriter::write ( std::vector< std::string >  layerOrder)
pure virtual

Writes the layerOrder.

Parameters
layerOrderto be written.
Returns
false in case of a stream problem.

Implemented in cheprep::XMLHepRepWriter.


The documentation for this class was generated from the following file: