Geant4_10
Public Member Functions | List of all members
cheprep::DefaultHepRepFactory Class Reference

#include <DefaultHepRepFactory.h>

Inheritance diagram for cheprep::DefaultHepRepFactory:
Inheritance graph
[legend]
Collaboration diagram for cheprep::DefaultHepRepFactory:
Collaboration graph
[legend]

Public Member Functions

 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. More...
 

Detailed Description

Definition at line 28 of file DefaultHepRepFactory.h.

Constructor & Destructor Documentation

cheprep::DefaultHepRepFactory::DefaultHepRepFactory ( )

Definition at line 26 of file DefaultHepRepFactory.cc.

cheprep::DefaultHepRepFactory::~DefaultHepRepFactory ( )

Definition at line 29 of file DefaultHepRepFactory.cc.

Member Function Documentation

HepRep * cheprep::DefaultHepRepFactory::createHepRep ( )
virtual

Creates a HepRep.

Implements HEPREP::HepRepFactory.

Definition at line 85 of file DefaultHepRepFactory.cc.

HepRepAction * cheprep::DefaultHepRepFactory::createHepRepAction ( std::string  name,
std::string  expression 
)
virtual

Creates a HepRepAction.

Parameters
nameof the action.
expressionof the action.

Implements HEPREP::HepRepFactory.

Definition at line 64 of file DefaultHepRepFactory.cc.

HepRepInstance * cheprep::DefaultHepRepFactory::createHepRepInstance ( HEPREP::HepRepInstance parent,
HEPREP::HepRepType type 
)
virtual

Creates a HepRepInstance.

to add the instance to. type the associated type.

Implements HEPREP::HepRepFactory.

Definition at line 52 of file DefaultHepRepFactory.cc.

HepRepInstance * cheprep::DefaultHepRepFactory::createHepRepInstance ( HEPREP::HepRepInstanceTree parent,
HEPREP::HepRepType type 
)
virtual

Creates a HepRepInstance.

to add the instance to. type the associated type.

Implements HEPREP::HepRepFactory.

Definition at line 56 of file DefaultHepRepFactory.cc.

HepRepInstanceTree * cheprep::DefaultHepRepFactory::createHepRepInstanceTree ( std::string  name,
std::string  version,
HEPREP::HepRepTreeID typeTree 
)
virtual

Creates a HepRepInstanceTree.

The tree needs to be added to the HepRep.

Parameters
nameof the instancetree.
versionof the instancetree.
typeTreeassociated typetree.

Implements HEPREP::HepRepFactory.

Definition at line 68 of file DefaultHepRepFactory.cc.

HepRepPoint * cheprep::DefaultHepRepFactory::createHepRepPoint ( HEPREP::HepRepInstance instance,
double  x,
double  y,
double  z 
)
virtual

Creates a HepRepPoint.

Parameters
instanceto add the point to.
xx coordinate of point.
yy coordinate of point.
zz coordinate of point.

Implements HEPREP::HepRepFactory.

Definition at line 47 of file DefaultHepRepFactory.cc.

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

Creates a HepRepReader from a stream.

Parameters
ininput stream.

Implements HEPREP::HepRepFactory.

Reimplemented in cheprep::XMLHepRepFactory.

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

Creates a HepRepReader from a file name.

Parameters
inputFileNamefile name.

Implements HEPREP::HepRepFactory.

Reimplemented in cheprep::XMLHepRepFactory.

Definition at line 37 of file DefaultHepRepFactory.cc.

HepRepTreeID * cheprep::DefaultHepRepFactory::createHepRepTreeID ( std::string  name,
std::string  version,
std::string  qualifier = "top-level" 
)
virtual

Creates a HepRepTreeID.

Parameters
nameof the treeID.
versionof the treeID.
qualifierof the treeID.

Implements HEPREP::HepRepFactory.

Definition at line 60 of file DefaultHepRepFactory.cc.

HepRepType * cheprep::DefaultHepRepFactory::createHepRepType ( HEPREP::HepRepType parent,
std::string  name 
)
virtual

Creates a HepRepType.

Parameters
parentto add this type to.
nameof the type to create.

Implements HEPREP::HepRepFactory.

Definition at line 73 of file DefaultHepRepFactory.cc.

HepRepType * cheprep::DefaultHepRepFactory::createHepRepType ( HEPREP::HepRepTypeTree parent,
std::string  name 
)
virtual

Creates a HepRepType.

Parameters
parentto add this type to.
nameof the type to create.

Implements HEPREP::HepRepFactory.

Definition at line 77 of file DefaultHepRepFactory.cc.

HepRepTypeTree * cheprep::DefaultHepRepFactory::createHepRepTypeTree ( HEPREP::HepRepTreeID treeID)
virtual

Creates a HepRepTypeTree.

The tree needs to be added to the HepRep.

Parameters
treeIDto name the tree being created.

Implements HEPREP::HepRepFactory.

Definition at line 81 of file DefaultHepRepFactory.cc.

HepRepWriter * cheprep::DefaultHepRepFactory::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).

Implements HEPREP::HepRepFactory.

Reimplemented in cheprep::XMLHepRepFactory.

Definition at line 42 of file DefaultHepRepFactory.cc.


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