Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4CommandsAnalysis/TGo4ObjEnvelope.cxx

Go to the documentation of this file.
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 #include "TGo4ObjEnvelope.h"
00017 
00018 TGo4ObjEnvelope::TGo4ObjEnvelope() :
00019    TNamed(),
00020    fxObject(0),
00021    fxObjName(),
00022    fxObjFolder(),
00023    fbOwner(kTRUE)
00024 {
00025 }
00026   
00027 TGo4ObjEnvelope::TGo4ObjEnvelope(TObject* obj, const char* name, const char* folder) :
00028    TNamed("Go4Envelope",""),
00029    fxObject(obj),
00030    fxObjName(name),
00031    fxObjFolder(folder),
00032    fbOwner(kFALSE)
00033 {
00034 }
00035 
00036 TGo4ObjEnvelope::~TGo4ObjEnvelope()
00037 {
00038    if (fbOwner && fxObject) {
00039       //cout << "Delete object in envelope" << endl;
00040       delete fxObject;   
00041    } 
00042 }
00043 
00044 TObject* TGo4ObjEnvelope::TakeObject()
00045 {
00046    TObject* res = fxObject;
00047    fxObject = 0; 
00048    fbOwner = kFALSE;
00049    return res;
00050 }
00051 
00052 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:51 2005 for Go4-v2.10-5 by doxygen1.2.15