Geant4 10.7.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 18 of file XMLHepRepFactory.h.

Constructor & Destructor Documentation

◆ XMLHepRepFactory()

cheprep::XMLHepRepFactory::XMLHepRepFactory ( )

Definition at line 18 of file XMLHepRepFactory.cc.

18 {
19}

◆ ~XMLHepRepFactory()

cheprep::XMLHepRepFactory::~XMLHepRepFactory ( )

Definition at line 21 of file XMLHepRepFactory.cc.

21 {
22}

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 29 of file XMLHepRepFactory.cc.

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

◆ 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 34 of file XMLHepRepFactory.cc.

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

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