00001 // $Id: TGo4CommandProtoList.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4COMMANDPROTOLIST_H 00015 #define TGO4COMMANDPROTOLIST_H 00016 00021 #include "TNamed.h" 00022 00023 class TMutex; 00024 class TObjArray; 00025 00026 class TGo4Command; 00027 class TGo4RemoteCommand; 00028 00029 class TGo4CommandProtoList : public TNamed { 00030 public: 00031 00032 TGo4CommandProtoList(const char* name); 00033 00034 virtual ~TGo4CommandProtoList(); 00035 00037 virtual void ShowCommands(); 00038 00040 TGo4Command* MakeCommand(const char* name); 00041 00043 TGo4Command* MakeCommand(TGo4RemoteCommand* remcon); 00044 00046 void RemoveCommand(const char* name); 00047 00049 void AddCommand(TGo4Command* com); 00050 00052 TGo4CommandProtoList& operator+=(const TGo4CommandProtoList& two); 00053 00054 private: 00055 TGo4CommandProtoList(); 00056 00059 TObjArray * fxCommandList; 00060 00063 TMutex * fxListMutex; 00064 00065 ClassDef(TGo4CommandProtoList,1) 00066 }; 00067 00068 #endif //TGO4COMMANDPROTOLIST_H