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

MW_Messenger Class Reference

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

#include <MW_Messenger.h>

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

List of all members.

Public Member Functions

G4String GetCurrentValue (G4UIcommand *command)
 Routine to get current value (not used).
void setMW_SDptr (MW_SD *)
 Routine to set a pointer to the MW_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 MW_MessengerInstance ()
 Routine to return a pointer to the single instance of MW_Messenger.

Private Member Functions

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

Private Attributes

G4UIdirectory * MW_SDdir
 Pointer to MW_SD UI structure.
G4UIcmdWithoutParameter * MW_SDgetThreshold
 Get threshold.
G4UIcmdWithoutParameter * MW_SDgetXresol
 Get X resolution.
G4UIcmdWithoutParameter * MW_SDgetYresol
 Get Y resolution.
G4UIcmdWithADoubleAndUnit * MW_SDsetThreshold
 Set threshold.
G4UIcmdWithADoubleAndUnit * MW_SDsetXresol
 Set X resolution.
G4UIcmdWithADoubleAndUnit * MW_SDsetYresol
 Set Y resolution.
G4UIdirectory * MWdir
 Pointer to MW UI structure.
MW_SDpMW_SD
 Pointer to MW_SD class.

Static Private Attributes

static MW_Messengerm_pInstance = 0
 Data members of MW_Messenger class.

Detailed Description

Declare the Messenger class based on G4UImessenger.

Definition at line 35 of file MW_Messenger.h.


Constructor & Destructor Documentation

MW_Messenger::MW_Messenger (  ) [private]

These routines are kept private to preserve singleton class.

Constructor.

Definition at line 48 of file MW_Messenger.cc.

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

Copy constructor.

Definition at line 66 of file MW_Messenger.h.


Member Function Documentation

G4String MW_Messenger::GetCurrentValue ( G4UIcommand *  command )

Routine to get current value (not used).

Definition at line 150 of file MW_Messenger.cc.

MW_Messenger * MW_Messenger::Instance (  ) [static]

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

Definition at line 39 of file MW_Messenger.cc.

Referenced by MW_SD::MW_SD().

Here is the caller graph for this function:

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

Assignment operator.

void MW_Messenger::setMW_SDptr ( MW_SD ptr )

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

Definition at line 58 of file MW_Messenger.cc.

Referenced by MW_SD::MW_SD().

Here is the caller graph for this function:

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

Routines to set new values and get current values.

Definition at line 111 of file MW_Messenger.cc.


Member Data Documentation

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

Data members of MW_Messenger class.

Instance of MW_Messenger class.

Definition at line 76 of file MW_Messenger.h.

G4UIdirectory* MW_Messenger::MW_SDdir [private]

Pointer to MW_SD UI structure.

Definition at line 81 of file MW_Messenger.h.

G4UIcmdWithoutParameter* MW_Messenger::MW_SDgetThreshold [private]

Get threshold.

Definition at line 84 of file MW_Messenger.h.

G4UIcmdWithoutParameter* MW_Messenger::MW_SDgetXresol [private]

Get X resolution.

Definition at line 86 of file MW_Messenger.h.

G4UIcmdWithoutParameter* MW_Messenger::MW_SDgetYresol [private]

Get Y resolution.

Definition at line 88 of file MW_Messenger.h.

G4UIcmdWithADoubleAndUnit* MW_Messenger::MW_SDsetThreshold [private]

Set threshold.

Definition at line 83 of file MW_Messenger.h.

G4UIcmdWithADoubleAndUnit* MW_Messenger::MW_SDsetXresol [private]

Set X resolution.

Definition at line 85 of file MW_Messenger.h.

G4UIcmdWithADoubleAndUnit* MW_Messenger::MW_SDsetYresol [private]

Set Y resolution.

Definition at line 87 of file MW_Messenger.h.

G4UIdirectory* MW_Messenger::MWdir [private]

Pointer to MW UI structure.

Definition at line 78 of file MW_Messenger.h.

Pointer to MW_SD class.

Definition at line 80 of file MW_Messenger.h.


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