X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=AliGeant4%2FAliDetSwitchVectorMessenger.h;fp=AliGeant4%2FAliDetSwitchVectorMessenger.h;h=9f28e815d540dd0526814439f9383c7ac590847d;hb=2f310734d089307f51435c249f01b468ca4ea971;hp=0000000000000000000000000000000000000000;hpb=53704fe7d1b93a61eada1e5baf6310c9af91488a;p=u%2Fmrichter%2FAliRoot.git diff --git a/AliGeant4/AliDetSwitchVectorMessenger.h b/AliGeant4/AliDetSwitchVectorMessenger.h new file mode 100644 index 00000000000..9f28e815d54 --- /dev/null +++ b/AliGeant4/AliDetSwitchVectorMessenger.h @@ -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 +#include + +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 +