KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
KVSystemDirectory Class Reference

Extension of ROOT TSystemDirectory class, handling browsing directories on disk.

Created by KVClassFactory on Mon Sep 24 10:45:52 2012 Author: John Frankland,,,

Definition at line 14 of file KVSystemDirectory.h.

Public Member Functions

 KVSystemDirectory ()
 Default constructor. More...
 
 KVSystemDirectory (const Char_t *dirname, const Char_t *path)
 
virtual ~KVSystemDirectory ()
 Destructor. More...
 
virtual TListGetListOfDirectories () const
 
virtual TListGetListOfFiles () const
 
Long64_t GetTotalFiles () const
 
Long64_t GetTotalSize () const
 
Long64_t GetTotalSubdirs () const
 
void ls (Option_t *option="") const
 
- Public Member Functions inherited from TSystemDirectory
 TSystemDirectory ()
 
 TSystemDirectory (const char *dirname, const char *path)
 
virtual ~TSystemDirectory ()
 
virtual void Browse (TBrowser *b)
 
virtual void Copy (const char *)
 
void Copy (TObject &) const
 
virtual void Delete ()
 
void Delete (Option_t *)
 
void DrawClass () const
 
TObjectDrawClone (Option_t *) const
 
virtual void Edit ()
 
virtual Bool_t IsDirectory (const char *=0) const
 
virtual Bool_t IsFolder () const
 
virtual void Move (const char *)
 
virtual void SetDirectory (const char *name)
 
void SetDrawOption (Option_t *)
 
void SetName (const char *name)
 
void SetTitle (const char *title)
 
- Public Member Functions inherited from TSystemFile
 TSystemFile ()
 
 TSystemFile (const char *filename, const char *dirname)
 
virtual ~TSystemFile ()
 
void Copy (TObject &) const
 
void Delete (Option_t *)
 
void DrawClass () const
 
TObjectDrawClone (Option_t *) const
 
virtual void Dump () const
 
const char * GetIconName () const
 
virtual void Inspect () const
 
virtual void Rename (const char *name)
 
void SetDrawOption (Option_t *)
 
virtual void SetIconName (const char *name)
 
void SetName (const char *name)
 
void SetTitle (const char *title)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
virtual void Clear (Option_t *option="")
 
virtual TObjectClone (const char *newname="") const
 
virtual Int_t Compare (const TObject *obj) const
 
virtual void FillBuffer (char *&buffer)
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual ULong_t Hash () const
 
virtual Bool_t IsSortable () const
 
TNamedoperator= (const TNamed &rhs)
 
virtual void Print (Option_t *option="") const
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual Int_t Sizeof () const
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
virtual void RecursiveRemove (TObject *obj)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetUniqueID (UInt_t uid)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 

Private Member Functions

virtual void GetListings ()
 Fill lists of files and directories. More...
 

Private Attributes

TListfContents
 contents of directory More...
 
TListfSubdirs
 subdirectories of directory More...
 
Long64_t fTotDirs
 total size of files in subdirectories More...
 
Long64_t fTotFiles
 total size of files in directory More...
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TSystemDirectory
 TSystemDirectory (const TSystemDirectory &)
 
TSystemDirectoryFindDirObj (const char *name)
 
TSystemFileFindFileObj (const char *name, const char *dir)
 
Bool_t IsItDirectory (const char *name) const
 
TSystemDirectoryoperator= (const TSystemDirectory &)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Protected Attributes inherited from TSystemDirectory
TOrdCollectionfDirsInBrowser
 
TOrdCollectionfFilesInBrowser
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

#include <KVSystemDirectory.h>

Inheritance diagram for KVSystemDirectory:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ KVSystemDirectory() [1/2]

KVSystemDirectory::KVSystemDirectory ( )

Default constructor.

Definition at line 18 of file KVSystemDirectory.cpp.

◆ KVSystemDirectory() [2/2]

KVSystemDirectory::KVSystemDirectory ( const Char_t dirname,
const Char_t path 
)

Constructor with name for directory and path. Path can be given as "." for current working directory. Shell variables can be used if written as "$(VARIABLE)"

Definition at line 34 of file KVSystemDirectory.cpp.

◆ ~KVSystemDirectory()

KVSystemDirectory::~KVSystemDirectory ( )
virtual

Destructor.

Definition at line 57 of file KVSystemDirectory.cpp.

Member Function Documentation

◆ GetListings()

void KVSystemDirectory::GetListings ( )
privatevirtual

Fill lists of files and directories.

Definition at line 101 of file KVSystemDirectory.cpp.

◆ GetListOfDirectories()

TList * KVSystemDirectory::GetListOfDirectories ( ) const
virtual

Returns a TList of KVSystemDirectory objects representing the contents of the directory. Returns 0 in case of errors.

Definition at line 87 of file KVSystemDirectory.cpp.

◆ GetListOfFiles()

TList * KVSystemDirectory::GetListOfFiles ( ) const
virtual

Returns a TList of KVSystemFile objects representing the contents of the directory. Returns 0 in case of errors.

Reimplemented from TSystemDirectory.

Definition at line 71 of file KVSystemDirectory.cpp.

◆ GetTotalFiles()

Long64_t KVSystemDirectory::GetTotalFiles ( ) const
inline

Definition at line 27 of file KVSystemDirectory.h.

◆ GetTotalSize()

Long64_t KVSystemDirectory::GetTotalSize ( ) const
inline

Definition at line 35 of file KVSystemDirectory.h.

◆ GetTotalSubdirs()

Long64_t KVSystemDirectory::GetTotalSubdirs ( ) const
inline

Definition at line 31 of file KVSystemDirectory.h.

◆ ls()

void KVSystemDirectory::ls ( Option_t opt = "") const
virtual

if opt="nosubdirs", do not list contents of subdirectories default is to list recursively contents of all subdirectories

Reimplemented from TNamed.

Definition at line 150 of file KVSystemDirectory.cpp.

Member Data Documentation

◆ fContents

TList* KVSystemDirectory::fContents
private

contents of directory

Definition at line 15 of file KVSystemDirectory.h.

◆ fSubdirs

TList* KVSystemDirectory::fSubdirs
private

subdirectories of directory

Definition at line 16 of file KVSystemDirectory.h.

◆ fTotDirs

Long64_t KVSystemDirectory::fTotDirs
private

total size of files in subdirectories

Definition at line 18 of file KVSystemDirectory.h.

◆ fTotFiles

Long64_t KVSystemDirectory::fTotFiles
private

total size of files in directory

Definition at line 17 of file KVSystemDirectory.h.


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