Geant4-11
Public Member Functions | Private Attributes | Static Private Attributes
G4AnalysisVerbose Class Reference

#include <G4AnalysisVerbose.hh>

Public Member Functions

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

Private Attributes

std::array< G4String, fkMaxLevelfDoneText { G4String("- done"), G4String("- done"), G4String(), G4String() }
 
G4String fFailureText { "has failed" }
 
std::array< G4String, fkMaxLevelfToBeDoneText { G4String(), G4String(), G4String("done "), G4String("going to ") }
 

Static Private Attributes

static constexpr int fkMaxLevel = 4
 

Detailed Description

Definition at line 38 of file G4AnalysisVerbose.hh.

Constructor & Destructor Documentation

◆ G4AnalysisVerbose()

G4AnalysisVerbose::G4AnalysisVerbose ( )

Definition at line 34 of file G4AnalysisVerbose.cc.

35{}

◆ ~G4AnalysisVerbose()

G4AnalysisVerbose::~G4AnalysisVerbose ( )
default

Member Function Documentation

◆ Message()

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

Definition at line 42 of file G4AnalysisVerbose.cc.

47{
48 if ( level == 0 ) return;
49
50 if ( level < 0 || level > fkMaxLevel ) {
51 // add exception
52 return;
53 }
54
55 G4cout << "... "
56 << fToBeDoneText[level-1]
57 << action
58 << " "
59 << object;
60 if ( objectName.size() ) {
61 G4cout
62 << " : "
63 << objectName;
64 }
65
66 if ( success )
67 G4cout << " " << fDoneText[level-1];
68 else
69 G4cout << " " << fFailureText;
70
71 G4cout << G4endl;
72}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
std::array< G4String, fkMaxLevel > fDoneText
std::array< G4String, fkMaxLevel > fToBeDoneText
static constexpr int fkMaxLevel

References geant4_check_module_cycles::action, fDoneText, fFailureText, fkMaxLevel, fToBeDoneText, G4cout, and G4endl.

Referenced by G4AnalysisManagerState::Message().

Field Documentation

◆ fDoneText

std::array<G4String, fkMaxLevel> G4AnalysisVerbose::fDoneText { G4String("- done"), G4String("- done"), G4String(), G4String() }
private

Definition at line 55 of file G4AnalysisVerbose.hh.

Referenced by Message().

◆ fFailureText

G4String G4AnalysisVerbose::fFailureText { "has failed" }
private

Definition at line 59 of file G4AnalysisVerbose.hh.

Referenced by Message().

◆ fkMaxLevel

constexpr int G4AnalysisVerbose::fkMaxLevel = 4
staticconstexprprivate

Definition at line 52 of file G4AnalysisVerbose.hh.

Referenced by Message().

◆ fToBeDoneText

std::array<G4String, fkMaxLevel> G4AnalysisVerbose::fToBeDoneText { G4String(), G4String(), G4String("done "), G4String("going to ") }
private

Definition at line 57 of file G4AnalysisVerbose.hh.

Referenced by Message().


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