61 , fModified(
kFALSE), fWritable(
kFALSE), fNbytesKeys(0), fNbytesName(0)
62 , fBufferSize(0), fSeekDir(0), fSeekParent(0), fSeekKeys(0)
81 , fModified(
kFALSE), fWritable(
kFALSE), fNbytesKeys(0), fNbytesName(0)
82 , fBufferSize(0), fSeekDir(0), fSeekParent(0), fSeekKeys(0)
96 if (initMotherDir==0) initMotherDir =
gDirectory;
98 if (strchr(
name,
'/')) {
99 ::Error(
"TDirectoryFile",
"directory name (%s) cannot contain a slash",
name);
104 ::Error(
"TDirectoryFile",
"directory name cannot be \"\"");
109 Build(initMotherDir ? initMotherDir->
GetFile() : 0, initMotherDir);
114 if ((motherdir==0) || (
f==0))
return;
115 if (!
f->IsWritable())
return;
117 Error(
"TDirectoryFile",
"An object with name %s exists already",
name);
124 Error(
"TDirectoryFile",
"Invalid class name: %s",classname);
181 , fModified(
kFALSE), fWritable(
kFALSE), fNbytesKeys(0), fNbytesName(0)
182 , fBufferSize(0), fSeekDir(0), fSeekParent(0), fSeekKeys(0)
213 Info(
"~TDirectoryFile",
"dtor called for %s",
GetName());
225 if (obj == 0 ||
fList == 0)
return;
242 Error(
"AppendKey",
"TDirectoryFile not initialized yet.");
281 TKey *key = 0, *keyo = 0;
287 while ((obj = nextin())) {
293 while ((key = (
TKey *) next())) {
295 if (!keyo || (keyo && strcmp(keyo->GetName(), key->
GetName()))) {
325 if (motherDir && strlen(
GetName()) != 0) motherDir->
Append(
this);
390 char *pobj = (
char*)obj->IsA()->New();
394 if (baseOffset==-1) {
398 Fatal(
"CloneObject",
"Incorrect detection of the inheritance from TObject for class %s.\n",
410 const Int_t bufsize = 10000;
417 ((
TObject*)obj)->Streamer(buffer);
427 newobj->Streamer(buffer);
450 while ((
f = (
TFile*)next())) {
475 Bool_t printError,
const char *funcname)
478 if (apath) nch = strlen(apath);
483 if (funcname==0 || strlen(funcname)==0) funcname =
"GetDirectory";
487 char *path =
new char[nch+1]; path[0] = 0;
488 if (nch) strlcpy(path,apath,nch+1);
489 char *
s = (
char*)strchr(path,
':');
498 if (
f && 0 == url->Compare(
f->GetFile()->GetEndpointUrl()))
505 if (
s && *(
s+1)) result =
f->GetDirectory(
s+1,printError,funcname);
506 delete [] path;
return result;
508 if (printError)
Error(funcname,
"No such file %s", path);
509 delete [] path;
return 0;
514 if (path[0] ==
'/') {
518 delete [] path;
return result;
522 char *
slash = (
char*)strchr(path,
'/');
524 if (!strcmp(path,
"..")) {
526 delete [] path;
return result;
530 if (printError)
Error(funcname,
"Unknown directory %s", path);
531 delete [] path;
return 0;
534 delete [] path;
return obj;
538 slash = (
char*)strchr(subdir.
Data(),
'/');
541 if (!strcmp(subdir,
"..")) {
545 delete [] path;
return result;
549 if (printError)
Error(funcname,
"Unknown directory %s", subdir.
Data());
550 delete [] path;
return 0;
554 delete [] path;
return result;
634 Info(
"Delete",
"Call for this = %s namecycle = %s",
635 GetName(), (namecycle ? namecycle :
"null"));
640 const char *nmcy = (namecycle) ? namecycle :
"";
644 Int_t deletetree = 0;
645 if(strcmp(
name,
"*") == 0) deleteall = 1;
646 if(strcmp(
name,
"*T") == 0){ deleteall = 1; deletetree = 1;}
647 if(strcmp(
name,
"T*") == 0){ deleteall = 1; deletetree = 1;}
648 if(namecycle==0 || !namecycle[0]){ deleteall = 1; deletetree = 1;}
655 if (cycle >= 9999 ) {
658 while ((idcur = (
TNamed *) next())) {
661 if (deleteall ||
s.Index(re) !=
kNPOS) {
665 if (!deletetree && deleteall) deleteOK = 0;
674 idcur->
Delete(deletetree ?
"T*;*" :
"*");
687 if (cycle != 9999 ) {
691 while ((key = (
TKey *) nextkey())) {
694 if (deleteall ||
s.Index(re) !=
kNPOS) {
695 if (cycle == key->
GetCycle()) deleteOK = 1;
696 if (cycle > 9999) deleteOK = 1;
700 if (!deletetree && deleteall) deleteOK = 0;
701 if (cycle == key->
GetCycle()) deleteOK = 2;
737 Version_t version = TDirectoryFile::Class_Version();
748 tobuf(buffer, version);
753 if (version > 1000) {
796 while ((key = (
TKey *) next())) {
798 if ((cycle == 9999) || (cycle >= key->
GetCycle())) {
805 while ((key = (
TKey *) next())) {
814 if (dirsav) dirsav->
cd();
841 while ((key = (
TKey *) next())) {
843 if (cycle == 9999)
return key->
ReadObj();
849 while ((key = (
TKey *) next())) {
855 if (k) {
if (dirsav) dirsav->
cd();
return k->
ReadObj();}
858 if (dirsav) dirsav->
cd();
921 for (
Int_t i = nch-1; i > 0; i--) {
922 if (
name[i] ==
'/') {
925 const char *subnamecycle = namecycle + i + 1;
927 return dirToSearch?dirToSearch->
Get(subnamecycle):0;
930 const char *namobj =
name;
936 if (idcur==
this && strlen(namobj)!=0) {
941 }
else if (cycle == 9999) {
955 while ((key = (
TKey *) nextkey())) {
956 if (strcmp(namobj,key->
GetName()) == 0) {
957 if ((cycle == 9999) || (cycle == key->
GetCycle())) {
1023 if (!namecycle ||
'\0' == namecycle[0]) {
1024 Error(
"GetObjectChecked",
"The provided key name is invalid.");
1033 for (
Int_t i = nch-1; i > 0; i--) {
1034 if (
name[i] ==
'/') {
1037 const char *subnamecycle = namecycle + i + 1;
1046 const char *namobj =
name;
1050 if (expectedClass==0 || expectedClass->
IsTObject()) {
1053 if (objcur==
this && strlen(namobj)!=0) {
1058 }
else if (cycle == 9999) {
1060 if (expectedClass && objcur->IsA()->GetBaseClassOffset(expectedClass) == -1)
return 0;
1076 while ((key = (
TKey *) nextkey())) {
1077 if (strcmp(namobj,key->
GetName()) == 0) {
1078 if ((cycle == 9999) || (cycle == key->
GetCycle())) {
1109 if (!
fKeys)
return nullptr;
1115 while (( key = (
TKey *)next() )) {
1117 if ((cycle == 9999) || (cycle >= key->
GetCycle()))
1152 reg = opt(2,opt.
Length());
1156 reg = opt(2,opt.
Length());
1157 }
else if (!opt.
IsNull())
1165 while ((obj = (
TObject *) nextobj())) {
1167 if (
s.Index(re) ==
kNPOS)
continue;
1175 while ((key = (
TKey *) next())) {
1177 if (
s.Index(re) ==
kNPOS)
continue;
1205 if (!
name || !title || !
name[0])
return 0;
1206 if (!title[0]) title =
name;
1208 Error(
"mkdir",
"An object with name %s exists already",
name);
1212 if (
const char *
slash = strchr(
name,
'/')) {
1214 char *workname =
new char[size+1];
1215 strncpy(workname,
name, size);
1221 if (!tmpdir)
return 0;
1223 if (!newdir) newdir = tmpdir;
1251 while ((key = (
TKey*)prev())) {
1253 if (!keyprev)
break;
1285 Bool_t readdirs = ((opt!=0) && ((strcmp(opt,
"dirs")==0) || (strcmp(opt,
"dirs*")==0)));
1288 while ((key = (
TKey *) next())) {
1291 if (strstr(key->
GetClassName(),
"TDirectory")==0)
continue;
1295 if ((dir!=0) && (strcmp(opt,
"dirs*")==0)) dir->
ReadAll(
"dirs*");
1298 while ((key = (
TKey *) next())) {
1300 if (thing) {
delete thing; }
1346 char *header =
new char[nbytes];
1361 if (versiondir > 1000) {
1366 Int_t sdir,sparent,skeys;
1384 for (
Int_t i = 0; i < nkeys; i++) {
1385 key =
new TKey(
this);
1388 Error(
"ReadKeys",
"reading illegal key, exiting after %d keys",i);
1394 Error(
"ReadKeys",
"reading illegal key, exiting after %d keys",i);
1419 if (!
fFile) {
Error(
"Read",
"No file open");
return 0; }
1422 while ((key = (
TKey *) nextkey())) {
1423 if (strcmp(keyname,key->
GetName()) == 0) {
1424 return key->
Read(obj);
1427 Error(
"Read",
"Key not found");
1470 while ((idcur = next())) {
1487 if ((
name==0) || (*
name==0))
return;
1507 TObject *idcur = lnk->GetObject();
1512 lnk = lnk->NextSP();
1535 if (!filename || !filename[0]) {
1539 if (fname.
Index(
".json") > 0) {
1543 if (!local)
return 0;
1544 nbytes = obj->
Write();
1546 if (dirsav) dirsav->
cd();
1579 if (dirsav !=
this)
cd();
1582 if (dirsav && dirsav !=
this) dirsav->
cd();
1609 Int_t offset = (
char*)ref - (
char*)parent;
1610 TClass *cl = parent->IsA();
1616 if (element->
GetOffset() != offset)
continue;
1618 if (execid > 0) ref->
SetBit(execid << 8);
1636 while ((idcur = next())) {
1665void TDirectoryFile::Streamer(
TBuffer &
b)
1668 if (
b.IsReading()) {
1677 b.ClassBegin(dirclass, R__v);
1681 b.ClassMember(
"CreateTime",
"TString");
1686 b.ClassMember(
"ModifyTime",
"TString");
1691 b.ClassMember(
"UUID",
"TString");
1696 b.ClassEnd(dirclass);
1705 if (version > 1000) {
1711 Int_t sdir,sparent,skeys;
1735 b.ClassMember(
"CreateTime",
"TString");
1739 b.ClassMember(
"ModifyTime",
"TString");
1744 b.ClassMember(
"UUID",
"TString");
1750 version = TDirectoryFile::Class_Version();
1757 if (version > 1000) {
1767 if (version <=1000)
for (
Int_t i=0;i<3;i++)
b <<
Int_t(0);
1789 while ((obj=next())) {
1790 nbytes += obj->
Write(0,opt,bufsize);
1802 Error(
"Write const",
"A const TDirectory object should not be saved. We try to proceed anyway.");
1855 const char *objname =
"no name specified";
1857 else if (obj) objname = obj->
GetName();
1858 Error(
"WriteTObject",
"The current directory (%s) is not associated with a file. The object (%s) has not been written.",
GetName(),objname);
1875 TKey *key=0, *oldkey=0;
1877 if (bufsize > 0) bsize = bufsize;
1886 Int_t nch = strlen(oname);
1888 if (nch && oname[nch-1] ==
' ') {
1889 newName =
new char[nch+1];
1890 strlcpy(newName,oname,nch+1);
1891 for (
Int_t i=0;i<nch;i++) {
1892 if (newName[nch-i-1] !=
' ')
break;
1893 newName[nch-i-1] = 0;
1911 if (newName)
delete [] newName;
1970 Error(
"WriteObjectAny",
"Unknown class: %s",classname);
1994 if (
fFile==0)
return 0;
1997 Error(
"WriteObject",
"Unknown type for %s, it can not be written.",
name);
2011 const char *className = cl->
GetName();
2019 Error(
"WriteObjectAny",
2020 "The class requested (%s) for the key name \"%s\""
2021 " is an instance of an stl collection and does not have a compiled CollectionProxy."
2022 " Please generate the dictionary for this collection (%s). No data will be written.",
2023 className, oname, className);
2027 TKey *key, *oldkey=0;
2029 if (bufsize > 0) bsize = bufsize;
2035 Int_t nch = strlen(oname);
2037 if (nch && oname[nch-1] ==
' ') {
2038 newName =
new char[nch+1];
2039 strlcpy(newName,oname,nch+1);
2040 for (
Int_t i=0;i<nch;i++) {
2041 if (newName[nch-i-1] !=
' ')
break;
2042 newName[nch-i-1] = 0;
2060 if (newName)
delete [] newName;
2087 if (!
f->IsBinary()) {
2089 f->DirWriteHeader(
this);
2094 char * header =
new char[nbytes];
2095 char * buffer = header;
2101 f->WriteBuffer(header, nbytes);
2102 if (
f->MustFlush())
f->Flush();
2116 if (!
f->IsBinary()) {
2117 f->DirWriteKeys(
this);
2129 Int_t nbytes =
sizeof nkeys;
2131 while ((key = (
TKey*)next())) {
2141 tobuf(buffer, nkeys);
2142 while ((key = (
TKey*)next())) {
void frombuf(char *&buf, Bool_t *x)
void tobuf(char *&buf, Bool_t x)
const Bool_t kIterBackward
R__EXTERN TVirtualMutex * gROOTMutex
R__EXTERN TSystem * gSystem
#define R__LOCKGUARD(mutex)
Using a TBrowser one can browse all ROOT objects.
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
virtual void ResetMap()
Delete existing fMap and reset map counter.
virtual void MapObject(const TObject *obj, UInt_t offset=1)
Add object to the fMap container.
static Int_t ExportToFile(const char *filename, const TObject *obj, const char *option=nullptr)
Convert object into JSON and store in text file Returns size of the produce file Used in TObject::Sav...
Buffer base class used for serializing objects.
void SetBufferOffset(Int_t offset=0)
void SetReadMode()
Set buffer in read mode.
The ROOT global object gROOT contains a list of all defined classes.
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist,...
void BuildRealData(void *pointer=0, Bool_t isTransient=kFALSE)
Build a full list of persistent data members.
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual bool UseRWLock()
Set this collection to use a RW lock upon access, making it thread safe.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
void FillBuffer(char *&buffer)
Encode Date/Time into buffer, used by I/O system.
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
void Set()
Set Date/Time to current time as reported by the system.
void ReadBuffer(char *&buffer)
Decode Date/Time from output buffer, used by I/O system.
A ROOT file is structured in Directories (like a file system).
virtual ~TDirectoryFile()
Destructor.
TFile * fFile
Pointer to current file in memory.
virtual TObject * FindObjectAnyFile(const char *name) const
Scan the memory lists of all files for an object with name.
virtual Int_t WriteTObject(const TObject *obj, const char *name=0, Option_t *option="", Int_t bufsize=0)
Write object obj to this directory.
virtual Int_t ReadKeys(Bool_t forceRead=kTRUE)
Read the linked list of keys.
virtual TKey * FindKey(const char *keyname) const
Find key with name keyname in the current directory.
virtual Int_t SaveObjectAs(const TObject *obj, const char *filename="", Option_t *option="") const
Save object in filename.
virtual void ResetAfterMerge(TFileMergeInfo *)
Reset the TDirectory after its content has been merged into another Directory.
void SetWritable(Bool_t writable=kTRUE)
Set the new value of fWritable recursively.
void GetObject(const char *namecycle, T *&ptr)
TDatime fDatimeM
Date and time of last modification.
virtual Int_t Sizeof() const
Return the size in bytes of the directory header.
virtual Int_t WriteObjectAny(const void *obj, const char *classname, const char *name, Option_t *option="", Int_t bufsize=0)
Write object from pointer of class classname in this directory.
virtual TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory named "apath".
virtual void SetBufferSize(Int_t bufsize)
Set the default buffer size when creating new TKeys.
virtual void Delete(const char *namecycle="")
Delete Objects or/and keys in a directory.
virtual TKey * FindKeyAny(const char *keyname) const
Find key with name keyname in the current directory or its subdirectories.
virtual void * GetObjectChecked(const char *namecycle, const char *classname)
See documentation of TDirectoryFile::GetObjectCheck(const char *namecycle, const TClass *cl)
Int_t AppendKey(TKey *key)
Insert key in the linked list of keys of this directory.
virtual TObject * FindObjectAny(const char *name) const
Find object by name in the list of memory objects of the current directory or its sub-directories.
virtual void rmdir(const char *name)
Removes subdirectory from the directory.
virtual void Append(TObject *obj, Bool_t replace=kFALSE)
Append object to this directory.
Int_t fNbytesKeys
Number of bytes for the keys.
virtual void Save()
Save recursively all directory keys and headers.
virtual Int_t ReadTObject(TObject *obj, const char *keyname)
Read object with keyname from the current directory.
virtual TDirectory * mkdir(const char *name, const char *title="")
Create a sub-directory "a" or a hierarchy of sub-directories "a/b/c/...".
virtual void Close(Option_t *option="")
Delete all objects from memory and directory structure itself.
Bool_t fModified
True if directory has been modified.
void Build(TFile *motherFile=0, TDirectory *motherDir=0)
Initialise directory to defaults.
virtual TFile * GetFile() const
virtual Int_t GetBufferSize() const
Return the buffer size to create new TKeys.
virtual void CleanTargets()
Clean the pointers to this object (gDirectory, TContext, etc.)
Long64_t fSeekKeys
Location of Keys record on file.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
Int_t fBufferSize
Default buffer size to create new TKeys.
virtual void SetTRefAction(TObject *ref, TObject *parent)
Find the action to be executed in the dictionary of the parent class and store the corresponding exec...
virtual void FillBuffer(char *&buffer)
Encode directory header into output buffer.
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsize=0)
Write all objects in memory to disk.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
virtual void WriteKeys()
Write Keys linked list on the file.
virtual TObject * CloneObject(const TObject *obj, Bool_t autoadd=kTRUE)
Make a clone of an object using the Streamer facility.
virtual void * GetObjectUnchecked(const char *namecycle)
Return pointer to object identified by namecycle.
Long64_t fSeekParent
Location of parent directory on file.
virtual void Browse(TBrowser *b)
Browse the content of the directory.
virtual void WriteDirHeader()
Overwrite the Directory header record.
Long64_t fSeekDir
Location of directory on file.
Int_t fNbytesName
Number of bytes in TNamed at creation time.
TDatime fDatimeC
Date and time when directory is created.
void Init(TClass *cl=0)
Initialize the key associated with this directory (and the related data members.
virtual void ReadAll(Option_t *option="")
Read objects from a ROOT file directory into memory.
Bool_t fWritable
True if directory is writable.
virtual void SaveSelf(Bool_t force=kFALSE)
Save Directory keys and header.
virtual void ls(Option_t *option="") const
List Directory contents.
virtual TFile * OpenFile(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Interface to TFile::Open.
virtual TList * GetListOfKeys() const
Bool_t IsWritable() const
virtual TKey * GetKey(const char *name, Short_t cycle=9999) const
Return pointer to key with name,cycle.
TDirectoryFile()
Default Constructor.
virtual void Purge(Short_t nkeep=1)
Purge lowest key cycles in a directory.
TList * fKeys
Pointer to keys list in memory.
Describe directory structure in memory.
virtual TList * GetList() const
virtual Int_t AppendKey(TKey *)
virtual TDirectory * GetDirectory(const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory using apath.
virtual void ReadAll(Option_t *="")
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual void Copy(TObject &) const
Copy this to obj.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
virtual void CleanTargets()
Clean the pointers to this object (gDirectory, TContext, etc.).
virtual void Append(TObject *obj, Bool_t replace=kFALSE)
Append object to this directory.
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".
virtual TFile * GetFile() const
virtual TKey * GetKey(const char *, Short_t=9999) const
virtual TDirectory * GetMotherDir() const
virtual void * GetObjectChecked(const char *namecycle, const char *classname)
See documentation of TDirectory::GetObjectCheck(const char *namecycle, const TClass *cl)
virtual TKey * FindKeyAny(const char *) const
virtual void Delete(const char *namecycle="")
Delete Objects or/and keys in a directory.
virtual TObject * FindObjectAny(const char *name) const
Find object by name in the list of memory objects of the current directory or its sub-directories.
Streamer around an arbitrary STL like container, which implements basic container functionality.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
virtual void Seek(Long64_t offset, ERelativeTo pos=kBeg)
Seek to a specific position in the file. Pos it either kBeg, kCur or kEnd.
virtual Int_t DirReadKeys(TDirectory *)
TList * GetListOfFree() const
Int_t GetBestBuffer() const
Return the best buffer size of objects on this file.
virtual TKey * CreateKey(TDirectory *mother, const TObject *obj, const char *name, Int_t bufsize)
Creates key for object and converts data to buffer.
virtual Long64_t GetSize() const
Returns the current file size.
virtual Long64_t GetEND() const
void SumBuffer(Int_t bufsize)
Increment statistics for buffer sizes of objects in this file.
static TFile *& CurrentFile()
Return the current ROOT file if any.
virtual const TUrl * GetEndpointUrl() const
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
virtual Bool_t ReadBuffer(char *buf, Int_t len)
Read a buffer from the file.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual Long64_t GetSeekKey() const
virtual void FillBuffer(char *&buffer)
Encode key header into output buffer.
virtual void Delete(Option_t *option="")
Delete an object from the file.
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
virtual void ls(Option_t *option="") const
List Key contents.
Short_t GetKeep() const
Returns the "KEEP" status.
virtual const char * GetClassName() const
virtual Bool_t ReadFile()
Read the key structure from the file.
virtual Int_t WriteFile(Int_t cycle=1, TFile *f=0)
Write the encoded object supported by this key.
virtual void * ReadObjectAny(const TClass *expectedClass)
To read an object (non deriving from TObject) from the file.
void ReadKeyBuffer(char *&buffer)
Decode input buffer.
virtual Long64_t GetSeekPdir() const
void SetMotherDir(TDirectory *dir)
Short_t GetCycle() const
Return cycle number associated to this key.
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual char * GetBuffer() const
virtual Int_t Sizeof() const
Return the size in bytes of the key header structure.
virtual void Add(TObject *obj)
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
virtual TObjLink * FirstLink() const
virtual void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
virtual TObject * Before(const TObject *obj) const
Returns the object before object obj.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
This class implements a shared memory region mapped to a file.
void Add(const TObject *obj, const char *name="")
Add an object to the list of objects to be stored in shared memory.
The TNamed class is the base class for all named ROOT classes.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Wrapper around a TObject so it can be stored in a TList.
TObject * GetObject() const
Mother of all ROOT objects.
virtual Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Delete(Option_t *option="")
Delete this object.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
virtual void ls(Option_t *option="") const
The ls function lists the contents of a class on stdout.
@ kCanDelete
if object in a list can be deleted
@ kIsReferenced
if object is referenced by a TRef or TRefArray
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
static Int_t IncreaseDirLevel()
Increase the indentation level for ls().
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
Regular expression class.
virtual Int_t GetExecID() const
Returns the TExec id for the EXEC instruction in the comment field of a TRef data member.
Describe Streamer information for one class version.
TObjArray * GetElements() const
void ToLower()
Change string to lower-case.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
const char * AsString() const
Return UUID as string. Copy string immediately since it will be reused.
void FillBuffer(char *&buffer)
Stream UUID into output buffer.
void StreamerV1(TBuffer &b)
Stream UUID from input buffer.
Abstract Interface class describing Streamer information for one class.
virtual TClass * GetClass() const =0
void(* DirAutoAdd_t)(void *, TDirectory *)
static constexpr double s