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

MF_Messenger Class Reference

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

#include <MF_Messenger.h>

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

List of all members.

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_MessengerInstance ()
 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_Messengeroperator= (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_FieldpMF
 Pointer to Magnetic_Field class.

Static Private Attributes

static MF_Messengerm_pInstance = 0
 Data members of MF_Messenger class.

Detailed Description

Declare the Messenger class based on G4UImessenger.

Definition at line 35 of file MF_Messenger.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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.


Member Data Documentation

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.

Pointer to Magnetic_Field class.

Definition at line 78 of file MF_Messenger.h.


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