Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4AnalysisVerbose Class Reference

#include <G4AnalysisVerbose.hh>

Public Member Functions

 G4AnalysisVerbose (const G4String &type, G4int verboseLevel)
 
 ~G4AnalysisVerbose ()
 
void Message (const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
 
void Message (const G4String &action, const G4String &object, G4ExceptionDescription &description, G4bool success=true) const
 

Detailed Description

Definition at line 37 of file G4AnalysisVerbose.hh.

Constructor & Destructor Documentation

G4AnalysisVerbose::G4AnalysisVerbose ( const G4String type,
G4int  verboseLevel 
)

Definition at line 36 of file G4AnalysisVerbose.cc.

37  : fType(type),
38  fToBeDoneText(),
39  fDoneText(),
40  fFailureText()
41 {
42  if ( verboseLevel == 1 ) fDoneText = "- done";
43  if ( verboseLevel == 2 ) fDoneText = "- done";
44  if ( verboseLevel == 3 ) fToBeDoneText = "done ";
45  if ( verboseLevel == 4 ) fToBeDoneText = "going to ";
46  fFailureText = "has failed";
47 }
G4AnalysisVerbose::~G4AnalysisVerbose ( )

Definition at line 50 of file G4AnalysisVerbose.cc.

51 {
52 }

Member Function Documentation

void G4AnalysisVerbose::Message ( const G4String action,
const G4String object,
const G4String objectName,
G4bool  success = true 
) const

Definition at line 59 of file G4AnalysisVerbose.cc.

63 {
64  G4cout << "... "
65  << fToBeDoneText
66  << action
67  << " "
68  << fType
69  << " "
70  << object
71  << " : "
72  << objectName
73  << " ";
74 
75  if ( success )
76  G4cout << fDoneText;
77  else
78  G4cout << fFailureText;
79 
80  G4cout << G4endl;
81 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4AnalysisVerbose::Message ( const G4String action,
const G4String object,
G4ExceptionDescription description,
G4bool  success = true 
) const

Definition at line 84 of file G4AnalysisVerbose.cc.

88 {
89  G4cout << "... "
90  << fToBeDoneText
91  << action
92  << " "
93  << fType
94  << " "
95  << object
96  << " : "
97  << description.str()
98  << " ";
99 
100  if ( success )
101  G4cout << fDoneText;
102  else
103  G4cout << fFailureText;
104 
105  G4cout << G4endl;
106 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

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