Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4AccessWrapper.h

Go to the documentation of this file.
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 TGO4ACCESSWRAPPER_H
00017 #define TGO4ACCESSWRAPPER_H
00018 
00019 #include "TGo4Proxy.h"
00020 
00021 class TGo4AccessWrapper {
00022    public:
00023       TGo4AccessWrapper() {}
00024       virtual ~TGo4AccessWrapper() {}
00025 
00026       TObject* GetObject(const char* name = 0)
00027       {
00028         TGo4Access* proxy = ProvideAccess(name);
00029         TObject* res = 0;
00030         Bool_t owner = kFALSE;
00031         if (proxy) proxy->GetObject(res, owner);
00032         delete proxy;
00033         return res;
00034       }
00035 
00036       TClass* GetObjectClass(const char* name = 0)
00037       {
00038          TGo4Access* proxy = ProvideAccess(name);
00039          TClass* res = proxy ? proxy->GetObjectClass() : 0;
00040          delete proxy;
00041          return res;
00042       }
00043 
00044       const char* GetObjectClassName(const char* name = 0)
00045       {
00046          TGo4Access* proxy = ProvideAccess(name);
00047          const char* res = proxy ? proxy->GetObjectClassName() : 0;
00048          delete proxy;
00049          return res;
00050       }
00051 
00052       virtual TGo4Access* ProvideAccess(const char* name = 0) { return 0; }
00053 
00054    protected:
00055 
00056 
00057    ClassDef(TGo4AccessWrapper,1);
00058 };
00059 
00060 #endif
00061 
00062 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:26 2008 for Go4-v3.04-1 by  doxygen 1.4.2