GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ObjEnvelope.cxx
Go to the documentation of this file.
1 // $Id: TGo4ObjEnvelope.cxx 2627 2019-10-01 08:02:45Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TGo4ObjEnvelope.h"
15 
17  TNamed(),
18  fxObject(0),
19  fxObjName(),
20  fxObjFolder(),
21  fbOwner(kTRUE)
22 {
23 }
24 
25 TGo4ObjEnvelope::TGo4ObjEnvelope(TObject* obj, const char* name, const char* folder) :
26  TNamed("Go4Envelope",""),
27  fxObject(obj),
28  fxObjName(name),
29  fxObjFolder(folder),
30  fbOwner(kFALSE)
31 {
32 }
33 
35 {
36  if (fbOwner && fxObject) {
37  delete fxObject;
38  }
39 }
40 
42 {
43  TObject* res = fxObject;
44  fxObject = 0;
45  fbOwner = kFALSE;
46  return res;
47 }
TObject * TakeObject()
TObject * fxObject
virtual ~TGo4ObjEnvelope()