12#ifndef ROOT_TDirectory
13#define ROOT_TDirectory
63 Bool_t
cd1(
const char *path);
64 static Bool_t
Cd1(
const char *path);
93 if ( newCurrent ) newCurrent->
cd();
99 if ( newCurrent ) newCurrent->
cd();
118 virtual void Clear(Option_t *option=
"");
119 virtual void Close(Option_t *option=
"");
120 virtual void Copy(TObject &)
const { MayNotUse(
"Copy(TObject &)"); }
121 virtual Bool_t
cd(
const char *path = 0);
123 virtual void Delete(
const char *namecycle=
"");
124 virtual void Draw(Option_t *option=
"");
126 virtual TKey *
FindKey(
const char *keyname)
const;
131 virtual TObject *
Get(
const char *namecycle);
132 virtual TDirectory *
GetDirectory(
const char *namecycle, Bool_t printError =
false,
const char *funcname =
"GetDirectory");
133 template <
class T>
inline void GetObject(
const char* namecycle, T*& ptr)
143 virtual TKey *
GetKey(
const char *name, Short_t cycle=9999)
const;
160 virtual void ls(Option_t *option=
"")
const;
162 virtual void Paint(Option_t *option=
"");
163 virtual void Print(Option_t *option=
"")
const;
164 virtual void Purge(Short_t nkeep=1);
169 virtual void rmdir(
const char *name);
179 virtual Int_t
Write(
const char *name=0, Int_t opt=0, Int_t bufsiz=0);
180 virtual Int_t
Write(
const char *name=0, Int_t opt=0, Int_t bufsiz=0)
const ;
181 virtual Int_t
WriteTObject(
const TObject *obj,
const char *name=0, Option_t *option=
"");
182 template <
class T>
inline Int_t
WriteObject(
const T* obj,
const char* name, Option_t *option=
"")
184 return WriteObjectAny(obj,TBuffer::GetClass(
typeid(T)),name,option);
186 virtual Int_t
WriteObjectAny(
const void *obj,
const char *classname,
const char *name, Option_t *option=
"");
187 virtual Int_t
WriteObjectAny(
const void *obj,
const TClass *cl,
const char *name, Option_t *option=
"");
191 static Bool_t
Cd(
const char *path);
R__EXTERN TDirectory * gDirectory
TContext(TDirectory *previous, TDirectory *newCurrent)
TContext & operator=(TContext &)
TContext(TDirectory *newCurrent)
virtual Long64_t GetSeekDir() const
Bool_t cd1(const char *path)
Buffer for GetPath() function.
void SetWritable(Bool_t writable=kTRUE)
static Bool_t Cd(const char *path)
virtual TList * GetList() const
Int_t AppendKey(TKey *key)
virtual void Purge(Short_t nkeep=1)
virtual void Close(Option_t *option="")
virtual Int_t Sizeof() const
virtual TKey * FindKey(const char *keyname) const
virtual TDirectory * mkdir(const char *name, const char *title="")
virtual void Append(TObject *obj)
virtual TObject * FindObject(const TObject *obj) const
Bool_t IsModified() const
virtual Int_t GetNkeys() const
virtual Int_t GetNbytesKeys() const
virtual void * GetObjectChecked(const char *namecycle, const TClass *cl)
virtual void ls(Option_t *option="") const
virtual void Copy(TObject &) const
virtual Int_t WriteObjectAny(const void *obj, const TClass *cl, const char *name, Option_t *option="")
virtual void * GetObjectChecked(const char *namecycle, const char *classname)
virtual void SaveSelf(Bool_t force=kFALSE)
void FillFullPath(TString &buf) const
virtual void FillBuffer(char *&buffer)
virtual void Browse(TBrowser *b)
Int_t WriteObject(const T *obj, const char *name, Option_t *option="")
virtual void WriteDirHeader()
virtual void Paint(Option_t *option="")
virtual void Draw(Option_t *option="")
virtual Int_t WriteObjectAny(const void *obj, const char *classname, const char *name, Option_t *option="")
const TDatime & GetModificationDate() const
virtual TObject * Get(const char *namecycle)
virtual TDirectory * GetDirectory(const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
virtual void * GetObjectUnchecked(const char *namecycle)
static void DecodeNameCycle(const char *namecycle, char *name, Short_t &cycle)
virtual Int_t WriteTObject(const TObject *obj, const char *name=0, Option_t *option="")
virtual TFile * GetFile() const
virtual TKey * GetKey(const char *name, Short_t cycle=9999) const
void SetSeekDir(Long64_t v)
virtual void Print(Option_t *option="") const
virtual TKey * FindKeyAny(const char *keyname) const
TDirectory(const char *name, const char *title, Option_t *option="", TDirectory *motherDir=0)
static Bool_t Cd1(const char *path)
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0)
virtual void Clear(Option_t *option="")
virtual void SetBufferSize(Int_t bufsize)
virtual void DeleteAll(Option_t *option="")
virtual TObject * FindObject(const char *name) const
virtual Int_t GetBufferSize() const
virtual TObject * FindObjectAny(const char *name) const
virtual Long64_t GetSeekParent() const
virtual const char * GetPathStatic() const
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0) const
virtual Long64_t GetSeekKeys() const
virtual TList * GetListOfKeys() const
void SetMother(const TObject *mother)
Bool_t IsWritable() const
TDirectory * GetMotherDir() const
void Build(TFile *motherFile=0, TDirectory *motherDir=0)
virtual const char * GetPath() const
virtual void RecursiveRemove(TObject *obj)
TDirectory(const TDirectory &directory)
virtual Bool_t cd(const char *path=0)
TObject * GetMother() const
virtual void rmdir(const char *name)
static void EncodeNameCycle(char *buffer, const char *name, Short_t cycle)
virtual void ReadAll(Option_t *option="")
void operator=(const TDirectory &)
void GetObject(const char *namecycle, T *&ptr)
virtual void SetName(const char *newname)
virtual void Delete(const char *namecycle="")
const TDatime & GetCreationDate() const