Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4Verbose.h
Go to the documentation of this file.
1#ifndef TG4_VERBOSE_H
2#define TG4_VERBOSE_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include "TG4VerboseMessenger.h"
19
20#include <globals.hh>
21
22class G4UIcommand;
23
34
36{
37 public:
38 TG4Verbose(const G4String& cmdName);
39 TG4Verbose(const G4String& cmdName, G4int verboseLevel);
40 virtual ~TG4Verbose();
41
42 // set methods
43 virtual void VerboseLevel(G4int level);
44
45 // get methods
46 virtual G4int VerboseLevel() const;
47
48 private:
52 TG4Verbose(const TG4Verbose& right);
55
56 // methods
58
59 // static data members
60 static const G4int fgkDefaultVerboseLevel;
61 static const G4String fgkDirectoryName;
62 static G4ThreadLocal G4int fgCounter;
63 static G4ThreadLocal TG4VerboseMessenger* fgMessenger;
64
65 // data members
68};
69
70// inline methods
71
72inline void TG4Verbose::VerboseLevel(G4int level)
73{
75 fVerboseLevel = level;
76}
77
78inline G4int TG4Verbose::VerboseLevel() const
79{
81 return fVerboseLevel;
82}
83
84#endif // TG4_VERBOSE_H
Definition of the TG4VerboseMessenger class.
Messenger class that defines commands for the verbose classes.
Base class for defining the verbose level and a common messenger.
Definition TG4Verbose.h:36
virtual G4int VerboseLevel() const
Definition TG4Verbose.h:78
TG4VerboseMessenger * CreateMessenger()
G4UIcommand * fCommand
verbose command
Definition TG4Verbose.h:67
TG4Verbose()
Not implemented.
TG4Verbose(const TG4Verbose &right)
Not implemented.
static const G4String fgkDirectoryName
directory name
Definition TG4Verbose.h:61
static const G4int fgkDefaultVerboseLevel
default verbose level
Definition TG4Verbose.h:60
TG4Verbose & operator=(const TG4Verbose &right)
Not implemented.
static G4ThreadLocal G4int fgCounter
object counter
Definition TG4Verbose.h:62
static G4ThreadLocal TG4VerboseMessenger * fgMessenger
messenger
Definition TG4Verbose.h:63
virtual ~TG4Verbose()
G4int fVerboseLevel
verbose level
Definition TG4Verbose.h:66