#ifndef _rooDBObj_h #define _rooDBObj_h #ifndef _rooObj_h #include "rooObj.h" #endif //////////////////////////////////////////////////////////////////////////////// class rooDBObj: public rooObj { private: rooFDObj* fFD; //parent fd public: rooDBObj(); rooDBObj(void* imp):rooObj(imp) {} virtual ~rooDBObj() {} rooDBObj(const rooDBObj&); rooDBObj& operator=(const rooDBObj&); Bool_t change(const TString& newDB="", const TString& newHost="", const TString& newPath="", FILE* fp=stdout) const; Bool_t close() const; rooFDObj containedIn(); rooFDObj& containedIn(rooFDObj& fd); Bool_t contains(rooContItr& itr,Int_t openMode=kooNoOpen) const; Bool_t convertObjects(); Bool_t exist(const TString& dbName, Int_t openMode=kooNoOpen); Bool_t exist(const rooFDObj &fd, const TString& dbName, Int_t openMode=kooNoOpen); TString fileName() const; rooContObj getDefaultContObj(Int_t openMode=kooNoOpen) const; TString hostName() const; Bool_t isValid() const; Bool_t lock(Int_t lockMode) const; TString name() const; ULong_t numContObjs() const; Bool_t open(const TString& DBname, Int_t openMode = kooRead); Bool_t open(const rooFDObj& FDhandle, const TString& DBname, Int_t openMode = kooRead); Bool_t open(Int_t openMode=kooRead) const; Int_t openMode() const; TString pathName() const; Bool_t tidy(FILE* fp=stdout, const TString& hostName="", const TString& pathName="") const; virtual Int_t typeN() const; virtual TString typeName() const; Bool_t update() const; // // methods inherited from TObject // virtual void Print(Option_t *option=""); virtual const char* GetName() { fName=name(); return fName.Data(); } virtual const char* GetTitle(); virtual void Browse(TBrowser *b); virtual Bool_t IsFolder() { return kTRUE; } ClassDef(rooDBObj,0) // corresponds to ooHandle(ooDBObj) }; R__EXTERN rooDBObj* gooTopDB; #endif // _rooDBObj_h