Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TFriendProxyDescriptor.h
Go to the documentation of this file.
1 // @(#)rooeeplayer:$Id$
2 // Author: Philippe Canal 06/06/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, 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_TFriendProxyDescriptor
13 #define ROOT_TFriendProxyDescriptor
14 
15 #include "TNamed.h"
16 #include "TList.h"
17 
18 
19 namespace ROOT {
20 namespace Internal {
21 
22  class TFriendProxyDescriptor : public TNamed {
23 
24  Bool_t fDuplicate;
25  Int_t fIndex;
26  TList fListOfTopProxies;
27 
28  private:
29  TFriendProxyDescriptor(const TFriendProxyDescriptor &b);
30  TFriendProxyDescriptor& operator=(const TFriendProxyDescriptor &b);
31 
32  public:
33  TFriendProxyDescriptor(const char *treename, const char *aliasname, Int_t index);
34 
35  Int_t GetIndex() const { return fIndex; }
36  TList *GetListOfTopProxies() { return &fListOfTopProxies; }
37 
38  Bool_t IsEquivalent(const TFriendProxyDescriptor *other);
39 
40  void OutputClassDecl(FILE *hf, int offset, UInt_t maxVarname);
41  void OutputDecl(FILE *hf, int offset, UInt_t maxVarname);
42 
43  Bool_t IsDuplicate() { return fDuplicate; }
44  void SetDuplicate() { fDuplicate = kTRUE; }
45 
46  ClassDef(TFriendProxyDescriptor,0); // Describe a branch from a TTreeFriend.
47  };
48 }
49 }
50 
51 #endif