]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliModulesCompositionMessenger.h
Cosmetic changes.
[u/mrichter/AliRoot.git] / AliGeant4 / AliModulesCompositionMessenger.h
1 // $Id$
2 // Category: geometry
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class AliModulesCompositionMessenger
7 // ------------------------------------
8 // Messenger class that defines commands for AliModulesComposition.
9
10 #ifndef ALI_MODULES_COMPOSITION_MESSENGER_H
11 #define ALI_MODULES_COMPOSITION_MESSENGER_H
12
13 #include <G4UImessenger.hh>
14 #include <globals.hh>
15
16 class AliModulesComposition;
17
18 class G4UIcommand;
19 class G4UIdirectory;
20 class G4UIcmdWithAString;
21 class G4UIcmdWithoutParameter;
22 class G4UIcmdWithABool;
23 class G4UIcmdWithADoubleAndUnit;
24
25 class AliModulesCompositionMessenger: public G4UImessenger
26 {
27   public:
28     AliModulesCompositionMessenger(AliModulesComposition* modulesComposition);
29     // --> protected
30     // AliModulesCompositionMessenger();
31     // AliModulesCompositionMessenger(
32     //       const AliModulesCompositionMessenger& right);
33     virtual ~AliModulesCompositionMessenger();
34
35     // methods
36     virtual void SetNewValue(G4UIcommand* command, G4String newValues);
37     void SetCandidates();
38     
39   protected:
40     AliModulesCompositionMessenger();
41     AliModulesCompositionMessenger(
42              const AliModulesCompositionMessenger& right);
43
44     // operators
45     AliModulesCompositionMessenger& operator=(
46              const AliModulesCompositionMessenger &right);
47              
48   private:
49     AliModulesComposition*  fModulesComposition; //associated class
50     G4UIdirectory*          fDirectory;          //command directory
51     
52     // commands data members
53     G4UIcmdWithAString*         fSwitchOnCmd;         //command: switchOn 
54     G4UIcmdWithAString*         fSwitchOffCmd;        //command: switchOn
55     G4UIcmdWithoutParameter*    fListCmd;             //command: list
56     G4UIcmdWithoutParameter*    fListAvailableCmd;    //command: listAvailable
57     G4UIcmdWithADoubleAndUnit*  fFieldValueCmd;       //command: fieldValue
58     G4UIcmdWithABool*           fSetReadGeometryCmd;  //command: readGeometry   
59     G4UIcmdWithABool*           fSetWriteGeometryCmd; //command: writeGeometry    
60     G4UIcmdWithoutParameter*    fPrintMaterialsCmd;   //command: printMatrials     
61     G4UIcmdWithoutParameter*    fGenerateXMLCmd;      //command: generateXML
62 };
63
64 #endif //ALI_MODULES_COMPOSITION_MESSENGER_H
65