00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE 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 #ifndef TGO4OBJENVELOPE_H 00017 #define TGO4OBJENVELOPE_H 00018 00019 #include "TNamed.h" 00020 00021 class TGo4ObjEnvelope : public TNamed { 00022 public: 00023 TGo4ObjEnvelope(); 00024 TGo4ObjEnvelope(TObject* obj, const char* name, const char* folder); 00025 virtual ~TGo4ObjEnvelope(); 00026 00027 const char* GetObjName() const { return fxObjName.Data(); } 00028 const char* GetObjFolder() const { return fxObjFolder.Data(); } 00029 00030 TObject* GetObject() const { return fxObject; } 00031 TObject* TakeObject(); 00032 00033 protected: 00034 00035 TObject* fxObject; 00036 TString fxObjName; 00037 TString fxObjFolder; 00038 00042 Bool_t fbOwner; 00043 00044 ClassDef(TGo4ObjEnvelope, 1); 00045 }; 00046 00047 00048 #endif 00049 00050 //----------------------------END OF GO4 SOURCE FILE ---------------------