Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "TGo4ObjEnvelope.h"
00015
00016 TGo4ObjEnvelope::TGo4ObjEnvelope() :
00017 TNamed(),
00018 fxObject(0),
00019 fxObjName(),
00020 fxObjFolder(),
00021 fbOwner(kTRUE)
00022 {
00023 }
00024
00025 TGo4ObjEnvelope::TGo4ObjEnvelope(TObject* obj, const char* name, const char* folder) :
00026 TNamed("Go4Envelope",""),
00027 fxObject(obj),
00028 fxObjName(name),
00029 fxObjFolder(folder),
00030 fbOwner(kFALSE)
00031 {
00032 }
00033
00034 TGo4ObjEnvelope::~TGo4ObjEnvelope()
00035 {
00036 if (fbOwner && fxObject) {
00037 delete fxObject;
00038 }
00039 }
00040
00041 TObject* TGo4ObjEnvelope::TakeObject()
00042 {
00043 TObject* res = fxObject;
00044 fxObject = 0;
00045 fbOwner = kFALSE;
00046 return res;
00047 }