Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

SM_Messenger Class Reference

Declare the Messenger class based on G4UImessenger. More...

#include <SM_Messenger.h>

Inheritance diagram for SM_Messenger:
Inheritance graph
[legend]
Collaboration diagram for SM_Messenger:
Collaboration graph
[legend]

List of all members.

Public Member Functions

G4String GetCurrentValue (G4UIcommand *command)
 Routine to get current value (not used).
void SetNewValue (G4UIcommand *command, G4String newValues)
 Routines to set new values and get current values.
void setSM_SDptr (SM_SD *)
 Routine to set a pointer to the SM_SD class and define the user functions available.

Static Public Member Functions

static SM_MessengerInstance ()
 Routine to return a pointer to the single instance of SM_Messenger.

Private Member Functions

 SM_Messenger ()
 These routines are kept private to preserve singleton class.
 SM_Messenger (SM_Messenger const &)
 Copy constructor.
SM_Messengeroperator= (SM_Messenger const &)
 Assignment operator.

Private Attributes

SM_SDpSM_SD
 Pointer to SM_SD class.
G4UIdirectory * SM_SDdir
 Pointer to SM_SD UI structure.
G4UIcmdWithoutParameter * SM_SDgetEresol
 Get E resolution.
G4UIcmdWithoutParameter * SM_SDgetThreshold
 Get threshold.
G4UIcmdWithADoubleAndUnit * SM_SDsetEresol
 Set E resolution.
G4UIcmdWithADoubleAndUnit * SM_SDsetThreshold
 Set threshold.
G4UIdirectory * SMdir
 Pointer to SM UI structure.

Static Private Attributes

static SM_Messengerm_pInstance = 0
 Data members of SM_Messenger class.

Detailed Description

Declare the Messenger class based on G4UImessenger.

Definition at line 35 of file SM_Messenger.h.


Constructor & Destructor Documentation

SM_Messenger::SM_Messenger (  ) [private]

These routines are kept private to preserve singleton class.

Constructor.

Definition at line 48 of file SM_Messenger.cc.

SM_Messenger::SM_Messenger ( SM_Messenger const &   ) [inline, private]

Copy constructor.

Definition at line 66 of file SM_Messenger.h.


Member Function Documentation

G4String SM_Messenger::GetCurrentValue ( G4UIcommand *  command )

Routine to get current value (not used).

Definition at line 125 of file SM_Messenger.cc.

SM_Messenger * SM_Messenger::Instance (  ) [static]

Routine to return a pointer to the single instance of SM_Messenger.

Definition at line 39 of file SM_Messenger.cc.

Referenced by SM_SD::SM_SD().

Here is the caller graph for this function:

SM_Messenger& SM_Messenger::operator= ( SM_Messenger const &   ) [private]

Assignment operator.

void SM_Messenger::SetNewValue ( G4UIcommand *  command,
G4String  newValues 
)

Routines to set new values and get current values.

Definition at line 97 of file SM_Messenger.cc.

void SM_Messenger::setSM_SDptr ( SM_SD ptr )

Routine to set a pointer to the SM_SD class and define the user functions available.

Definition at line 58 of file SM_Messenger.cc.

Referenced by SM_SD::SM_SD().

Here is the caller graph for this function:


Member Data Documentation

SM_Messenger * SM_Messenger::m_pInstance = 0 [static, private]

Data members of SM_Messenger class.

Instance of SM_Messenger class.

Definition at line 76 of file SM_Messenger.h.

Pointer to SM_SD class.

Definition at line 80 of file SM_Messenger.h.

G4UIdirectory* SM_Messenger::SM_SDdir [private]

Pointer to SM_SD UI structure.

Definition at line 81 of file SM_Messenger.h.

G4UIcmdWithoutParameter* SM_Messenger::SM_SDgetEresol [private]

Get E resolution.

Definition at line 86 of file SM_Messenger.h.

G4UIcmdWithoutParameter* SM_Messenger::SM_SDgetThreshold [private]

Get threshold.

Definition at line 84 of file SM_Messenger.h.

G4UIcmdWithADoubleAndUnit* SM_Messenger::SM_SDsetEresol [private]

Set E resolution.

Definition at line 85 of file SM_Messenger.h.

G4UIcmdWithADoubleAndUnit* SM_Messenger::SM_SDsetThreshold [private]

Set threshold.

Definition at line 83 of file SM_Messenger.h.

G4UIdirectory* SM_Messenger::SMdir [private]

Pointer to SM UI structure.

Definition at line 78 of file SM_Messenger.h.


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