Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cheprep::XMLHepRepFactory Class Reference

#include <XMLHepRepFactory.h>

Inheritance diagram for cheprep::XMLHepRepFactory:
Collaboration 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::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. More...
 

Detailed Description

Definition at line 19 of file XMLHepRepFactory.h.

Constructor & Destructor Documentation

cheprep::XMLHepRepFactory::XMLHepRepFactory ( )

Definition at line 19 of file XMLHepRepFactory.cc.

19  {
20 }
cheprep::XMLHepRepFactory::~XMLHepRepFactory ( )

Definition at line 22 of file XMLHepRepFactory.cc.

22  {
23 }

Member Function Documentation

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

Creates a HepRepReader from a stream.

Parameters
ininput stream.

Reimplemented from cheprep::DefaultHepRepFactory.

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 }
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: