00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 00017 00018 #ifndef TGO4COMCREATEOBJECT_H 00019 #define TGO4COMCREATEOBJECT_H 00020 00021 #include "Go4CommandsAnalysis/TGo4AnalysisObjectCommand.h" 00022 #include "TString.h" 00023 00034 class TGo4ComCreateObject : public TGo4AnalysisObjectCommand { 00035 public: 00036 00037 TGo4ComCreateObject(); 00038 00039 TGo4ComCreateObject(const char* obname, const char* classname); 00040 00041 virtual ~TGo4ComCreateObject(); 00042 00043 Int_t ExeCom(); 00044 00046 const char* GetObjectClassName() const { return fxObjectClassName.Data(); } 00047 00049 void SetObjectClassName(const char* name) { fxObjectClassName = name; } 00050 00051 protected: 00052 00054 TNamed* CreateObject(); 00055 00056 private: 00057 00059 TString fxObjectClassName ; 00060 00061 ClassDef(TGo4ComCreateObject,1) 00062 }; 00063 #endif //TGO4COMCREATEOBJECT_H 00064 00065 //----------------------------END OF GO4 SOURCE FILE ---------------------