Geant4  10.01.p02
G4HnMessenger Class Reference

#include <G4HnMessenger.hh>

+ Inheritance diagram for G4HnMessenger:
+ Collaboration diagram for G4HnMessenger:

Public Member Functions

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

Private Member Functions

G4String GetCmdDirectoryName () const
 
G4String GetHnDescription () const
 
void SetHnAsciiCmd ()
 
void SetHnActivationCmd ()
 
void SetHnActivationToAllCmd ()
 

Private Attributes

G4HnManagerfManager
 Associated class. More...
 
G4UIcmdWithAnIntegerfSetHnAsciiCmd
 
G4UIcommandfSetHnActivationCmd
 
G4UIcmdWithABoolfSetHnActivationAllCmd
 

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 44 of file G4HnMessenger.hh.

Constructor & Destructor Documentation

G4HnMessenger::G4HnMessenger ( G4HnManager manager)

Definition at line 58 of file G4HnMessenger.cc.

References SetHnActivationCmd(), SetHnActivationToAllCmd(), and SetHnAsciiCmd().

+ Here is the call graph for this function:

G4HnMessenger::~G4HnMessenger ( )
virtual

Definition at line 72 of file G4HnMessenger.cc.

References fSetHnActivationAllCmd, fSetHnActivationCmd, and fSetHnAsciiCmd.

Member Function Documentation

G4String G4HnMessenger::GetCmdDirectoryName ( ) const
private

Definition at line 84 of file G4HnMessenger.cc.

References G4String::append(), fManager, G4HnManager::GetHnType(), name, and G4String::toLower().

Referenced by SetHnActivationCmd(), SetHnActivationToAllCmd(), and SetHnAsciiCmd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4HnMessenger::GetHnDescription ( ) const
private

Definition at line 95 of file G4HnMessenger.cc.

References G4String::append(), fManager, and G4HnManager::GetHnType().

Referenced by SetHnActivationCmd(), SetHnActivationToAllCmd(), and SetHnAsciiCmd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HnMessenger::SetHnActivationCmd ( )
private

Definition at line 121 of file G4HnMessenger.cc.

References G4String::append(), G4UIcommand::AvailableForStates(), fSetHnActivationCmd, G4State_Idle, G4State_PreInit, GetCmdDirectoryName(), GetHnDescription(), name, G4UIparameter::SetDefaultValue(), G4UIparameter::SetGuidance(), G4UIcommand::SetGuidance(), G4UIcommand::SetParameter(), and G4UIparameter::SetParameterRange().

Referenced by G4HnMessenger().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HnMessenger::SetHnActivationToAllCmd ( )
private

Definition at line 146 of file G4HnMessenger.cc.

References G4String::append(), fSetHnActivationAllCmd, GetCmdDirectoryName(), GetHnDescription(), name, G4UIcommand::SetGuidance(), and G4UIcmdWithABool::SetParameterName().

Referenced by G4HnMessenger().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HnMessenger::SetHnAsciiCmd ( )
private

Definition at line 104 of file G4HnMessenger.cc.

References G4String::append(), G4UIcommand::AvailableForStates(), fSetHnAsciiCmd, G4State_Idle, G4State_PreInit, GetCmdDirectoryName(), GetHnDescription(), name, G4UIcommand::SetGuidance(), G4UIcmdWithAnInteger::SetParameterName(), and G4UIcommand::SetRange().

Referenced by G4HnMessenger().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HnMessenger::SetNewValue ( G4UIcommand command,
G4String  value 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 165 of file G4HnMessenger.cc.

References G4UIcommand::ConvertToBool(), G4UIcommand::ConvertToInt(), UUtils::Exception(), fManager, fSetHnActivationAllCmd, fSetHnActivationCmd, fSetHnAsciiCmd, G4UIcmdWithABool::GetNewBoolValue(), G4UIcmdWithAnInteger::GetNewIntValue(), G4UIcommand::GetParameterEntries(), G4HnManager::SetActivation(), G4HnManager::SetAscii(), and G4Analysis::Tokenize().

+ Here is the call graph for this function:

Member Data Documentation

G4HnManager* G4HnMessenger::fManager
private

Associated class.

Definition at line 60 of file G4HnMessenger.hh.

Referenced by GetCmdDirectoryName(), GetHnDescription(), and SetNewValue().

G4UIcmdWithABool* G4HnMessenger::fSetHnActivationAllCmd
private

Definition at line 64 of file G4HnMessenger.hh.

Referenced by SetHnActivationToAllCmd(), SetNewValue(), and ~G4HnMessenger().

G4UIcommand* G4HnMessenger::fSetHnActivationCmd
private

Definition at line 63 of file G4HnMessenger.hh.

Referenced by SetHnActivationCmd(), SetNewValue(), and ~G4HnMessenger().

G4UIcmdWithAnInteger* G4HnMessenger::fSetHnAsciiCmd
private

Definition at line 62 of file G4HnMessenger.hh.

Referenced by SetHnAsciiCmd(), SetNewValue(), and ~G4HnMessenger().


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