00001 // @(#)rooeeplayer:$Id: TFriendProxyDescriptor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Philippe Canal 06/06/2004 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TFriendProxyDescriptor 00013 #define ROOT_TFriendProxyDescriptor 00014 00015 #ifndef ROOT_TNamed 00016 #include "TNamed.h" 00017 #endif 00018 #ifndef ROOT_TList 00019 #include "TList.h" 00020 #endif 00021 00022 00023 namespace ROOT { 00024 00025 class TFriendProxyDescriptor : public TNamed { 00026 00027 Bool_t fDuplicate; 00028 Int_t fIndex; 00029 TList fListOfTopProxies; 00030 00031 public: 00032 TFriendProxyDescriptor(const char *treename, const char *aliasname, Int_t index); 00033 TFriendProxyDescriptor(const TFriendProxyDescriptor &b) :TNamed(b){;} 00034 TFriendProxyDescriptor& operator=(const TFriendProxyDescriptor&) {return *this;} 00035 00036 Int_t GetIndex() const { return fIndex; } 00037 TList *GetListOfTopProxies() { return &fListOfTopProxies; } 00038 00039 Bool_t IsEquivalent(const TFriendProxyDescriptor *other); 00040 00041 void OutputClassDecl(FILE *hf, int offset, UInt_t maxVarname); 00042 void OutputDecl(FILE *hf, int offset, UInt_t maxVarname); 00043 00044 Bool_t IsDuplicate() { return fDuplicate; } 00045 void SetDuplicate() { fDuplicate = kTRUE; } 00046 00047 ClassDef(TFriendProxyDescriptor,0); // Describe a branch from a TTreeFriend. 00048 }; 00049 } 00050 00051 #endif