Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
cheprep::XMLHepRepFactory Class Reference

#include <XMLHepRepFactory.h>

+ Inheritance diagram for cheprep::XMLHepRepFactory:

Public Member Functions

 XMLHepRepFactory ()
 
 ~XMLHepRepFactory ()
 
HEPREP::HepRepReadercreateHepRepReader (std::istream *in)
 
HEPREP::HepRepReadercreateHepRepReader (std::string filename)
 
HEPREP::HepRepWritercreateHepRepWriter (std::ostream *out, bool randomAccess, bool compress)
 
- Public Member Functions inherited from cheprep::DefaultHepRepFactory
 DefaultHepRepFactory ()
 
 ~DefaultHepRepFactory ()
 
HEPREP::HepRepReadercreateHepRepReader (std::istream *in)
 
HEPREP::HepRepReadercreateHepRepReader (std::string filename)
 
HEPREP::HepRepWritercreateHepRepWriter (std::ostream *out, bool randomAccess, bool compress)
 
HEPREP::HepRepPointcreateHepRepPoint (HEPREP::HepRepInstance *instance, double x, double y, double z)
 
HEPREP::HepRepInstancecreateHepRepInstance (HEPREP::HepRepInstance *parent, HEPREP::HepRepType *type)
 
HEPREP::HepRepInstancecreateHepRepInstance (HEPREP::HepRepInstanceTree *parent, HEPREP::HepRepType *type)
 
HEPREP::HepRepTreeIDcreateHepRepTreeID (std::string name, std::string version, std::string qualifier="top-level")
 
HEPREP::HepRepActioncreateHepRepAction (std::string name, std::string expression)
 
HEPREP::HepRepInstanceTreecreateHepRepInstanceTree (std::string name, std::string version, HEPREP::HepRepTreeID *typeTreeID)
 
HEPREP::HepRepTypecreateHepRepType (HEPREP::HepRepType *parent, std::string name)
 
HEPREP::HepRepTypecreateHepRepType (HEPREP::HepRepTypeTree *parent, std::string name)
 
HEPREP::HepRepTypeTreecreateHepRepTypeTree (HEPREP::HepRepTreeID *treeID)
 
HEPREP::HepRepcreateHepRep ()
 
- Public Member Functions inherited from HEPREP::HepRepFactory
virtual ~HepRepFactory ()
 Destructor.
 
virtual HepRepReadercreateHepRepReader (std::istream *in)=0
 
virtual HepRepReadercreateHepRepReader (std::string inputFileName)=0
 
virtual HepRepWritercreateHepRepWriter (std::ostream *out, bool randomAccess, bool compress)=0
 
virtual HepRepPointcreateHepRepPoint (HepRepInstance *instance, double x, double y, double z)=0
 
virtual HepRepInstancecreateHepRepInstance (HepRepInstance *parent, HepRepType *type)=0
 
virtual HepRepInstancecreateHepRepInstance (HepRepInstanceTree *parent, HepRepType *type)=0
 
virtual HepRepTreeIDcreateHepRepTreeID (std::string name, std::string version, std::string qualifier="top-level")=0
 
virtual HepRepActioncreateHepRepAction (std::string name, std::string expression)=0
 
virtual HepRepInstanceTreecreateHepRepInstanceTree (std::string name, std::string version, HepRepTreeID *typeTree)=0
 
virtual HepRepTypecreateHepRepType (HepRepTypeTree *parent, std::string name)=0
 
virtual HepRepTypecreateHepRepType (HepRepType *parent, std::string name)=0
 
virtual HepRepTypeTreecreateHepRepTypeTree (HepRepTreeID *treeID)=0
 
virtual HepRepcreateHepRep ()=0
 

Detailed Description

Definition at line 19 of file XMLHepRepFactory.h.

Constructor & Destructor Documentation

◆ XMLHepRepFactory()

cheprep::XMLHepRepFactory::XMLHepRepFactory ( )

Definition at line 19 of file XMLHepRepFactory.cc.

19 {
20}

◆ ~XMLHepRepFactory()

cheprep::XMLHepRepFactory::~XMLHepRepFactory ( )

Definition at line 22 of file XMLHepRepFactory.cc.

22 {
23}

Member Function Documentation

◆ createHepRepReader() [1/2]

HEPREP::HepRepReader * cheprep::XMLHepRepFactory::createHepRepReader ( std::istream *  in)
virtual

Creates a HepRepReader from a stream.

Parameters
ininput stream.

Reimplemented from cheprep::DefaultHepRepFactory.

◆ createHepRepReader() [2/2]

HepRepReader * cheprep::XMLHepRepFactory::createHepRepReader ( std::string  inputFileName)
virtual

Creates a HepRepReader from a file name.

Parameters
inputFileNamefile name.

Reimplemented from cheprep::DefaultHepRepFactory.

Definition at line 30 of file XMLHepRepFactory.cc.

30 {
31 cerr << "XMLHepRepFactory::createHepRepReader not implemented" << endl;
32 return NULL;
33}

◆ createHepRepWriter()

HepRepWriter * cheprep::XMLHepRepFactory::createHepRepWriter ( std::ostream *  out,
bool  randomAccess,
bool  compress 
)
virtual

Creates a HepRepWriter.

Parameters
outoutput stream.
randomAccesscreate a writer in a format that will allow random access (may be ignored).
compresscreate a writer that uses compression (may be ignored).

Reimplemented from cheprep::DefaultHepRepFactory.

Definition at line 35 of file XMLHepRepFactory.cc.

35 {
36 return new XMLHepRepWriter(out, randomAccess, compress);
37}
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition: compress.cc:57

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