ROOTANA
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
TDirectory Class Reference

#include <TDirectory-example.h>

Inheritance diagram for TDirectory:
Inheritance graph
[legend]
Collaboration diagram for TDirectory:
Collaboration graph
[legend]

Data Structures

class  TContext
 

Public Types

enum  { kCloseDirectory = BIT(7) }
 

Public Member Functions

 TDirectory ()
 
 TDirectory (const char *name, const char *title, Option_t *option="", TDirectory *motherDir=0)
 
virtual ~TDirectory ()
 
virtual void Append (TObject *obj)
 
void Add (TObject *obj)
 
Int_t AppendKey (TKey *key)
 
virtual void Browse (TBrowser *b)
 
void Build (TFile *motherFile=0, TDirectory *motherDir=0)
 
virtual void Clear (Option_t *option="")
 
virtual void Close (Option_t *option="")
 
virtual void Copy (TObject &) const
 
virtual Bool_t cd (const char *path=0)
 
virtual void DeleteAll (Option_t *option="")
 
virtual void Delete (const char *namecycle="")
 
virtual void Draw (Option_t *option="")
 
virtual void FillBuffer (char *&buffer)
 
virtual TKey * FindKey (const char *keyname) const
 
virtual TKey * FindKeyAny (const char *keyname) const
 
virtual TObject * FindObject (const char *name) const
 
virtual TObject * FindObject (const TObject *obj) const
 
virtual TObject * FindObjectAny (const char *name) const
 
virtual TObject * Get (const char *namecycle)
 
virtual TDirectoryGetDirectory (const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
 
template<class T >
void GetObject (const char *namecycle, T *&ptr)
 
virtual void * GetObjectChecked (const char *namecycle, const char *classname)
 
virtual void * GetObjectChecked (const char *namecycle, const TClass *cl)
 
virtual void * GetObjectUnchecked (const char *namecycle)
 
virtual Int_t GetBufferSize () const
 
const TDatime & GetCreationDate () const
 
virtual TFile * GetFile () const
 
virtual TKey * GetKey (const char *name, Short_t cycle=9999) const
 
virtual TList * GetList () const
 
virtual TList * GetListOfKeys () const
 
const TDatime & GetModificationDate () const
 
TObject * GetMother () const
 
TDirectoryGetMotherDir () const
 
virtual Int_t GetNbytesKeys () const
 
virtual Int_t GetNkeys () const
 
virtual Long64_t GetSeekDir () const
 
virtual Long64_t GetSeekParent () const
 
virtual Long64_t GetSeekKeys () const
 
virtual const char * GetPathStatic () const
 
virtual const char * GetPath () const
 
TUUID GetUUID () const
 
Bool_t IsFolder () const
 
Bool_t IsModified () const
 
Bool_t IsWritable () const
 
virtual void ls (Option_t *option="") const
 
virtual TDirectorymkdir (const char *name, const char *title="")
 
virtual void Paint (Option_t *option="")
 
virtual void Print (Option_t *option="") const
 
virtual void Purge (Short_t nkeep=1)
 
virtual void pwd () const
 
virtual void ReadAll (Option_t *option="")
 
virtual Int_t ReadKeys ()
 
virtual void RecursiveRemove (TObject *obj)
 
virtual void rmdir (const char *name)
 
virtual void Save ()
 
virtual void SaveSelf (Bool_t force=kFALSE)
 
virtual void SetBufferSize (Int_t bufsize)
 
void SetModified ()
 
void SetMother (const TObject *mother)
 
virtual void SetName (const char *newname)
 
void SetSeekDir (Long64_t v)
 
void SetWritable (Bool_t writable=kTRUE)
 
virtual Int_t Sizeof () const
 
virtual Int_t Write (const char *name=0, Int_t opt=0, Int_t bufsiz=0)
 
virtual Int_t Write (const char *name=0, Int_t opt=0, Int_t bufsiz=0) const
 
virtual Int_t WriteTObject (const TObject *obj, const char *name=0, Option_t *option="")
 
template<class T >
Int_t WriteObject (const T *obj, const char *name, Option_t *option="")
 
virtual Int_t WriteObjectAny (const void *obj, const char *classname, const char *name, Option_t *option="")
 
virtual Int_t WriteObjectAny (const void *obj, const TClass *cl, const char *name, Option_t *option="")
 
virtual void WriteDirHeader ()
 
virtual void WriteKeys ()
 

Static Public Member Functions

static Bool_t Cd (const char *path)
 
static void DecodeNameCycle (const char *namecycle, char *name, Short_t &cycle)
 
static void EncodeNameCycle (char *buffer, const char *name, Short_t cycle)
 

Protected Member Functions

Bool_t cd1 (const char *path)
 Buffer for GetPath() function. More...
 
void FillFullPath (TString &buf) const
 

Static Protected Member Functions

static Bool_t Cd1 (const char *path)
 

Protected Attributes

Bool_t fModified
 
Bool_t fWritable
 
TDatime fDatimeC
 
TDatime fDatimeM
 
Int_t fNbytesKeys
 
Int_t fNbytesName
 
Int_t fBufferSize
 
Long64_t fSeekDir
 
Long64_t fSeekParent
 
Long64_t fSeekKeys
 
TFile * fFile
 
TObject * fMother
 
TList * fList
 
TList * fKeys
 
TUUID fUUID
 
TString fPathBuffer
 

Private Member Functions

 TDirectory (const TDirectory &directory)
 
void operator= (const TDirectory &)
 

Detailed Description

Definition at line 43 of file TDirectory-example.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kCloseDirectory 

Definition at line 74 of file TDirectory-example.h.

Constructor & Destructor Documentation

◆ TDirectory() [1/3]

TDirectory::TDirectory ( const TDirectory directory)
private

◆ TDirectory() [2/3]

TDirectory::TDirectory ( )

◆ TDirectory() [3/3]

TDirectory::TDirectory ( const char *  name,
const char *  title,
Option_t *  option = "",
TDirectory motherDir = 0 
)

◆ ~TDirectory()

virtual TDirectory::~TDirectory ( )
virtual

Member Function Documentation

◆ Add()

void TDirectory::Add ( TObject *  obj)
inline

Definition at line 114 of file TDirectory-example.h.

Here is the call graph for this function:

◆ Append()

virtual void TDirectory::Append ( TObject *  obj)
virtual
Here is the caller graph for this function:

◆ AppendKey()

Int_t TDirectory::AppendKey ( TKey *  key)

◆ Browse()

virtual void TDirectory::Browse ( TBrowser *  b)
virtual

Reimplemented in TNetDirectory.

◆ Build()

void TDirectory::Build ( TFile *  motherFile = 0,
TDirectory motherDir = 0 
)

◆ Cd()

static Bool_t TDirectory::Cd ( const char *  path)
static

◆ cd()

virtual Bool_t TDirectory::cd ( const char *  path = 0)
virtual

Reimplemented in TNetDirectory.

Here is the caller graph for this function:

◆ cd1()

Bool_t TDirectory::cd1 ( const char *  path)
protected

Buffer for GetPath() function.

◆ Cd1()

static Bool_t TDirectory::Cd1 ( const char *  path)
staticprotected

◆ Clear()

virtual void TDirectory::Clear ( Option_t *  option = "")
virtual

Reimplemented in TNetDirectory.

◆ Close()

virtual void TDirectory::Close ( Option_t *  option = "")
virtual

Reimplemented in TNetDirectory.

◆ Copy()

virtual void TDirectory::Copy ( TObject &  ) const
inlinevirtual

Definition at line 120 of file TDirectory-example.h.

◆ DecodeNameCycle()

static void TDirectory::DecodeNameCycle ( const char *  namecycle,
char *  name,
Short_t &  cycle 
)
static

◆ Delete()

virtual void TDirectory::Delete ( const char *  namecycle = "")
virtual

Reimplemented in TNetDirectory.

◆ DeleteAll()

virtual void TDirectory::DeleteAll ( Option_t *  option = "")
virtual

Reimplemented in TNetDirectory.

◆ Draw()

virtual void TDirectory::Draw ( Option_t *  option = "")
virtual

Reimplemented in TNetDirectory.

◆ EncodeNameCycle()

static void TDirectory::EncodeNameCycle ( char *  buffer,
const char *  name,
Short_t  cycle 
)
static

◆ FillBuffer()

virtual void TDirectory::FillBuffer ( char *&  buffer)
virtual

Reimplemented in TNetDirectory.

◆ FillFullPath()

void TDirectory::FillFullPath ( TString &  buf) const
protected

◆ FindKey()

virtual TKey* TDirectory::FindKey ( const char *  keyname) const
virtual

Reimplemented in TNetDirectory.

◆ FindKeyAny()

virtual TKey* TDirectory::FindKeyAny ( const char *  keyname) const
virtual

Reimplemented in TNetDirectory.

◆ FindObject() [1/2]

virtual TObject* TDirectory::FindObject ( const char *  name) const
virtual

Reimplemented in TNetDirectory.

◆ FindObject() [2/2]

virtual TObject* TDirectory::FindObject ( const TObject *  obj) const
virtual

Reimplemented in TNetDirectory.

◆ FindObjectAny()

virtual TObject* TDirectory::FindObjectAny ( const char *  name) const
virtual

Reimplemented in TNetDirectory.

◆ Get()

virtual TObject* TDirectory::Get ( const char *  namecycle)
virtual

Reimplemented in TNetDirectory.

Here is the caller graph for this function:

◆ GetBufferSize()

virtual Int_t TDirectory::GetBufferSize ( ) const
virtual

Reimplemented in TNetDirectory.

◆ GetCreationDate()

const TDatime& TDirectory::GetCreationDate ( ) const
inline

Definition at line 141 of file TDirectory-example.h.

◆ GetDirectory()

virtual TDirectory* TDirectory::GetDirectory ( const char *  namecycle,
Bool_t  printError = false,
const char *  funcname = "GetDirectory" 
)
virtual

Reimplemented in TNetDirectory.

◆ GetFile()

virtual TFile* TDirectory::GetFile ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 142 of file TDirectory-example.h.

◆ GetKey()

virtual TKey* TDirectory::GetKey ( const char *  name,
Short_t  cycle = 9999 
) const
virtual

Reimplemented in TNetDirectory.

◆ GetList()

virtual TList* TDirectory::GetList ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 144 of file TDirectory-example.h.

Here is the caller graph for this function:

◆ GetListOfKeys()

virtual TList* TDirectory::GetListOfKeys ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 145 of file TDirectory-example.h.

Here is the caller graph for this function:

◆ GetModificationDate()

const TDatime& TDirectory::GetModificationDate ( ) const
inline

Definition at line 146 of file TDirectory-example.h.

◆ GetMother()

TObject* TDirectory::GetMother ( ) const
inline

Definition at line 147 of file TDirectory-example.h.

◆ GetMotherDir()

TDirectory* TDirectory::GetMotherDir ( ) const
inline

Definition at line 148 of file TDirectory-example.h.

◆ GetNbytesKeys()

virtual Int_t TDirectory::GetNbytesKeys ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 149 of file TDirectory-example.h.

◆ GetNkeys()

virtual Int_t TDirectory::GetNkeys ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 150 of file TDirectory-example.h.

◆ GetObject()

template<class T >
void TDirectory::GetObject ( const char *  namecycle,
T *&  ptr 
)
inline

Definition at line 133 of file TDirectory-example.h.

Here is the call graph for this function:

◆ GetObjectChecked() [1/2]

virtual void* TDirectory::GetObjectChecked ( const char *  namecycle,
const char *  classname 
)
virtual

Reimplemented in TNetDirectory.

Here is the caller graph for this function:

◆ GetObjectChecked() [2/2]

virtual void* TDirectory::GetObjectChecked ( const char *  namecycle,
const TClass *  cl 
)
virtual

Reimplemented in TNetDirectory.

◆ GetObjectUnchecked()

virtual void* TDirectory::GetObjectUnchecked ( const char *  namecycle)
virtual

Reimplemented in TNetDirectory.

◆ GetPath()

virtual const char* TDirectory::GetPath ( ) const
virtual

Reimplemented in TNetDirectory.

◆ GetPathStatic()

virtual const char* TDirectory::GetPathStatic ( ) const
virtual

Reimplemented in TNetDirectory.

◆ GetSeekDir()

virtual Long64_t TDirectory::GetSeekDir ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 151 of file TDirectory-example.h.

◆ GetSeekKeys()

virtual Long64_t TDirectory::GetSeekKeys ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 153 of file TDirectory-example.h.

◆ GetSeekParent()

virtual Long64_t TDirectory::GetSeekParent ( ) const
inlinevirtual

Reimplemented in TNetDirectory.

Definition at line 152 of file TDirectory-example.h.

◆ GetUUID()

TUUID TDirectory::GetUUID ( ) const
inline

Definition at line 156 of file TDirectory-example.h.

◆ IsFolder()

Bool_t TDirectory::IsFolder ( ) const
inline

Definition at line 157 of file TDirectory-example.h.

◆ IsModified()

Bool_t TDirectory::IsModified ( ) const
inline

Definition at line 158 of file TDirectory-example.h.

◆ IsWritable()

Bool_t TDirectory::IsWritable ( ) const
inline

Definition at line 159 of file TDirectory-example.h.

◆ ls()

virtual void TDirectory::ls ( Option_t *  option = "") const
virtual

Reimplemented in TNetDirectory.

◆ mkdir()

virtual TDirectory* TDirectory::mkdir ( const char *  name,
const char *  title = "" 
)
virtual
Here is the caller graph for this function:

◆ operator=()

void TDirectory::operator= ( const TDirectory )
private

◆ Paint()

virtual void TDirectory::Paint ( Option_t *  option = "")
virtual

Reimplemented in TNetDirectory.

◆ Print()

virtual void TDirectory::Print ( Option_t *  option = "") const
virtual

Reimplemented in TNetDirectory.

Here is the caller graph for this function:

◆ Purge()

virtual void TDirectory::Purge ( Short_t  nkeep = 1)
virtual

Reimplemented in TNetDirectory.

◆ pwd()

virtual void TDirectory::pwd ( ) const
virtual

Reimplemented in TNetDirectory.

◆ ReadAll()

virtual void TDirectory::ReadAll ( Option_t *  option = "")
virtual

Reimplemented in TNetDirectory.

◆ ReadKeys()

virtual Int_t TDirectory::ReadKeys ( )
virtual

◆ RecursiveRemove()

virtual void TDirectory::RecursiveRemove ( TObject *  obj)
virtual

Reimplemented in TNetDirectory.

◆ rmdir()

virtual void TDirectory::rmdir ( const char *  name)
virtual

Reimplemented in TNetDirectory.

◆ Save()

virtual void TDirectory::Save ( )
virtual

Reimplemented in TNetDirectory.

◆ SaveSelf()

virtual void TDirectory::SaveSelf ( Bool_t  force = kFALSE)
virtual

Reimplemented in TNetDirectory.

◆ SetBufferSize()

virtual void TDirectory::SetBufferSize ( Int_t  bufsize)
virtual

Reimplemented in TNetDirectory.

◆ SetModified()

void TDirectory::SetModified ( )
inline

Definition at line 173 of file TDirectory-example.h.

◆ SetMother()

void TDirectory::SetMother ( const TObject *  mother)
inline

Definition at line 174 of file TDirectory-example.h.

◆ SetName()

virtual void TDirectory::SetName ( const char *  newname)
virtual

Reimplemented in TNetDirectory.

◆ SetSeekDir()

void TDirectory::SetSeekDir ( Long64_t  v)
inline

Definition at line 176 of file TDirectory-example.h.

◆ SetWritable()

void TDirectory::SetWritable ( Bool_t  writable = kTRUE)

◆ Sizeof()

virtual Int_t TDirectory::Sizeof ( ) const
virtual

Reimplemented in TNetDirectory.

◆ Write() [1/2]

virtual Int_t TDirectory::Write ( const char *  name = 0,
Int_t  opt = 0,
Int_t  bufsiz = 0 
)
virtual

Reimplemented in TNetDirectory.

◆ Write() [2/2]

virtual Int_t TDirectory::Write ( const char *  name = 0,
Int_t  opt = 0,
Int_t  bufsiz = 0 
) const
virtual

Reimplemented in TNetDirectory.

◆ WriteDirHeader()

virtual void TDirectory::WriteDirHeader ( )
virtual

Reimplemented in TNetDirectory.

◆ WriteKeys()

virtual void TDirectory::WriteKeys ( )
virtual

Reimplemented in TNetDirectory.

◆ WriteObject()

template<class T >
Int_t TDirectory::WriteObject ( const T *  obj,
const char *  name,
Option_t *  option = "" 
)
inline

Definition at line 182 of file TDirectory-example.h.

Here is the call graph for this function:

◆ WriteObjectAny() [1/2]

virtual Int_t TDirectory::WriteObjectAny ( const void *  obj,
const char *  classname,
const char *  name,
Option_t *  option = "" 
)
virtual
Here is the caller graph for this function:

◆ WriteObjectAny() [2/2]

virtual Int_t TDirectory::WriteObjectAny ( const void *  obj,
const TClass *  cl,
const char *  name,
Option_t *  option = "" 
)
virtual

◆ WriteTObject()

virtual Int_t TDirectory::WriteTObject ( const TObject *  obj,
const char *  name = 0,
Option_t *  option = "" 
)
virtual

Field Documentation

◆ fBufferSize

Int_t TDirectory::fBufferSize
protected

Definition at line 52 of file TDirectory-example.h.

◆ fDatimeC

TDatime TDirectory::fDatimeC
protected

Definition at line 48 of file TDirectory-example.h.

◆ fDatimeM

TDatime TDirectory::fDatimeM
protected

Definition at line 49 of file TDirectory-example.h.

◆ fFile

TFile* TDirectory::fFile
protected

Definition at line 56 of file TDirectory-example.h.

◆ fKeys

TList* TDirectory::fKeys
protected

Definition at line 59 of file TDirectory-example.h.

◆ fList

TList* TDirectory::fList
protected

Definition at line 58 of file TDirectory-example.h.

◆ fModified

Bool_t TDirectory::fModified
protected

Definition at line 46 of file TDirectory-example.h.

◆ fMother

TObject* TDirectory::fMother
protected

Definition at line 57 of file TDirectory-example.h.

◆ fNbytesKeys

Int_t TDirectory::fNbytesKeys
protected

Definition at line 50 of file TDirectory-example.h.

◆ fNbytesName

Int_t TDirectory::fNbytesName
protected

Definition at line 51 of file TDirectory-example.h.

◆ fPathBuffer

TString TDirectory::fPathBuffer
protected

Definition at line 61 of file TDirectory-example.h.

◆ fSeekDir

Long64_t TDirectory::fSeekDir
protected

Definition at line 53 of file TDirectory-example.h.

◆ fSeekKeys

Long64_t TDirectory::fSeekKeys
protected

Definition at line 55 of file TDirectory-example.h.

◆ fSeekParent

Long64_t TDirectory::fSeekParent
protected

Definition at line 54 of file TDirectory-example.h.

◆ fUUID

TUUID TDirectory::fUUID
protected

Definition at line 60 of file TDirectory-example.h.

◆ fWritable

Bool_t TDirectory::fWritable
protected

Definition at line 47 of file TDirectory-example.h.


The documentation for this class was generated from the following file: