Logo ROOT   6.08/07
Reference Guide
TQClass.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Valeriy Onuchin & Fons Rademakers 15/10/2000
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
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_TQClass
13 #define ROOT_TQClass
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // This is part of the ROOT implementation of the Qt object //
18 // communication mechanism (see also //
19 // http://www.troll.no/qt/metaobjects.html) //
20 // //
21 // See TQObject for details. //
22 // //
23 // This implementation is provided by //
24 // Valeriy Onuchin (onuchin@sirius.ihep.su). //
25 // //
26 //////////////////////////////////////////////////////////////////////////
27 
28 #ifndef ROOT_TQObject
29 #include "TQObject.h"
30 #endif
31 #ifndef ROOT_TClass
32 #include "TClass.h"
33 #endif
34 
35 // This class makes it possible to have a single connection from
36 // all objects of the same class
37 class TQClass : public TQObject, public TClass {
38 
39 private:
40  TQClass(const TClass&) : TQObject(), TClass() {};
41  TQClass& operator=(const TQClass&) { return *this; }
42 
43 friend class TQObject;
44 
45 public:
46  TQClass(const char *name, Version_t cversion,
47  const std::type_info &info, TVirtualIsAProxy *isa,
48  const char *dfil = 0, const char *ifil = 0,
49  Int_t dl = 0, Int_t il = 0) :
50  TQObject(),
51  TClass(name, cversion, info,isa,dfil, ifil, dl, il) { }
52 
53  virtual ~TQClass() { Disconnect(); }
54 
55  ClassDef(TQClass,0) // Class with connections
56 };
57 
58 
59 //---- Class Initialization Behavior --------------------------------------
60 //
61 // This Class and Function are automatically used for classes inheriting from
62 // TQObject. They make it possible to have a single connection from all
63 // objects of the same class.
64 namespace ROOT {
65 namespace Internal {
66  class TDefaultInitBehavior;
68  public:
69  virtual TClass *CreateClass(const char *cname, Version_t id,
70  const std::type_info &info, TVirtualIsAProxy *isa,
71  const char *dfil, const char *ifil,
72  Int_t dl, Int_t il) const
73  {
74  return new TQClass(cname, id, info, isa, dfil, ifil,dl, il);
75  }
76  };
77 
79  {
81  return behave;
82  }
83 }
84 }
85 
86 
87 #endif
88 
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition: StringConv.hxx:21
short Version_t
Definition: RtypesCore.h:61
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Definition: TQObject.h:53
int Int_t
Definition: RtypesCore.h:41
virtual TClass * CreateClass(const char *cname, Version_t id, const std::type_info &info, TVirtualIsAProxy *isa, const char *dfil, const char *ifil, Int_t dl, Int_t il) const
Definition: TQClass.h:69
#define ClassDef(name, id)
Definition: Rtypes.h:254
const TQObjectInitBehavior * DefineBehavior(TQObject *, TQObject *)
Definition: TQClass.h:78
TQClass & operator=(const TQClass &)
Definition: TQClass.h:41
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
TQClass(const TClass &)
Definition: TQClass.h:40
TQClass(const char *name, Version_t cversion, const std::type_info &info, TVirtualIsAProxy *isa, const char *dfil=0, const char *ifil=0, Int_t dl=0, Int_t il=0)
Definition: TQClass.h:46
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
Definition: TQObject.cxx:1295
char name[80]
Definition: TGX11.cxx:109
virtual ~TQClass()
Definition: TQClass.h:53