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(TDirectory *newCurrent)
TContext & operator=(TContext &)
virtual Long64_t GetSeekDir() const
Bool_t cd1(const char *path)
Buffer for GetPath() function.
void SetWritable(Bool_t writable=kTRUE)
virtual TDirectory * mkdir(const char *name, const char *title="")
static Bool_t Cd(const char *path)
Int_t AppendKey(TKey *key)
virtual void * GetObjectChecked(const char *namecycle, const char *classname)
virtual void Purge(Short_t nkeep=1)
virtual TList * GetList() const
virtual void Close(Option_t *option="")
virtual TObject * FindObject(const TObject *obj) const
virtual Int_t Sizeof() const
virtual void * GetObjectChecked(const char *namecycle, const TClass *cl)
virtual void Append(TObject *obj)
Bool_t IsModified() const
virtual Int_t GetNkeys() const
virtual TObject * FindObject(const char *name) const
virtual const char * GetPath() const
virtual Int_t GetNbytesKeys() const
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 SaveSelf(Bool_t force=kFALSE)
void FillFullPath(TString &buf) const
virtual void FillBuffer(char *&buffer)
TObject * GetMother() const
virtual void Browse(TBrowser *b)
const TDatime & GetModificationDate() const
Int_t WriteObject(const T *obj, const char *name, Option_t *option="")
virtual void WriteDirHeader()
virtual TFile * GetFile() const
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="")
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 TKey * GetKey(const char *name, Short_t cycle=9999) const
void SetSeekDir(Long64_t v)
virtual void Print(Option_t *option="") const
virtual TDirectory * GetDirectory(const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
virtual TList * GetListOfKeys() 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)
TDirectory * GetMotherDir() const
virtual void Clear(Option_t *option="")
virtual void SetBufferSize(Int_t bufsize)
virtual void * GetObjectUnchecked(const char *namecycle)
virtual void DeleteAll(Option_t *option="")
virtual TKey * FindKey(const char *keyname) const
virtual TObject * FindObjectAny(const char *name) const
virtual Int_t GetBufferSize() const
virtual Long64_t GetSeekParent() const
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0) const
virtual Long64_t GetSeekKeys() const
void SetMother(const TObject *mother)
Bool_t IsWritable() const
virtual const char * GetPathStatic() const
void Build(TFile *motherFile=0, TDirectory *motherDir=0)
const TDatime & GetCreationDate() const
virtual void RecursiveRemove(TObject *obj)
TDirectory(const TDirectory &directory)
virtual Bool_t cd(const char *path=0)
virtual void rmdir(const char *name)
static void EncodeNameCycle(char *buffer, const char *name, Short_t cycle)
virtual void ReadAll(Option_t *option="")
virtual TKey * FindKeyAny(const char *keyname) const
void operator=(const TDirectory &)
void GetObject(const char *namecycle, T *&ptr)
virtual void SetName(const char *newname)
virtual void Delete(const char *namecycle="")
virtual TObject * Get(const char *namecycle)