Declare the Messenger class based on G4UImessenger. More...
#include <MF_Messenger.h>
Public Member Functions | |
G4String | GetCurrentValue (G4UIcommand *command) |
Routine to get current value (not used). | |
void | setMFptr (Magnetic_Field *ptr) |
Routine to set a pointer to the MF_SD class and define the user functions available. | |
void | SetNewValue (G4UIcommand *command, G4String newValues) |
Routines to set new values and get current values. | |
Static Public Member Functions | |
static MF_Messenger * | Instance () |
Routine to return a pointer to the single instance of MF_Messenger. | |
Private Member Functions | |
MF_Messenger () | |
These routines are kept private to preserve singleton class. | |
MF_Messenger (MF_Messenger const &) | |
Copy constructor. | |
MF_Messenger & | operator= (MF_Messenger const &) |
Assignment operator. | |
Private Attributes | |
G4UIdirectory * | MFdir |
Pointer to MF UI structure. | |
G4UIcmdWithoutParameter * | MFgetScale |
Magnetic field scale command. | |
G4UIcmdWithADouble * | MFsetScale |
Magnetic field scale command. | |
Magnetic_Field * | pMF |
Pointer to Magnetic_Field class. | |
Static Private Attributes | |
static MF_Messenger * | m_pInstance = 0 |
Data members of MF_Messenger class. |
Declare the Messenger class based on G4UImessenger.
Definition at line 35 of file MF_Messenger.h.
MF_Messenger::MF_Messenger | ( | ) | [private] |
These routines are kept private to preserve singleton class.
Constructor.
Definition at line 48 of file MF_Messenger.cc.
MF_Messenger::MF_Messenger | ( | MF_Messenger const & | ) | [inline, private] |
Copy constructor.
Definition at line 66 of file MF_Messenger.h.
G4String MF_Messenger::GetCurrentValue | ( | G4UIcommand * | command ) |
Routine to get current value (not used).
Definition at line 92 of file MF_Messenger.cc.
MF_Messenger * MF_Messenger::Instance | ( | ) | [static] |
Routine to return a pointer to the single instance of MF_Messenger.
Definition at line 39 of file MF_Messenger.cc.
Referenced by Magnetic_Field::Magnetic_Field().
MF_Messenger& MF_Messenger::operator= | ( | MF_Messenger const & | ) | [private] |
Assignment operator.
void MF_Messenger::setMFptr | ( | Magnetic_Field * | ptr ) |
Routine to set a pointer to the MF_SD class and define the user functions available.
Definition at line 58 of file MF_Messenger.cc.
Referenced by Magnetic_Field::Magnetic_Field().
void MF_Messenger::SetNewValue | ( | G4UIcommand * | command, |
G4String | newValues | ||
) |
Routines to set new values and get current values.
Definition at line 76 of file MF_Messenger.cc.
MF_Messenger * MF_Messenger::m_pInstance = 0 [static, private] |
Data members of MF_Messenger class.
Instance of MF_Messenger class.
Definition at line 76 of file MF_Messenger.h.
G4UIdirectory* MF_Messenger::MFdir [private] |
Pointer to MF UI structure.
Definition at line 79 of file MF_Messenger.h.
G4UIcmdWithoutParameter* MF_Messenger::MFgetScale [private] |
Magnetic field scale command.
Definition at line 82 of file MF_Messenger.h.
G4UIcmdWithADouble* MF_Messenger::MFsetScale [private] |
Magnetic field scale command.
Definition at line 81 of file MF_Messenger.h.
Magnetic_Field* MF_Messenger::pMF [private] |
Pointer to Magnetic_Field class.
Definition at line 78 of file MF_Messenger.h.