Logo ROOT   6.08/07
Reference Guide
TClassGenerator.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Philippe Canal 24/06/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers, and al. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TClassGenerator
13 #define ROOT_TClassGenerator
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TClassGenerator //
18 // //
19 // Objects following this interface can be passed onto the TROOT object //
20 // to implement a user customized way to create the TClass objects. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TObject
25 #include "TObject.h"
26 #endif
27 
28 class TClass;
29 
30 class TClassGenerator : public TObject {
31 
32 protected:
34  virtual ~TClassGenerator() { }
35 
36 public:
37  virtual TClass *GetClass(const char* classname, Bool_t load) = 0;
38  virtual TClass *GetClass(const std::type_info& typeinfo, Bool_t load) = 0;
39  virtual TClass *GetClass(const char* classname, Bool_t load, Bool_t silent);
40  virtual TClass *GetClass(const std::type_info& typeinfo, Bool_t load, Bool_t silent);
41 
42  ClassDef(TClassGenerator,1); // interface for TClass generators
43 };
44 
45 #endif
bool Bool_t
Definition: RtypesCore.h:59
virtual ~TClassGenerator()
#define ClassDef(name, id)
Definition: Rtypes.h:254
Objects following this interface can be passed onto the TROOT object to implement a user customized w...
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
Mother of all ROOT objects.
Definition: TObject.h:37
virtual TClass * GetClass(const char *classname, Bool_t load)=0