Files
geant4/source/persistency/global/include/G4VMaterialMap.hh
T
2016-06-08 15:55:53 +02:00

51 lines
1.3 KiB
C++

// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VMaterialMap.hh,v 1.1 2000/06/09 12:53:25 morita Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
#ifndef G4VMaterialMap_hh
#define G4VMaterialMap_hh 1
// class description:
//
// This is an abstract base class for bookkeeping the material name
// for retrieving persistent geometry.
// User must provide the appropriate class for constructing material
// objects from material name when retrieving a stored persistent
// geometry.
// The virtual method LookUp() will be invoked from G4PersistentGeomMan.
//
#include "globals.hh"
#include "G4Material.hh"
class G4VMaterialMap
{
public:
static G4VMaterialMap* GetMaterialMap();
// Static method to return the pointer to the singleton object.
// Note that this method does NOT create the singleton object.
protected:
G4VMaterialMap();
public:
virtual ~G4VMaterialMap();
private:
static G4VMaterialMap * fMaterialMap;
public: // with description
virtual G4Material* LookUp(const G4String aName)=0;
// Returns a pointer to the material
};
#endif