#ifndef HNODE_H #define HNODE_H #include #include #include #include #include class HNode : public TNamed { protected: TObjArray *fSubNodes; //- Subnodes of this node Int_t fNSubNodes; //- Number of subnodes for this node public: HNode(void); HNode(Text_t *name,Text_t *title); ~HNode(void); virtual void makeBranch(TBranch *parent); virtual void activateBranch(TTree *tree); //virtual Bool_t activateBranch(void); HNode *getSubNode(Int_t i); HNode *getFirstSubNode(void); HNode *getLastSubNode(void); //HRecNode &get(Text_t *name); //void setNSons(Int_t n); void addSubNode(HNode *aSon); Bool_t addSubNodeAt(Int_t idx,HNode *aSon); //void removeSon(Int_t idx); //Int_t getNSons(void); virtual void Clear(void); // Cleans virtual void Delete(void); // Remove all sons and cleans Bool_t IsFolder(void); virtual void Browse(TBrowser *b); ClassDef(HNode,1) //Base class for nodes in tree structures }; #endif /* !HNODE */