source: trunk/source/physics_lists/builders/include/G4WarnPLStatus.hh@ 1093

Last change on this file since 1093 was 825, checked in by garnier, 17 years ago

import all except CVS

File size: 4.2 KB
Line 
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#ifndef G4WarnPLStatus_hh
27#define G4WarnPLStatus_hh
28
29#include "G4String.hh"
30
31class G4WarnPLStatus
32{
33public:
34 G4WarnPLStatus();
35 void Unsupported(const G4String aPL, const G4String Replacement ="") const ;
36 void Experimental(const G4String aPL) const ;
37};
38
39inline
40G4WarnPLStatus::G4WarnPLStatus()
41{}
42
43inline
44void G4WarnPLStatus::Unsupported(const G4String aPL, const G4String Replacement) const
45{
46 G4cout <<
47"*=====================================================================" <<G4endl <<
48"* " <<G4endl <<
49"* The Physics list "<<aPL<<" is NO LONGER SUPPORTED ! " <<G4endl <<
50"* and is likely to be deleted in a future release of Geant4 " <<G4endl <<
51"* " <<G4endl;
52 if (Replacement.size() > 0)
53 {
54 G4cout <<
55"* We recommend you try the physics lists "<<Replacement<< "," <<G4endl <<
56"* this offers similar functionality for most use cases " <<G4endl <<
57"* " <<G4endl;
58
59 }
60 G4cout <<
61"* " <<G4endl <<
62"* We invite you to report your use case for, and your experience with" <<G4endl <<
63"* this physics list on the Geant4 User Forum dedicated to physics " <<G4endl <<
64"* lists: " <<G4endl <<
65"* http://geant4-hn.slac.stanford.edu:5090/HyperNews/public/get/phys-list.html"<<G4endl <<
66"* " <<G4endl <<
67"*=====================================================================*" <<G4endl<<
68G4endl;
69}
70void G4WarnPLStatus::Experimental(const G4String aPL) const
71{
72 G4cout <<
73"*=====================================================================" <<G4endl <<
74"* " <<G4endl <<
75"* The Physics list "<<aPL<<" is an experimental physics list ! " <<G4endl <<
76"* " <<G4endl <<
77"* Please report your use case for, and your experience with this " <<G4endl <<
78"* physics list on the Geant4 User Forum dedicated to physics lists: " <<G4endl <<
79"* http://geant4-hn.slac.stanford.edu:5090/HyperNews/public/get/phys-list.html"<<G4endl <<
80"* " <<G4endl <<
81"*=====================================================================*" <<G4endl<<
82G4endl;
83}
84
85#endif
Note: See TracBrowser for help on using the repository browser.