[807] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // File name: RadmonVGeneratorLayout.hh |
---|
| 28 | // Creation date: Oct 2005 |
---|
| 29 | // Main author: Riccardo Capra <capra@ge.infn.it> |
---|
| 30 | // |
---|
| 31 | // Id: $Id: RadmonVGeneratorLayout.hh,v 1.3 2006/06/29 16:15:54 gunter Exp $ |
---|
| 32 | // Tag: $Name: $ |
---|
| 33 | // |
---|
| 34 | // Description: Abstract class for storing primary generator data |
---|
| 35 | // |
---|
| 36 | |
---|
| 37 | #ifndef RADMONVGENERATORLAYOUT_HH |
---|
| 38 | #define RADMONVGENERATORLAYOUT_HH |
---|
| 39 | |
---|
| 40 | // Include files |
---|
| 41 | #include "RadmonVLayoutSubject.hh" |
---|
| 42 | #include "G4String.hh" |
---|
| 43 | #include <iostream> |
---|
| 44 | |
---|
| 45 | class RadmonVGeneratorLayout : public RadmonVLayoutSubject |
---|
| 46 | { |
---|
| 47 | public: |
---|
| 48 | virtual void InsertSource(const G4String & sourceLabel) = 0; |
---|
| 49 | virtual void SetRelativeSourceIntensity(const G4String & sourceLabel, G4double relativeIntensity) = 0; |
---|
| 50 | virtual G4double GetRelativeSourceIntensity(const G4String & sourceLabel) const = 0; |
---|
| 51 | virtual void RemoveSource(const G4String & sourceLabel) = 0; |
---|
| 52 | virtual G4int GetNSources(void) const = 0; |
---|
| 53 | virtual const G4String & GetSourceLabel(G4int index) const = 0; |
---|
| 54 | virtual void AppendSourceAlgorithm(const G4String & sourceLabel, const G4String & algorithmLabel) = 0; |
---|
| 55 | virtual void SetSourceAlgorithmType(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & typeName) = 0; |
---|
| 56 | virtual void RemoveSourceAlgorithm(const G4String & sourceLabel, const G4String & algorithmLabel) = 0; |
---|
| 57 | virtual G4int GetNSourceAlgorithms(const G4String & sourceLabel) const = 0; |
---|
| 58 | virtual const G4String & GetSourceAlgorithmLabel(const G4String & sourceLabel, G4int index) const = 0; |
---|
| 59 | virtual const G4String & GetSourceAlgorithmType(const G4String & sourceLabel, const G4String & algorithmLabel) const = 0; |
---|
| 60 | virtual void SetSourceAlgorithmAttribute(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & attribute, const G4String & value) = 0; |
---|
| 61 | virtual void ClearSourceAlgorithmAttribute(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & attribute) = 0; |
---|
| 62 | virtual G4String GetSourceAlgorithmAttribute(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & attribute, const G4String & defaultValue=G4String()) const = 0; |
---|
| 63 | virtual G4int GetSourceAlgorithmNAttributes(const G4String & sourceLabel, const G4String & algorithmLabel) const = 0; |
---|
| 64 | virtual const G4String & GetSourceAlgorithmAttributeName(const G4String & sourceLabel, const G4String & algorithmLabel, G4int index) const = 0; |
---|
| 65 | virtual G4bool Load(std::istream & in) = 0; |
---|
| 66 | virtual G4bool Save(std::ostream & out) const = 0; |
---|
| 67 | virtual void DumpLayout(std::ostream & out) const = 0; |
---|
| 68 | |
---|
| 69 | protected: |
---|
| 70 | inline RadmonVGeneratorLayout(); |
---|
| 71 | inline ~RadmonVGeneratorLayout(); |
---|
| 72 | |
---|
| 73 | // Hidden constructors and operators |
---|
| 74 | private: |
---|
| 75 | RadmonVGeneratorLayout(RadmonVGeneratorLayout & copy); |
---|
| 76 | RadmonVGeneratorLayout & operator=(const RadmonVGeneratorLayout & copy); |
---|
| 77 | }; |
---|
| 78 | |
---|
| 79 | // Inline implementations |
---|
| 80 | #include "RadmonVGeneratorLayout.icc" |
---|
| 81 | #endif /* RADMONVGENERATORLAYOUT_HH */ |
---|