ROOT  6.06/09
Reference Guide
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends | List of all members
TDirectory Class Reference

Describe directory structure in memory.

Definition at line 41 of file TDirectory.h.

Classes

class  TContext
 

Public Member Functions

 TDirectory ()
 
 TDirectory (const char *name, const char *title, Option_t *option="", TDirectory *motherDir=0)
 Create a new Directory. More...
 
virtual ~TDirectory ()
 Destructor. More...
 
virtual void Append (TObject *obj, Bool_t replace=kFALSE)
 Append object to this directory. More...
 
virtual void Add (TObject *obj, Bool_t replace=kFALSE)
 
virtual Int_t AppendKey (TKey *)
 
virtual void Browse (TBrowser *b)
 Browse the content of the directory. More...
 
virtual void Build (TFile *motherFile=0, TDirectory *motherDir=0)
 Initialise directory to defaults. More...
 
virtual void Clear (Option_t *option="")
 Delete all objects from a Directory list. More...
 
virtual TObjectCloneObject (const TObject *obj, Bool_t autoadd=kTRUE)
 Clone an object. More...
 
virtual void Close (Option_t *option="")
 Delete all objects from memory and directory structure itself. More...
 
virtual void Copy (TObject &) const
 Copy this to obj. More...
 
virtual Bool_t cd (const char *path=0)
 Change current directory to "this" directory. More...
 
virtual void DeleteAll (Option_t *option="")
 Delete all objects from memory. More...
 
virtual void Delete (const char *namecycle="")
 Delete Objects or/and keys in a directory. More...
 
virtual void Draw (Option_t *option="")
 Fill Graphics Structure and Paint. More...
 
virtual TKeyFindKey (const char *) const
 
virtual TKeyFindKeyAny (const char *) const
 
virtual TObjectFindObject (const char *name) const
 Find object by name in the list of memory objects. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Find object in the list of memory objects. More...
 
virtual TObjectFindObjectAny (const char *name) const
 Find object by name in the list of memory objects of the current directory or its sub-directories. More...
 
virtual TObjectFindObjectAnyFile (const char *) const
 
virtual TObjectGet (const char *namecycle)
 Return pointer to object identified by namecycle. More...
 
virtual TDirectoryGetDirectory (const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
 Find a directory using apath. More...
 
template<class T >
void GetObject (const char *namecycle, T *&ptr)
 
virtual voidGetObjectChecked (const char *namecycle, const char *classname)
 See documentation of TDirectory::GetObjectCheck(const char *namecycle, const TClass *cl) More...
 
virtual voidGetObjectChecked (const char *namecycle, const TClass *cl)
 Return pointer to object identified by namecycle if and only if the actual object is a type suitable to be stored as a pointer to a "expectedClass" If expectedClass is null, no check is performed. More...
 
virtual voidGetObjectUnchecked (const char *namecycle)
 Return pointer to object identified by namecycle. More...
 
virtual Int_t GetBufferSize () const
 
virtual TFileGetFile () const
 
virtual TKeyGetKey (const char *, Short_t=9999) const
 
virtual TListGetList () const
 
virtual TListGetListOfKeys () const
 
virtual TObjectGetMother () const
 
virtual 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
 Returns the full path of the directory. More...
 
virtual const char * GetPath () const
 Returns the full path of the directory. More...
 
TUUID GetUUID () const
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsModified () const
 
virtual Bool_t IsWritable () const
 
virtual void ls (Option_t *option="") const
 List Directory contents. More...
 
virtual TDirectorymkdir (const char *name, const char *title="")
 Create a sub-directory and return a pointer to the created directory. More...
 
virtual TFileOpenFile (const char *, Option_t *="", const char *="", Int_t=1, Int_t=0)
 
virtual void Paint (Option_t *option="")
 Paint all objects in the directory. More...
 
virtual void Print (Option_t *option="") const
 Print all objects in the directory. More...
 
virtual void Purge (Short_t=1)
 
virtual void pwd () const
 Print the path of the directory. More...
 
virtual void ReadAll (Option_t *="")
 
virtual Int_t ReadKeys (Bool_t=kTRUE)
 
virtual Int_t ReadTObject (TObject *, const char *)
 
virtual TObjectRemove (TObject *)
 Remove an object from the in-memory list. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove object from a Directory. More...
 
virtual void rmdir (const char *name)
 Removes subdirectory from the directory When directory is deleted, all keys in all subdirectories will be read first and deleted from file (if exists) Equivalent call is Delete("name;*");. More...
 
virtual void Save ()
 
virtual Int_t SaveObjectAs (const TObject *, const char *="", Option_t *="") const
 Save object in filename, if filename is 0 or "", a file with "objectname.root" is created. More...
 
virtual void SaveSelf (Bool_t=kFALSE)
 
virtual void SetBufferSize (Int_t)
 
virtual void SetModified ()
 
virtual void SetMother (TObject *mother)
 
virtual void SetName (const char *newname)
 Set the name for directory If the directory name is changed after the directory was written once, ROOT currently would NOT change the name of correspondent key in the mother directory. More...
 
virtual void SetTRefAction (TObject *, TObject *)
 
virtual void SetSeekDir (Long64_t)
 
virtual void SetWritable (Bool_t)
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
virtual Int_t Write (const char *=0, Int_t=0, Int_t=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *=0, Int_t=0, Int_t=0) const
 Write this object to the current directory. More...
 
virtual Int_t WriteTObject (const TObject *obj, const char *name=0, Option_t *="", Int_t=0)
 See TDirectoryFile::WriteTObject for details. More...
 
template<class T >
Int_t WriteObject (const T *obj, const char *name, Option_t *option="", Int_t bufsize=0)
 
virtual Int_t WriteObjectAny (const void *, const char *, const char *, Option_t *="", Int_t=0)
 
virtual Int_t WriteObjectAny (const void *, const TClass *, const char *, Option_t *="", Int_t=0)
 
virtual void WriteDirHeader ()
 
virtual void WriteKeys ()
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void SetNameTitle (const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Change (i.e. set) the title of the TNamed. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 

Static Public Member Functions

static void AddDirectory (Bool_t add=kTRUE)
 Sets the flag controlling the automatic add objects like histograms, TGraph2D, etc in memory. More...
 
static Bool_t AddDirectoryStatus ()
 Static function: see TDirectory::AddDirectory for more comments. More...
 
static TDirectory *& CurrentDirectory ()
 Return the current directory for the current thread. More...
 
static Bool_t Cd (const char *path)
 Change current directory to "path". More...
 
static void DecodeNameCycle (const char *namecycle, char *name, Short_t &cycle, const size_t namesize=0)
 Decode a namecycle "aap;2" into name "aap" and cycle "2". More...
 
static void EncodeNameCycle (char *buffer, const char *name, Short_t cycle)
 Encode the name and cycle into buffer like: "aap;2". More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Member Functions

Bool_t cd1 (const char *path)
 flag to add histograms, graphs,etc to the directory More...
 
virtual void CleanTargets ()
 Clean the pointers to this object (gDirectory, TContext, etc.). More...
 
void FillFullPath (TString &buf) const
 Recursive method to fill full path for directory. More...
 
void RegisterContext (TContext *ctxt)
 Register a TContext pointing to this TDirectory object. More...
 
void UnregisterContext (TContext *ctxt)
 UnRegister a TContext pointing to this TDirectory object. More...
 
 TDirectory (const TDirectory &directory)
 Copy constructor. More...
 
void operator= (const TDirectory &)
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

Static Protected Member Functions

static Bool_t Cd1 (const char *path)
 Change current directory to "path". More...
 

Protected Attributes

TObjectfMother
 
TListfList
 
TUUID fUUID
 
TString fPathBuffer
 
TContextfContext
 Buffer for GetPath() function. More...
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

Static Protected Attributes

static Bool_t fgAddDirectory = kTRUE
 Pointer to a list of TContext object pointing to this TDirectory. More...
 

Private Member Functions

Int_t WriteObject (void *obj, const char *name, Option_t *option="", Int_t bufsize=0)
 

Friends

class TContext
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 

#include <ROOT/TDirectory.h>

+ Inheritance diagram for TDirectory:
+ Collaboration diagram for TDirectory:

Constructor & Destructor Documentation

TDirectory::TDirectory ( const TDirectory directory)
protected

Copy constructor.

Definition at line 83 of file TDirectory.cxx.

TDirectory::TDirectory ( )

Referenced by mkdir().

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

Create a new Directory.

A new directory with name,title is created in the current directory The directory header information is immediately saved in the file A new key is added in the parent directory

When this constructor is called from a class directly derived from TDirectory, the third argument classname MUST be specified. In this case, classname must be the name of the derived class.

Note that the directory name cannot contain slashes.

Definition at line 59 of file TDirectory.cxx.

TDirectory::~TDirectory ( )
virtual

Destructor.

Definition at line 91 of file TDirectory.cxx.

Member Function Documentation

virtual void TDirectory::Add ( TObject obj,
Bool_t  replace = kFALSE 
)
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 123 of file TDirectory.h.

void TDirectory::AddDirectory ( Bool_t  add = kTRUE)
static

Sets the flag controlling the automatic add objects like histograms, TGraph2D, etc in memory.

By default (fAddDirectory = kTRUE), these objects are automatically added to the list of objects in memory. Note that in the classes like TH1, TGraph2D supporting this facility, one object can be removed from its support directory by calling object->SetDirectory(0) or object->SetDirectory(dir) to add it to the list of objects in the directory dir.

NOTE that this is a static function. To call it, use:

Definition at line 132 of file TDirectory.cxx.

Bool_t TDirectory::AddDirectoryStatus ( )
static

Static function: see TDirectory::AddDirectory for more comments.

Definition at line 140 of file TDirectory.cxx.

void TDirectory::Append ( TObject obj,
Bool_t  replace = kFALSE 
)
virtual
virtual Int_t TDirectory::AppendKey ( TKey )
inlinevirtual
void TDirectory::Browse ( TBrowser b)
virtual

Browse the content of the directory.

Reimplemented from TObject.

Reimplemented in TROOT, and TDirectoryFile.

Definition at line 176 of file TDirectory.cxx.

Referenced by TGFileBrowser::DoubleClicked().

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

Initialise directory to defaults.

If directory is created via default ctor (when dir is read from file) don't add it here to the directory since its name is not yet known. It will be added to the directory in TKey::ReadObj().

Reimplemented in TDirectoryFile.

Definition at line 198 of file TDirectory.cxx.

Referenced by TMapFile::InitDirectory(), TDirectory(), and TROOT::TROOT().

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

Change current directory to "this" directory.

Using path one can change the current directory to "path". The absolute path syntax is: file.root:/dir1/dir2 where file.root is the file and /dir1/dir2 the desired subdirectory in the file.

Relative syntax is relative to "this" directory. E.g: ../aa.

Returns kTRUE in case of success.

Reimplemented in TDirectoryFile.

Definition at line 433 of file TDirectory.cxx.

Referenced by TMVA::MethodBase::BaseDir(), Browse(), TApplicationServer::BrowseFile(), TDirectoryFile::cd(), TMapFile::cd(), cd1(), Cd1(), CleanTargets(), TTreeCloner::CopyProcessIds(), TMVA::correlationscatters(), TMVA::correlationscattersMultiClass(), TMVA::CorrGui(), TMVA::CorrGuiMultiClass(), TEveVSD::CreateTrees(), TTree::Delete(), TProofBench::DrawCPU(), TProofBench::DrawDataSet(), TProofBench::DrawEfficiency(), TMVA::DrawNetworkMovie(), TDirectoryFile::FindKeyAny(), TDirectoryFile::FindObjectAny(), RooStats::HistFactory::FitModelAndPlot(), TSelEventGen::GenerateFiles(), TMVA::get_var_names(), TDSetElement::GetEntries(), TVirtualPacketizer::GetEntries(), TDSet::GetEntries(), TFileDrawMap::GetObjectInfoDir(), TTreeFormula::Init(), TEventIterTree::Load(), TEventIter::LoadDir(), TMVA::RuleFit::MakeDebugHists(), TMVA::RuleFit::MakeVisHists(), TFileMerger::MergeRecursive(), TMVA::network(), TASPaletteEditor::Open(), TFileDrawMap::PaintDir(), TMVA::TransformationHandler::PlotVariables(), TEventIterObj::PreProcessEvent(), TMVA::rulevisCorr(), TMVA::rulevisHists(), TProofBenchRunCPU::Run(), TProofBenchRunDataRead::Run(), RooUnitTest::runCompTests(), RooUnitTest::runTest(), TDirectoryFile::SaveObjectAs(), TProofPlayer::SavePartialResults(), TDirectoryFile::SaveSelf(), TMVA::MethodBoost::Train(), TTreeViewer::TTreeViewer(), TMVA::variables(), TMVA::variablesMultiClass(), TMVA::MethodBoost::WriteEvaluationHistosToFile(), TMVA::MethodBoost::WriteMonitoringHistosToFile(), TMVA::MethodANNBase::WriteMonitoringHistosToFile(), RooStats::HistFactory::Measurement::writeToFile(), and TMVA::OptimizeConfigParameters::~OptimizeConfigParameters().

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

Change current directory to "path".

The absolute path syntax is: file.root:/dir1/dir2 where file.root is the file and `/dir1/dir2 the desired subdirectory in the file. Relative syntax is relative to the current directory gDirectory, e.g.: ../aa.

Returns kTRUE in case of success.

Definition at line 477 of file TDirectory.cxx.

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

flag to add histograms, graphs,etc to the directory

Change current directory to "this" directory.

Using path one can change the current directory to "path". The absolute path syntax is: file.root:/dir1/dir2 where file.root is the file and /dir1/dir2 the desired subdirectory in the file.

Relative syntax is relative to "this" directory. E.g: ../aa.

Returns kFALSE in case path does not exist.

Definition at line 451 of file TDirectory.cxx.

Referenced by cd().

Bool_t TDirectory::Cd1 ( const char *  apath)
staticprotected

Change current directory to "path".

The path syntax is: file.root:/dir1/dir2 where file.root is the file and /dir1/dir2 the desired subdirectory in the file.

Returns kFALSE in case path does not exist.

Definition at line 490 of file TDirectory.cxx.

Referenced by Cd().

void TDirectory::CleanTargets ( )
protectedvirtual

Clean the pointers to this object (gDirectory, TContext, etc.).

Reimplemented in TDirectoryFile.

Definition at line 210 of file TDirectory.cxx.

Referenced by TDirectoryFile::CleanTargets(), Close(), and ~TDirectory().

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

Delete all objects from a Directory list.

Reimplemented from TNamed.

Definition at line 508 of file TDirectory.cxx.

Referenced by RooWorkspace::WSDir::~WSDir().

TObject * TDirectory::CloneObject ( const TObject obj,
Bool_t  autoadd = kTRUE 
)
virtual

Clone an object.

This function is called when the directory is not a TDirectoryFile. This version has to load the I/O package, hence via Cling.

If autoadd is true and if the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirector. This usually means that the object will be appended to the current ROOT directory.

Reimplemented in TDirectoryFile.

Definition at line 264 of file TDirectory.cxx.

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

Delete all objects from memory and directory structure itself.

Reimplemented in TSQLFile, TFile, TNetFile, TDirectoryFile, TXMLFile, and TParallelMergingFile.

Definition at line 517 of file TDirectory.cxx.

Referenced by TROOT::CloseFiles(), and TFileIter::~TFileIter().

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

Copy this to obj.

Reimplemented from TNamed.

Reimplemented in TFile, and TDirectoryFile.

Definition at line 131 of file TDirectory.h.

Referenced by TDirectory(), and TDirectoryFile::TDirectoryFile().

TDirectory *& TDirectory::CurrentDirectory ( )
static

Return the current directory for the current thread.

Definition at line 316 of file TDirectory.cxx.

Referenced by TROOT::GetListOfGlobals().

void TDirectory::DecodeNameCycle ( const char *  buffer,
char *  name,
Short_t cycle,
const size_t  namesize = 0 
)
static

Decode a namecycle "aap;2" into name "aap" and cycle "2".

Destination buffer size for name (including string terminator) should be specified in namesize.

Definition at line 1152 of file TDirectory.cxx.

Referenced by TDirectoryFile::Delete(), Delete(), TDirectoryFile::FindKey(), TDirectoryFile::FindKeyAny(), TDirectoryFile::FindObjectAny(), TDirectoryFile::Get(), Get(), TDirectoryFile::GetObjectChecked(), and GetObjectChecked().

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

Delete Objects or/and keys in a directory.

  • namecycle has the format name;cycle
  • namecycle = "" same as namecycle ="T*"
  • name = * means all
  • cycle = * means all cycles (memory and keys)
  • cycle = "" or cycle = 9999 ==> apply to a memory object When name=* use T* to delete subdirectories also

To delete one directory, you must specify the directory cycle, eg. file.Delete("dir1;1");

examples:

  • foo : delete object named foo in memory
  • foo* : delete all objects with a name starting with foo
  • foo;1 : delete cycle 1 of foo on file
  • foo;* : delete all cycles of foo on file and also from memory
  • *;2 : delete all objects on file having the cycle 2
  • *;* : delete all objects from memory and file
  • T*;* : delete all objects from memory and file and all subdirectories

Reimplemented from TObject.

Reimplemented in TFile, and TDirectoryFile.

Definition at line 573 of file TDirectory.cxx.

Referenced by TDirectoryFile::Delete(), and rmdir().

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

Delete all objects from memory.

Definition at line 546 of file TDirectory.cxx.

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

Fill Graphics Structure and Paint.

Loop on all objects (memory or file) and all subdirectories

Reimplemented from TObject.

Reimplemented in TFile.

Definition at line 629 of file TDirectory.cxx.

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

Encode the name and cycle into buffer like: "aap;2".

Definition at line 1139 of file TDirectory.cxx.

void TDirectory::FillFullPath ( TString buf) const
protected

Recursive method to fill full path for directory.

Definition at line 924 of file TDirectory.cxx.

Referenced by FillFullPath(), and GetPath().

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

Reimplemented in TDirectoryFile.

Definition at line 136 of file TDirectory.h.

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

Reimplemented in TDirectoryFile.

Definition at line 137 of file TDirectory.h.

Referenced by TDirectoryFile::FindKeyAny(), and TDirectoryFile::FindObjectAny().

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

Find object by name in the list of memory objects.

Reimplemented from TObject.

Reimplemented in TROOT.

Definition at line 645 of file TDirectory.cxx.

Referenced by Append(), and TMVA::MethodBase::BaseDir().

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

Find object in the list of memory objects.

Reimplemented from TObject.

Reimplemented in TROOT.

Definition at line 637 of file TDirectory.cxx.

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

Find object by name in the list of memory objects of the current directory or its sub-directories.

After this call the current directory is not changed. To automatically set the current directory where the object is found, use FindKeyAny(aname)->ReadObj().

Reimplemented in TROOT, and TDirectoryFile.

Definition at line 657 of file TDirectory.cxx.

Referenced by TDirectoryFile::FindObjectAny().

virtual TObject* TDirectory::FindObjectAnyFile ( const char *  ) const
inlinevirtual

Reimplemented in TROOT, and TDirectoryFile.

Definition at line 141 of file TDirectory.h.

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

Return pointer to object identified by namecycle.

namecycle has the format name;cycle

  • name = * is illegal, cycle = * is illegal
  • cycle = "" or cycle = 9999 ==> apply to a memory object

examples:

  • foo : get object named foo in memory if object is not in memory, try with highest cycle from file
  • foo;1 : get cycle 1 of foo on file

The retrieved object should in principle derive from TObject. If not, the function TDirectory::GetObject should be called. However, this function will still work for a non-TObject, providing that the calling application cast the return type to the correct type (which is the actual type of the object).

NOTE:

The method GetObject offer better protection and avoid the need for any cast:

MyClass *obj;
directory->GetObject("some object",obj);
if (obj) { ... the object exist and inherits from MyClass ... }

VERY IMPORTANT NOTE:

In case the class of this object derives from TObject but not as a first inheritance, one must use dynamic_cast<>(). #### Example 1: Normal case:

class MyClass : public TObject, public AnotherClass

then on return, one can do:

MyClass *obj = (MyClass*)directory->Get("some object of MyClass");

#### Example 2: Special case:

class MyClass : public AnotherClass, public TObject

then on return, one must do:

MyClass *obj = dynamic_cast<MyClass*>(directory->Get("some object of MyClass"));

Of course, dynamic_cast<> can also be used in the example 1.

Reimplemented in TDirectoryFile.

Definition at line 727 of file TDirectory.cxx.

Referenced by TMVA::annconvergencetest(), TMVA::BDT(), TMVA::BDT_Reg(), TMVA::bdtcontrolplots(), TMVA::boostcontrolplots(), TMVA::compareanapp(), TMVA::DrawMLPoutputMovie(), TMVA::TMVAGlob::ExistMethodName(), TDataSetManager::FillMetaData(), TDirectoryFile::Get(), Get(), TMVA::TMVAGlob::GetCorrelationPlotsDir(), GetDirectory(), TProofBench::GetGraph(), TMVA::TMVAGlob::GetListOfTitles(), TMVA::likelihoodrefs(), TProofPerfAnalysis::LoadTree(), TEveVSD::LoadTrees(), TMVA::RuleFit::MakeVisHists(), TMVA::mvas(), TMVA::mvasMulticlass(), TMVA::probas(), TMVA::StatDialogMVAEffs::ReadHistograms(), TMVA::variables(), and TMVA::variablesMultiClass().

virtual Int_t TDirectory::GetBufferSize ( ) const
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 151 of file TDirectory.h.

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

Find a directory using apath.

It apath is null or empty, returns "this" directory. Otherwise use apath to find a directory. The absolute path syntax is: file.root:/dir1/dir2

where file.root is the file and /dir1/dir2 the desired subdirectory in the file. Relative syntax is relative to "this" directory. E.g: ../aa. Returns 0 in case path does not exist. If printError is true, use Error with 'funcname' to issue an error message.

Reimplemented in TDirectoryFile.

Definition at line 336 of file TDirectory.cxx.

Referenced by TMVA::MethodCategory::AddMethod(), TMVA::BDT(), TMVA::BDT_Reg(), cd1(), ClassImp(), TDirectoryFile::FindKeyAny(), TDirectoryFile::FindObjectAny(), Get(), TDirectoryFile::GetDirectory(), GetDirectory(), GetObjectChecked(), TFileMerger::MergeRecursive(), TMVA::MethodBase::MethodBaseDir(), TProofBenchRunCPU::Run(), TProofBenchRunDataRead::Run(), and TMVA::MethodBoost::Train().

virtual TFile* TDirectory::GetFile ( ) const
inlinevirtual
virtual TKey* TDirectory::GetKey ( const char *  ,
Short_t  = 9999 
) const
inlinevirtual
virtual TList* TDirectory::GetList ( ) const
inlinevirtual
virtual TList* TDirectory::GetListOfKeys ( ) const
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 155 of file TDirectory.h.

Referenced by TTree::AutoSave(), TMVA::BDT(), TMVA::BDT_Reg(), TMVA::bdtcontrolplots(), TXMLFile::CombineNodesTree(), TMVA::correlationscatters(), TMVA::correlationscattersMultiClass(), TMVA::CorrGui(), TKeyXML::Delete(), TKeySQL::Delete(), TKey::Delete(), TMVA::deviations(), TSQLFile::DirReadKeys(), TGFileBrowser::DoubleClicked(), TMVA::draw_network(), TMVA::DrawMLPoutputMovie(), TMVA::DrawNetworkMovie(), TMVA::TMVAGlob::ExistMethodName(), TDataSetManager::FillMetaData(), TXMLFile::FindDirKey(), TMVA::TMVAGlob::FindMethod(), TSQLFile::FindSQLKey(), TMVA::get_var_names(), TMVA::TMVAGlob::GetClassNames(), TDSetElement::GetEntries(), TVirtualPacketizer::GetEntries(), TDSet::GetEntries(), TProofBench::GetGraph(), TMVA::TMVAGlob::GetInputVariableNames(), TMVA::TMVAGlob::GetListOfJobs(), TMVA::TMVAGlob::GetListOfKeys(), TMVA::TMVAGlob::GetListOfMethods(), TMVA::TMVAGlob::GetListOfTitles(), TEventIterObj::GetNextEvent(), TEventIterObj::GetNextPacket(), TMVA::TMVAGlob::GetNumberOfInputVariables(), TMVA::TMVAGlob::GetNumberOfTargets(), TFileDrawMap::GetObjectInfoDir(), TMVA::likelihoodrefs(), TEventIterTree::Load(), TProofPerfAnalysis::LoadTree(), TMVA::RuleFit::MakeVisHists(), TFileMerger::MergeRecursive(), TMVA::mvas(), TMVA::mvasMulticlass(), TMVA::network(), TFileDrawMap::PaintDir(), TMVA::plot_efficiencies(), TMVA::StatDialogMVAEffs::ReadHistograms(), TMVA::regression_averagedevs(), TFileIter::Reset(), TMVA::rulevisCorr(), TMVA::rulevisHists(), TRootSniffer::ScanObjectChilds(), TKeySQL::StoreKeyObject(), TSQLFile::StreamKeysForDirectory(), TMVA::variables(), and TMVA::variablesMultiClass().

virtual TObject* TDirectory::GetMother ( ) const
inlinevirtual

Definition at line 156 of file TDirectory.h.

virtual TDirectory* TDirectory::GetMotherDir ( ) const
inlinevirtual
virtual Int_t TDirectory::GetNbytesKeys ( ) const
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 158 of file TDirectory.h.

Referenced by TFileDrawMap::GetObjectInfoDir(), and TFileDrawMap::PaintDir().

virtual Int_t TDirectory::GetNkeys ( ) const
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 159 of file TDirectory.h.

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

See documentation of TDirectory::GetObjectCheck(const char *namecycle, const TClass *cl)

Reimplemented in TDirectoryFile.

Definition at line 790 of file TDirectory.cxx.

Referenced by TDirectoryFile::GetObjectChecked(), GetObjectChecked(), and GetObjectUnchecked().

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

Return pointer to object identified by namecycle if and only if the actual object is a type suitable to be stored as a pointer to a "expectedClass" If expectedClass is null, no check is performed.

namecycle has the format name;cycle

  • name = * is illegal, cycle = * is illegal
  • cycle = "" or cycle = 9999 ==> apply to a memory object

VERY IMPORTANT NOTE:

The calling application must cast the returned pointer to the type described by the 2 arguments (i.e. cl):

MyClass *obj = (MyClass*)directory->GetObjectChecked("some object of MyClass","MyClass"));

Note: We recommend using the method TDirectory::GetObject:

MyClass *obj = 0;
directory->GetObject("some object inheriting from MyClass",obj);
if (obj) { ... we found what we are looking for ... }

Reimplemented in TDirectoryFile.

Definition at line 819 of file TDirectory.cxx.

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

Return pointer to object identified by namecycle.

The returned object may or may not derive from TObject.

  • namecycle has the format name;cycle
  • name = * is illegal, cycle = * is illegal
  • cycle = "" or cycle = 9999 ==> apply to a memory object

VERY IMPORTANT NOTE:

The calling application must cast the returned object to the final type, e.g.

MyClass *obj = (MyClass*)directory->GetObject("some object of MyClass");

Reimplemented in TDirectoryFile.

Definition at line 782 of file TDirectory.cxx.

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

Returns the full path of the directory.

E.g. file:/dir1/dir2. The returned path will be re-used by the next call to GetPath().

Definition at line 871 of file TDirectory.cxx.

virtual Long64_t TDirectory::GetSeekDir ( ) const
inlinevirtual
virtual Long64_t TDirectory::GetSeekKeys ( ) const
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 162 of file TDirectory.h.

Referenced by TFileDrawMap::GetObjectInfoDir(), and TFileDrawMap::PaintDir().

virtual Long64_t TDirectory::GetSeekParent ( ) const
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 161 of file TDirectory.h.

TUUID TDirectory::GetUUID ( ) const
inline
virtual Bool_t TDirectory::IsFolder ( ) const
inlinevirtual

Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).

Reimplemented from TObject.

Reimplemented in TROOT.

Definition at line 166 of file TDirectory.h.

virtual Bool_t TDirectory::IsModified ( ) const
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 167 of file TDirectory.h.

virtual Bool_t TDirectory::IsWritable ( ) const
inlinevirtual
void TDirectory::ls ( Option_t option = "") const
virtual

List Directory contents.

Indentation is used to identify the directory tree Subdirectories are listed first, then objects in memory.

The option can has the following format:

 [<regexp>]

The <regexp> will be used to match the name of the objects. By default memory and disk objects are listed.

Reimplemented from TNamed.

Reimplemented in TROOT, TFile, and TDirectoryFile.

Definition at line 998 of file TDirectory.cxx.

Referenced by TROOT::ls().

TDirectory * TDirectory::mkdir ( const char *  name,
const char *  title = "" 
)
virtual

Create a sub-directory and return a pointer to the created directory.

Returns 0 in case of error. Returns 0 if a directory with the same name already exists. Note that the directory name may be of the form "a/b/c" to create a hierarchy of directories. In this case, the function returns the pointer to the "a" directory if the operation is successful.

For example the step to the steps to create first a/b/c and then a/b/d without receiving and errors are:

TFile * file = new TFile("afile","RECREATE");
file->mkdir("a");
file->cd("a");
gDirectory->mkdir("b");
gDirectory->cd("b");
gDirectory->mkdir("d");

Reimplemented in TDirectoryFile.

Definition at line 955 of file TDirectory.cxx.

Referenced by TMVA::MethodBase::BaseDir(), ClassImp(), RooStats::HistFactory::FitModelAndPlot(), TFileMerger::MergeRecursive(), TMVA::MethodBase::MethodBaseDir(), mkdir(), TMVA::TransformationHandler::PlotVariables(), TProofBenchRunCPU::Run(), TProofBenchRunDataRead::Run(), TProofPlayer::SavePartialResults(), TMVA::MethodBoost::Train(), TMVA::MethodANNBase::WriteMonitoringHistosToFile(), and RooStats::HistFactory::Measurement::writeToFile().

virtual TFile* TDirectory::OpenFile ( const char *  ,
Option_t = "",
const char *  = "",
Int_t  = 1,
Int_t  = 0 
)
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 171 of file TDirectory.h.

void TDirectory::operator= ( const TDirectory )
protected
void TDirectory::Paint ( Option_t option = "")
virtual

Paint all objects in the directory.

Reimplemented from TObject.

Reimplemented in TSQLFile, TFile, and TXMLFile.

Definition at line 1034 of file TDirectory.cxx.

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

Print all objects in the directory.

Reimplemented from TNamed.

Reimplemented in TSQLFile, TFile, TXNetFile, TXMLFile, TMemFile, and TNetFile.

Definition at line 1042 of file TDirectory.cxx.

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

Reimplemented in TDirectoryFile.

Definition at line 176 of file TDirectory.h.

void TDirectory::pwd ( ) const
virtual

Print the path of the directory.

Definition at line 1050 of file TDirectory.cxx.

virtual void TDirectory::ReadAll ( Option_t = "")
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 178 of file TDirectory.h.

Referenced by TDirectoryFile::ReadAll().

virtual Int_t TDirectory::ReadKeys ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 179 of file TDirectory.h.

Referenced by TTree::Refresh().

virtual Int_t TDirectory::ReadTObject ( TObject ,
const char *   
)
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 180 of file TDirectory.h.

Referenced by TTree::Merge().

void TDirectory::RecursiveRemove ( TObject obj)
virtual

Recursively remove object from a Directory.

Reimplemented from TObject.

Definition at line 1058 of file TDirectory.cxx.

void TDirectory::RegisterContext ( TContext ctxt)
protected

Register a TContext pointing to this TDirectory object.

Definition at line 1193 of file TDirectory.cxx.

TObject * TDirectory::Remove ( TObject obj)
virtual
void TDirectory::rmdir ( const char *  name)
virtual

Removes subdirectory from the directory When directory is deleted, all keys in all subdirectories will be read first and deleted from file (if exists) Equivalent call is Delete("name;*");.

Reimplemented in TDirectoryFile.

Definition at line 1081 of file TDirectory.cxx.

virtual void TDirectory::Save ( )
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 184 of file TDirectory.h.

Referenced by Close().

Int_t TDirectory::SaveObjectAs ( const TObject obj,
const char *  filename = "",
Option_t option = "" 
) const
virtual

Save object in filename, if filename is 0 or "", a file with "objectname.root" is created.

The name of the key is the object name. If the operation is successful, it returns the number of bytes written to the file otherwise it returns 0. By default a message is printed. Use option "q" to not print the message.

Reimplemented in TDirectoryFile.

Definition at line 1098 of file TDirectory.cxx.

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

Reimplemented in TDirectoryFile.

Definition at line 186 of file TDirectory.h.

Referenced by TTree::AutoSave(), and TFileMerger::MergeRecursive().

virtual void TDirectory::SetBufferSize ( Int_t  )
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 187 of file TDirectory.h.

virtual void TDirectory::SetModified ( )
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 188 of file TDirectory.h.

virtual void TDirectory::SetMother ( TObject mother)
inlinevirtual
void TDirectory::SetName ( const char *  newname)
virtual

Set the name for directory If the directory name is changed after the directory was written once, ROOT currently would NOT change the name of correspondent key in the mother directory.

DO NOT use this method to 'rename a directory'. Renaming a directory is currently NOT supported.

Reimplemented from TNamed.

Definition at line 1131 of file TDirectory.cxx.

Referenced by TFile::Init(), TMapFile::InitDirectory(), TKeyXML::ReadObj(), TKeySQL::ReadObj(), TKey::ReadObj(), TKey::ReadObjectAny(), TKeyXML::ReadObjWithBuffer(), TKeySQL::ReadObjWithBuffer(), TKey::ReadObjWithBuffer(), TFile::TFile(), TROOT::TROOT(), TSQLFile::TSQLFile(), and TXMLFile::TXMLFile().

virtual void TDirectory::SetSeekDir ( Long64_t  )
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 192 of file TDirectory.h.

virtual void TDirectory::SetTRefAction ( TObject ,
TObject  
)
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 191 of file TDirectory.h.

virtual void TDirectory::SetWritable ( Bool_t  )
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 193 of file TDirectory.h.

virtual Int_t TDirectory::Sizeof ( ) const
inlinevirtual

Return size of the TNamed part of the TObject.

Reimplemented from TNamed.

Reimplemented in TSQLFile, TFile, TDirectoryFile, and TXMLFile.

Definition at line 194 of file TDirectory.h.

void TDirectory::UnregisterContext ( TContext ctxt)
protected

UnRegister a TContext pointing to this TDirectory object.

Definition at line 1222 of file TDirectory.cxx.

virtual Int_t TDirectory::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
)
inlinevirtual

Write this object to the current directory.

For more see the const version of this method.

Reimplemented from TObject.

Reimplemented in TSQLFile, TFile, TDirectoryFile, TXMLFile, and TParallelMergingFile.

Definition at line 195 of file TDirectory.h.

Referenced by TFileIter::~TFileIter().

virtual Int_t TDirectory::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
) const
inlinevirtual

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented from TObject.

Reimplemented in TSQLFile, TFile, TDirectoryFile, TXMLFile, and TParallelMergingFile.

Definition at line 196 of file TDirectory.h.

virtual void TDirectory::WriteDirHeader ( )
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 207 of file TDirectory.h.

virtual void TDirectory::WriteKeys ( )
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 208 of file TDirectory.h.

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

Definition at line 201 of file TDirectory.h.

Referenced by TRootSniffer::CreateMemFile().

virtual Int_t TDirectory::WriteObjectAny ( const void ,
const char *  ,
const char *  ,
Option_t = "",
Int_t  = 0 
)
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 205 of file TDirectory.h.

Referenced by TFileMerger::MergeRecursive().

virtual Int_t TDirectory::WriteObjectAny ( const void ,
const TClass ,
const char *  ,
Option_t = "",
Int_t  = 0 
)
inlinevirtual

Reimplemented in TDirectoryFile.

Definition at line 206 of file TDirectory.h.

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

See TDirectoryFile::WriteTObject for details.

Reimplemented in TDirectoryFile.

Definition at line 1210 of file TDirectory.cxx.

Referenced by TTree::AutoSave().

Friends And Related Function Documentation

friend class TContext
friend

Definition at line 109 of file TDirectory.h.

Member Data Documentation

TContext* TDirectory::fContext
protected

Buffer for GetPath() function.

Definition at line 99 of file TDirectory.h.

Referenced by CleanTargets(), RegisterContext(), and UnregisterContext().

Bool_t TDirectory::fgAddDirectory = kTRUE
staticprotected

Pointer to a list of TContext object pointing to this TDirectory.

Definition at line 100 of file TDirectory.h.

Referenced by AddDirectory(), and AddDirectoryStatus().

TList* TDirectory::fList
protected
TObject* TDirectory::fMother
protected

Definition at line 95 of file TDirectory.h.

Referenced by TDirectoryFile::Append(), TDirectoryFile::Build(), Build(), and GetPathStatic().

TString TDirectory::fPathBuffer
protected

Definition at line 98 of file TDirectory.h.

Referenced by GetPath().

TUUID TDirectory::fUUID
protected

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