Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4VerboseMessenger.h
Go to the documentation of this file.
1#ifndef TG4_VERBOSE_MESSENGER_H
2#define TG4_VERBOSE_MESSENGER_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 <G4UImessenger.hh>
19#include <globals.hh>
20#include <vector>
21
22class TG4Verbose;
23
24class G4UIdirectory;
25class G4UIcommand;
26class G4UIcmdWithAnInteger;
27
35
37{
38 public:
40 typedef std::vector<TG4Verbose*> VerboseVector;
41
43 typedef std::vector<G4UIcmdWithAnInteger*> CommandVector;
44
45 public:
46 TG4VerboseMessenger(const G4String& directoryName);
47 virtual ~TG4VerboseMessenger();
48
49 // methods
50 G4UIcommand* AddCommand(TG4Verbose* verbose, const G4String& cmdName);
51 void RemoveCommand(TG4Verbose* verbose, G4UIcommand* command);
52 virtual void SetNewValue(G4UIcommand* command, G4String string);
53
54 private:
61
62 // methods
63 void SetNewValueToAll(const G4String value) const;
64
65 // data members
66 const G4String fkDirectoryName;
67 G4UIdirectory* fDirectory;
68 G4UIcmdWithAnInteger* fGlobalVerboseCmd;
71};
72
73#endif // TG4_VERBOSE_MESSENGER_H
Messenger class that defines commands for the verbose classes.
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.
G4UIdirectory * fDirectory
command directory
const G4String fkDirectoryName
command directory name
std::vector< G4UIcmdWithAnInteger * > CommandVector
The vector of G4 commands with an integer.
TG4VerboseMessenger & operator=(const TG4VerboseMessenger &right)
Not implemented.
virtual void SetNewValue(G4UIcommand *command, G4String string)
TG4VerboseMessenger(const TG4VerboseMessenger &right)
Not implemented.
void SetNewValueToAll(const G4String value) const
std::vector< TG4Verbose * > VerboseVector
The vector of TG4 verbose objects.
Base class for defining the verbose level and a common messenger.
Definition TG4Verbose.h:36