Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RConverter.h
Go to the documentation of this file.
1 // $Id: RConverter.h,v 1.8 2006/11/30 20:51:35 mato Exp $
2 #ifndef ROOTHISTCNV_RCONVERTER_H
3 #define ROOTHISTCNV_RCONVERTER_H 1
4 
5 // Include files
8 #include "TDirectory.h"
9 #include <string>
10 #include <map>
11 
12 // Forward declarations
13 class ISvcLocator;
14 class TObject;
15 class TTree;
16 class TFile;
17 
19  TDirectory* m_current;
20 public:
22  m_current = gDirectory;
23  }
25  gDirectory = m_current;
26  }
27 };
28 
29 namespace RootHistCnv {
30 
36  class RConverter : public Converter {
37  public:
39  virtual StatusCode createRep(DataObject* pObj,
40  IOpaqueAddress*& refpAddr);
42  static long storageType() { return ROOT_StorageType; }
43  long repSvcType() const { return i_repSvcType(); }
44 
46  StatusCode regTFile(const std::string, const TFile*);
47  StatusCode findTFile(const std::string, TFile*&);
48 
50  std::string directory(const std::string& loc);
51  void setDirectory(const std::string& loc);
52  void setDiskDirectory(const std::string& loc);
56 
57  std::string convertId(const std::string& ) const ;
58 
59  protected:
61  RConverter( const CLID& clid, ISvcLocator* svc )
62  : Converter(storageType(), clid, svc) { }
64  virtual ~RConverter() { }
66  virtual StatusCode readObject( IOpaqueAddress* pAddr,
67  DataObject*& refpObj);
69  virtual TObject* createPersistent(DataObject* pObj);
72  TDirectory* pDir,
73  TObject* pTObject,
74  IOpaqueAddress*& refpAddr);
75 
76  StatusCode createAddress(const std::string& rzdir,
77  const CLID& clid,
78  long id,
79  TObject* pTobj,
80  IOpaqueAddress*& refpAddress);
81 
82  StatusCode createAddress(const std::string& rzdir,
83  const CLID& clid,
84  const std::string& title,
85  TObject* pTobj,
86  IOpaqueAddress*& refpAddress);
87 
89  TDirectory* changeDirectory(DataObject* pObject);
90  };
91 } // namespace RootHistCnv
92 
93 #endif // RootHistCnv_RConverter_H

Generated at Wed Dec 4 2013 14:33:12 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004