12 #ifndef ROOT_TDataSetIter
13 #define ROOT_TDataSetIter
67 virtual TDataSet *operator()( TDataSet::EDataSetPass mode=TDataSet::kContinue ) {
return Next(mode);}
68 virtual TDataSet *operator()(
const Char_t *path) {
return Find(path); }
70 virtual Int_t GetDepth()
const {
return fDepth;}
71 virtual TDataSet *Cwd()
const {
return fWorkingDataSet;}
73 virtual Int_t
Du()
const;
74 virtual Int_t Df()
const {
return 0;}
76 virtual TDataSet *
Find(
const Char_t *path,
TDataSet *rootset=0,Bool_t mkdir=kFALSE,Bool_t titleFlag=kFALSE);
79 virtual TDataSet *
FindByName(
const Char_t *name,
const Char_t *path=
"",Option_t *opt=
"");
83 virtual TObject *
FindObject(
const Char_t *name)
const;
84 virtual TObject *
FindObject(
const TObject *obj)
const;
86 virtual Int_t Flag(UInt_t flag=TDataSet::kMark,TDataSet::EBitOpt reset=TDataSet::kSet){
return Flag((
TDataSet *)0,flag,reset);}
87 virtual Int_t Flag(
const Char_t *path,UInt_t flag=TDataSet::kMark,TDataSet::EBitOpt reset=TDataSet::kSet);
88 virtual Int_t Flag(
TDataSet *dataset,UInt_t flag=TDataSet::kMark,TDataSet::EBitOpt reset=TDataSet::kSet);
90 virtual TDataSet *
Ls(
const Char_t *dirname=
"",Option_t *opt=
"")
const;
91 virtual TDataSet *
Ls(
const Char_t *dirname,Int_t depth)
const;
92 virtual void ls(Option_t *dirname=
"")
const {
Ls(dirname,
"");}
93 virtual TDataSet *ls(TString dirname,Option_t *opt=
"")
const {
return Ls(dirname.Data(),opt);}
94 virtual TDataSet *ls(
const Char_t *dirname,Int_t depth)
const {
return Ls(dirname,depth);}
96 virtual TDataSet *Md(
const Char_t *dirname) {
return Mkdir(dirname);}
97 virtual TString Path(
const Char_t *path) {
TDataSet *set =
Find(path);
return set ? set->
Path():TString (
"");}
98 virtual TString Path() {
return fWorkingDataSet ? fWorkingDataSet->
Path() : TString (
"");}
99 virtual TDataSet *Pwd(Option_t *opt=
"")
const {
if (Cwd()) Cwd()->
ls(opt);
return Cwd();}
102 virtual TDataSet *Rd(
const Char_t *dirname,Option_t *option=
"") {
return Rmdir(
Find(dirname),option);}
108 virtual TDataSet *
Next( TDataSet::EDataSetPass mode=TDataSet::kContinue);
109 virtual TDataSet *
Next(
const Char_t *path,
TDataSet *rootset=0,Bool_t mkdir=kFALSE){
return Find(path,rootset,mkdir);}
110 virtual Bool_t Notify() {
return TObject::Notify();}
111 virtual void Notify(
TDataSet *dataset);
112 const Option_t *GetOption()
const {
return fNext ? fNext->GetOption():0; }
virtual Int_t Du() const
summarize dataset usage by Herb Ward proposal
virtual TDataSet * Mkdir(const Char_t *dirname)
to be documented
virtual TDataSet * FindByTitle(const Char_t *title, const Char_t *path="", Option_t *opt="")
to be documented
virtual TDataSet * Cd(const Char_t *dirname)
virtual TDataSet * Next(TDataSet::EDataSetPass mode=TDataSet::kContinue)
virtual TDataSet * FindByPath(const Char_t *path, TDataSet *rootset=0, Bool_t mkdir=kFALSE)
to be documented
virtual TDataSet * Dir(Char_t *dirname)
virtual TDataSet * FindByPointer(TDataSet *set, const Char_t *path=0, Option_t *opt="")
TDataSet * NextDataSet(TIter &next)
to be documented
virtual TDataSet * Ls(const Char_t *dirname="", Option_t *opt="") const
virtual TObject * FindObject(const Char_t *name) const
virtual TDataSet * operator[](const Char_t *path)
virtual void Reset(TDataSet *l=0, Int_t depth=0)
virtual ~TDataSetIter()
to be documented
virtual void ls(Option_t *option="") const
virtual TDataSet * FindByName(const Char_t *name, const Char_t *path="", Option_t *opt="")
to be documented
TDataSet * GetNullSet()
return a fake pointer == -1 casted to (TDataSet *)
virtual TDataSet * Rmdir(TDataSet *dataset, Option_t *option="")
virtual TDataSet * FindDataSet(const Char_t *name, const Char_t *path="", Option_t *opt="")
virtual TDataSet * Find(const Char_t *path, TDataSet *rootset=0, Bool_t mkdir=kFALSE, Bool_t titleFlag=kFALSE)
virtual TString Path() const
return the full path of this data set
virtual TDataSet * operator*() const
operator *