18#include <G4UIcmdWithAnInteger.hh>
19#include <G4UIcommandTree.hh>
20#include <G4UIdirectory.hh>
21#include <G4UImanager.hh>
25 : fkDirectoryName(directoryName),
34 fDirectory->SetGuidance(
"TGeant4 verbose control commands.");
38 new G4UIcmdWithAnInteger(G4String(directoryName +
"all"),
this);
39 G4String guidance(
"Set a given verbose level to all verbose instances.");
43 G4State_PreInit, G4State_Init, G4State_Idle);
71 G4UIcommandTree* cmdTree =
74 for (G4int i = 0; i < cmdTree->GetCommandEntry(); i++) {
75 if (cmdTree->GetCommand(i + 1)->GetCommandName() !=
"all") {
77 cmdTree->GetCommand(i + 1)->DoIt(value);
93 G4UIcmdWithAnInteger* cmd =
99 G4String guidance(
"Set verbose level.");
100 guidance.insert(4, cmdName);
101 cmd->SetGuidance(guidance);
103 G4String parameterName(
"Verbose");
104 parameterName.insert(0, cmdName);
105 cmd->SetParameterName(parameterName,
false);
107 cmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
120 VerboseVector::iterator pos1 =
125 CommandVector::iterator pos2 =
Definition of the TG4VerboseMessenger class.
Definition of the TG4Verbose class.
G4UIcmdWithAnInteger * fGlobalVerboseCmd
global verbose command
VerboseVector fVerboseVector
associated verbose instances
G4UIcommand * AddCommand(TG4Verbose *verbose, const G4String &cmdName)
void RemoveCommand(TG4Verbose *verbose, G4UIcommand *command)
CommandVector fCommandVector
verbose commands
TG4VerboseMessenger()
Not implemented.
virtual ~TG4VerboseMessenger()
G4UIdirectory * fDirectory
command directory
const G4String fkDirectoryName
command directory name
virtual void SetNewValue(G4UIcommand *command, G4String string)
void SetNewValueToAll(const G4String value) const
Base class for defining the verbose level and a common messenger.