63 lines
2.2 KiB
C++
63 lines
2.2 KiB
C++
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * 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: G4AttDefStore.hh,v 1.6 2004/06/07 08:54:00 gcosmo Exp $
|
|
// GEANT4 tag $Name: geant4-07-01 $
|
|
|
|
#ifndef G4ATTDEFSTORE_HH
|
|
#define G4ATTDEFSTORE_HH
|
|
|
|
#include "globals.hh"
|
|
#include <map>
|
|
|
|
class G4AttDef;
|
|
|
|
class G4AttDefStore
|
|
{
|
|
public:
|
|
|
|
static std::map<G4String,G4AttDef>*
|
|
GetInstance(G4String storeName, G4bool& isNew);
|
|
// Returns a pointer to the named store
|
|
// and isNew is true if store is new.
|
|
// The store keeps the ownership of the returned
|
|
// pointer to the map.
|
|
|
|
~G4AttDefStore();
|
|
// Destructor.
|
|
|
|
protected:
|
|
|
|
G4AttDefStore();
|
|
|
|
private:
|
|
|
|
G4AttDefStore(const G4AttDefStore&);
|
|
G4AttDefStore& operator=(const G4AttDefStore&);
|
|
|
|
static std::map<G4String,std::map<G4String,G4AttDef>*> m_stores;
|
|
static G4AttDefStore* theInstance;
|
|
};
|
|
|
|
#endif //G4ATTDEFSTORE_H
|