GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ObjEnvelope.cxx
Go to the documentation of this file.
1// $Id$
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(nullptr),
19 fxObjName(),
21 fbOwner(kTRUE)
22{
23}
24
25TGo4ObjEnvelope::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 = nullptr;
45 fbOwner = kFALSE;
46 return res;
47}
Bool_t fbOwner
this flag true when envelope created via default constructor in this case object, included in envelop...
virtual ~TGo4ObjEnvelope()
TObject * TakeObject()