Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4VerboseMessenger Class Reference

Messenger class that defines commands for the verbose classes. More...

#include <TG4VerboseMessenger.h>

Inheritance diagram for TG4VerboseMessenger:

Public Types

typedef std::vector< TG4Verbose * > VerboseVector
 The vector of TG4 verbose objects.
 
typedef std::vector< G4UIcmdWithAnInteger * > CommandVector
 The vector of G4 commands with an integer.
 

Public Member Functions

 TG4VerboseMessenger (const G4String &directoryName)
 
virtual ~TG4VerboseMessenger ()
 
G4UIcommandAddCommand (TG4Verbose *verbose, const G4String &cmdName)
 
void RemoveCommand (TG4Verbose *verbose, G4UIcommand *command)
 
virtual void SetNewValue (G4UIcommand *command, G4String string)
 

Private Member Functions

 TG4VerboseMessenger ()
 Not implemented.
 
 TG4VerboseMessenger (const TG4VerboseMessenger &right)
 Not implemented.
 
TG4VerboseMessengeroperator= (const TG4VerboseMessenger &right)
 Not implemented.
 
void SetNewValueToAll (const G4String value) const
 

Private Attributes

const G4String fkDirectoryName
 command directory name
 
G4UIdirectory * fDirectory
 command directory
 
G4UIcmdWithAnInteger * fGlobalVerboseCmd
 global verbose command
 
VerboseVector fVerboseVector
 associated verbose instances
 
CommandVector fCommandVector
 verbose commands
 

Detailed Description

Messenger class that defines commands for the verbose classes.

For all objects derived from TG4Verbose class implements the command

  • /mcVerbose/objectName [level]
Author
I. Hrivnacova; IPN, Orsay

Definition at line 36 of file TG4VerboseMessenger.h.

Member Typedef Documentation

◆ VerboseVector

The vector of TG4 verbose objects.

Definition at line 40 of file TG4VerboseMessenger.h.

◆ CommandVector

std::vector<G4UIcmdWithAnInteger*> TG4VerboseMessenger::CommandVector

The vector of G4 commands with an integer.

Definition at line 43 of file TG4VerboseMessenger.h.

Constructor & Destructor Documentation

◆ TG4VerboseMessenger() [1/3]

TG4VerboseMessenger::TG4VerboseMessenger ( const G4String & directoryName)

Standard constructor

Definition at line 24 of file TG4VerboseMessenger.cxx.

◆ ~TG4VerboseMessenger()

TG4VerboseMessenger::~TG4VerboseMessenger ( )
virtual

Destructor

Definition at line 47 of file TG4VerboseMessenger.cxx.

◆ TG4VerboseMessenger() [2/3]

TG4VerboseMessenger::TG4VerboseMessenger ( )
private

Not implemented.

◆ TG4VerboseMessenger() [3/3]

TG4VerboseMessenger::TG4VerboseMessenger ( const TG4VerboseMessenger & right)
private

Not implemented.

Member Function Documentation

◆ AddCommand()

G4UIcommand * TG4VerboseMessenger::AddCommand ( TG4Verbose * verbose,
const G4String & cmdName )

Add the command specified by cmdName and associate verbose object.

Definition at line 87 of file TG4VerboseMessenger.cxx.

Referenced by TG4Verbose::TG4Verbose(), and TG4Verbose::TG4Verbose().

◆ RemoveCommand()

void TG4VerboseMessenger::RemoveCommand ( TG4Verbose * verbose,
G4UIcommand * command )

Remove the specified verbose and associate command

Definition at line 113 of file TG4VerboseMessenger.cxx.

Referenced by TG4Verbose::~TG4Verbose().

◆ SetNewValue()

void TG4VerboseMessenger::SetNewValue ( G4UIcommand * command,
G4String string )
virtual

Apply command to the associated object.

Definition at line 135 of file TG4VerboseMessenger.cxx.

◆ operator=()

TG4VerboseMessenger & TG4VerboseMessenger::operator= ( const TG4VerboseMessenger & right)
private

Not implemented.

◆ SetNewValueToAll()

void TG4VerboseMessenger::SetNewValueToAll ( const G4String value) const
private

Set the value to all registered verbose instances.

Definition at line 67 of file TG4VerboseMessenger.cxx.

Referenced by SetNewValue().

Member Data Documentation

◆ fkDirectoryName

const G4String TG4VerboseMessenger::fkDirectoryName
private

command directory name

Definition at line 66 of file TG4VerboseMessenger.h.

Referenced by AddCommand(), and SetNewValueToAll().

◆ fDirectory

G4UIdirectory* TG4VerboseMessenger::fDirectory
private

command directory

Definition at line 67 of file TG4VerboseMessenger.h.

Referenced by TG4VerboseMessenger(), and ~TG4VerboseMessenger().

◆ fGlobalVerboseCmd

G4UIcmdWithAnInteger* TG4VerboseMessenger::fGlobalVerboseCmd
private

global verbose command

Definition at line 68 of file TG4VerboseMessenger.h.

Referenced by SetNewValue(), TG4VerboseMessenger(), and ~TG4VerboseMessenger().

◆ fVerboseVector

VerboseVector TG4VerboseMessenger::fVerboseVector
private

associated verbose instances

Definition at line 69 of file TG4VerboseMessenger.h.

Referenced by AddCommand(), RemoveCommand(), and SetNewValue().

◆ fCommandVector

CommandVector TG4VerboseMessenger::fCommandVector
private

verbose commands

Definition at line 70 of file TG4VerboseMessenger.h.

Referenced by AddCommand(), RemoveCommand(), SetNewValue(), and ~TG4VerboseMessenger().


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