Geant4  10.02.p03
cheprep::DefaultHepRepFactory Class Reference

#include <DefaultHepRepFactory.h>

Inheritance diagram for cheprep::DefaultHepRepFactory:
Collaboration diagram for cheprep::DefaultHepRepFactory:

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

◆ DefaultHepRepFactory()

cheprep::DefaultHepRepFactory::DefaultHepRepFactory ( )

Definition at line 26 of file DefaultHepRepFactory.cc.

26  {
27 }

◆ ~DefaultHepRepFactory()

cheprep::DefaultHepRepFactory::~DefaultHepRepFactory ( )

Definition at line 29 of file DefaultHepRepFactory.cc.

29  {
30 }

Member Function Documentation

◆ createHepRep()

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

Implements HEPREP::HepRepFactory.

Definition at line 85 of file DefaultHepRepFactory.cc.

85  {
86  return new DefaultHepRep();
87 }

◆ createHepRepAction()

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

Implements HEPREP::HepRepFactory.

Definition at line 64 of file DefaultHepRepFactory.cc.

64  {
65  return new DefaultHepRepAction(name, expression);
66 }
G4String name
Definition: TRTMaterials.hh:40

◆ createHepRepInstance() [1/2]

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

Implements HEPREP::HepRepFactory.

Definition at line 52 of file DefaultHepRepFactory.cc.

52  {
53  return new DefaultHepRepInstance(parent, type);
54 }

◆ createHepRepInstance() [2/2]

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

Implements HEPREP::HepRepFactory.

Definition at line 56 of file DefaultHepRepFactory.cc.

56  {
57  return new DefaultHepRepInstance(parent, type);
58 }

◆ createHepRepInstanceTree()

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

Implements HEPREP::HepRepFactory.

Definition at line 68 of file DefaultHepRepFactory.cc.

69  {
70  return new DefaultHepRepInstanceTree(name, version, typeTreeID);
71 }
G4String name
Definition: TRTMaterials.hh:40

◆ createHepRepPoint()

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

Implements HEPREP::HepRepFactory.

Definition at line 47 of file DefaultHepRepFactory.cc.

48  {
49  return new DefaultHepRepPoint(instance, x, y, z);
50 }
Double_t y

◆ createHepRepReader() [1/2]

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

Implements HEPREP::HepRepFactory.

Reimplemented in cheprep::XMLHepRepFactory.

◆ createHepRepReader() [2/2]

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

Implements HEPREP::HepRepFactory.

Reimplemented in cheprep::XMLHepRepFactory.

Definition at line 37 of file DefaultHepRepFactory.cc.

37  {
38  cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
39  return NULL;
40 }

◆ createHepRepTreeID()

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

Implements HEPREP::HepRepFactory.

Definition at line 60 of file DefaultHepRepFactory.cc.

60  {
61  return new DefaultHepRepTreeID(name, version, qualifier);
62 }
G4String name
Definition: TRTMaterials.hh:40

◆ createHepRepType() [1/2]

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

Implements HEPREP::HepRepFactory.

Definition at line 73 of file DefaultHepRepFactory.cc.

73  {
74  return new DefaultHepRepType(parent, name);
75 }
G4String name
Definition: TRTMaterials.hh:40

◆ createHepRepType() [2/2]

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

Implements HEPREP::HepRepFactory.

Definition at line 77 of file DefaultHepRepFactory.cc.

77  {
78  return new DefaultHepRepType(parent, name);
79 }
G4String name
Definition: TRTMaterials.hh:40

◆ createHepRepTypeTree()

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

Implements HEPREP::HepRepFactory.

Definition at line 81 of file DefaultHepRepFactory.cc.

81  {
82  return new DefaultHepRepTypeTree(treeID);
83 }

◆ createHepRepWriter()

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

Implements HEPREP::HepRepFactory.

Reimplemented in cheprep::XMLHepRepFactory.

Definition at line 42 of file DefaultHepRepFactory.cc.

42  {
43  cerr << "DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
44  return NULL;
45 }

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