]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - AliGeant4/AliDetSwitchVectorMessenger.h
initial version - added with redesign of detector construction classes (see AliGeant4...
[u/mrichter/AliRoot.git] / AliGeant4 / AliDetSwitchVectorMessenger.h
diff --git a/AliGeant4/AliDetSwitchVectorMessenger.h b/AliGeant4/AliDetSwitchVectorMessenger.h
new file mode 100644 (file)
index 0000000..9f28e81
--- /dev/null
@@ -0,0 +1,55 @@
+// $Id$
+// Category: geometry
+//
+// Author: I. Hrivnacova
+//
+// Class AliDetSwitchVectorMessenger
+// ------------------------------------
+// Messenger class that defines commands for AliDetSwitchVector.
+
+#ifndef ALI_DET_SWITCH_VECTOR_MESSENGER_H
+#define ALI_DET_SWITCH_VECTOR_MESSENGER_H
+
+#include <G4UImessenger.hh>
+#include <globals.hh>
+
+class AliDetSwitchVector;
+
+class G4UIcommand;
+class G4UIdirectory;
+class G4UIcmdWithAString;
+class G4UIcmdWithoutParameter;
+
+class AliDetSwitchVectorMessenger: public G4UImessenger
+{
+  public:
+    AliDetSwitchVectorMessenger(AliDetSwitchVector* detSwitchVector);
+    // --> protected
+    // AliDetSwitchVectorMessenger();
+    // AliDetSwitchVectorMessenger(const AliDetSwitchVectorMessenger& right);
+    virtual ~AliDetSwitchVectorMessenger();
+
+    // methods
+    virtual void SetNewValue(G4UIcommand* command, G4String newValues);
+    void SetCandidates();
+    
+  protected:
+    AliDetSwitchVectorMessenger();
+    AliDetSwitchVectorMessenger(const AliDetSwitchVectorMessenger& right);
+
+    // operators
+    AliDetSwitchVectorMessenger& 
+    operator=(const AliDetSwitchVectorMessenger &right);
+             
+  private:
+    AliDetSwitchVector*  fDetSwitchVector; //associated class
+    
+    // commands data members
+    G4UIcmdWithAString*         fSwitchOnCmd;     //command: switchOn 
+    G4UIcmdWithAString*         fSwitchOffCmd;    //command: switchOn
+    G4UIcmdWithoutParameter*    fListCmd;         //command: list
+    G4UIcmdWithoutParameter*    fListAvailableCmd;//command: listAvailable
+};
+
+#endif //ALI_DET_SWITCH_VECTOR_MESSENGER_H
+