Geant4  10.02.p03
G4tgrMessenger Class Reference

#include <G4tgrMessenger.hh>

Inheritance diagram for G4tgrMessenger:
Collaboration diagram for G4tgrMessenger:

Public Member Functions

 G4tgrMessenger ()
 
 ~G4tgrMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
G4String GetCurrentValue (G4UIcommand *command)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Static Public Member Functions

static G4int GetVerboseLevel ()
 
static void SetVerboseLevel (G4int verb)
 

Private Attributes

G4UIdirectorytgDirectory
 
G4UIcmdWithAnIntegerverboseCmd
 

Static Private Attributes

static G4ThreadLocal G4int theVerboseLevel = 0
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 49 of file G4tgrMessenger.hh.

Constructor & Destructor Documentation

◆ G4tgrMessenger()

G4tgrMessenger::G4tgrMessenger ( )

Definition at line 45 of file G4tgrMessenger.cc.

46 {
47  tgDirectory = new G4UIdirectory("/geometry/textInput/");
48  tgDirectory->SetGuidance("Geometry from text file control commands.");
49  verboseCmd = new G4UIcmdWithAnInteger("/geometry/textInput/verbose",this);
50  verboseCmd->SetGuidance("Set Verbose level of geometry text input category.");
51  verboseCmd->SetGuidance(" 0 : Silent");
52  verboseCmd->SetGuidance(" 1 : info verbosity");
53  verboseCmd->SetGuidance(" 2 : debug verbosity");
54  verboseCmd->SetParameterName("level",false);
55  verboseCmd->SetRange("level>=0");
56 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIdirectory * tgDirectory
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
G4UIcmdWithAnInteger * verboseCmd
Here is the call graph for this function:

◆ ~G4tgrMessenger()

G4tgrMessenger::~G4tgrMessenger ( )

Definition at line 60 of file G4tgrMessenger.cc.

61 {
62  delete verboseCmd;
63  delete tgDirectory;
64 }
G4UIdirectory * tgDirectory
G4UIcmdWithAnInteger * verboseCmd

Member Function Documentation

◆ GetCurrentValue()

G4String G4tgrMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 92 of file G4tgrMessenger.cc.

93 {
94  G4String cv;
95  if( command == verboseCmd )
96  {
98  }
99  return cv;
100 }
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:371
static G4int GetVerboseLevel()
G4UIcmdWithAnInteger * verboseCmd
Here is the call graph for this function:

◆ GetVerboseLevel()

G4int G4tgrMessenger::GetVerboseLevel ( )
static

Definition at line 68 of file G4tgrMessenger.cc.

69 {
70  return theVerboseLevel;
71 }
static G4ThreadLocal G4int theVerboseLevel

◆ SetNewValue()

void G4tgrMessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 82 of file G4tgrMessenger.cc.

83 {
84  if( command == verboseCmd )
85  {
87  }
88 }
static G4int GetNewIntValue(const char *paramString)
G4UIcmdWithAnInteger * verboseCmd
static void SetVerboseLevel(G4int verb)
Here is the call graph for this function:

◆ SetVerboseLevel()

void G4tgrMessenger::SetVerboseLevel ( G4int  verb)
static

Definition at line 75 of file G4tgrMessenger.cc.

76 {
77  theVerboseLevel = verb;
78 }
static G4ThreadLocal G4int theVerboseLevel
Here is the caller graph for this function:

Member Data Documentation

◆ tgDirectory

G4UIdirectory* G4tgrMessenger::tgDirectory
private

Definition at line 63 of file G4tgrMessenger.hh.

◆ theVerboseLevel

G4ThreadLocal G4int G4tgrMessenger::theVerboseLevel = 0
staticprivate

Definition at line 65 of file G4tgrMessenger.hh.

◆ verboseCmd

G4UIcmdWithAnInteger* G4tgrMessenger::verboseCmd
private

Definition at line 64 of file G4tgrMessenger.hh.


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