79 virtual const char *
GetTitle()
const;
Int_t fVersion
Key version identifier.
Int_t fLeft
Number of bytes left in current segment.
Bool_t IsFolder() const
Check if object referenced by the key is a folder.
TDirectory * GetMotherDir() const
virtual void ls(Option_t *option="") const
List Key contents.
UShort_t fPidOffset
!Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of f...
virtual void Print(Option_t *option="") const
Print key contents.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void * ReadObjectAny(const TClass *expectedClass)
To read an object (non deriving from TObject) from the file.
Short_t GetCycle() const
Return cycle number associated to this key.
Buffer base class used for serializing objects.
virtual Long64_t GetSeekPdir() const
virtual void Browse(TBrowser *b)
Read object from disk and call its Browse() method.
void Build(TDirectory *motherDir, const char *classname, Long64_t filepos)
Method used in all TKey constructor to initialize basic data fields.
virtual const char * GetIconName() const
Title can keep 32x32 xpm thumbnail/icon of the parent object.
TFile * GetFile() const
Returns file to which key belong.
virtual const char * GetClassName() const
char * fBuffer
Object buffer.
virtual void FillBuffer(char *&buffer)
Encode key header into output buffer.
TDirectory * fMotherDir
!pointer to mother directory
virtual Long64_t GetSeekKey() const
virtual char * GetBuffer() const
const char * Data() const
Long64_t fSeekPdir
Location of parent directory on file.
The TNamed class is the base class for all named ROOT classes.
virtual Int_t WriteFile(Int_t cycle=1, TFile *f=0)
Write the encoded object supported by this key.
Short_t fKeylen
Number of bytes for the key itself.
TString fClassName
Object Class name.
virtual ~TKey()
TKey default destructor.
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
virtual Int_t Sizeof() const
Return the size in bytes of the key header structure.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual void Delete(Option_t *option="")
Delete an object from the file.
TDatime fDatime
Date/Time of insertion in file.
virtual const char * GetTitle() const
Returns title (title can contain 32x32 xpm thumbnail/icon).
virtual Int_t WriteFileKeepBuffer(TFile *f=0)
Write the encoded object supported by this key.
TBuffer * GetBufferRef() const
Using a TBrowser one can browse all ROOT objects.
virtual void IncrementPidOffset(UShort_t offset)
Increment fPidOffset by 'offset'.
virtual void Keep()
Set the "KEEP" status.
virtual void ReadBuffer(char *&buffer)
Decode input buffer.
virtual Bool_t ReadFile()
Read the key structure from the file.
The ROOT global object gROOT contains a list of all defined classes.
virtual void Reset()
Reset the key as it had not been 'filled' yet.
virtual TObject * ReadObjWithBuffer(char *bufferRead)
To read a TObject* from bufferRead.
TBuffer * fBufferRef
Pointer to the TBuffer object.
virtual void SetParent(const TObject *parent)
Set parent in key buffer.
Long64_t fSeekKey
Location of object on file.
void SetMotherDir(TDirectory *dir)
void ReadKeyBuffer(char *&buffer)
Decode input buffer.
Short_t fCycle
Cycle number.
Describe directory structure in memory.
Int_t fObjlen
Length of uncompressed object in bytes.
Mother of all ROOT objects.
virtual void Create(Int_t nbytes, TFile *f=0)
Create a TKey object of specified size.
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual void DeleteBuffer()
Delete key buffer(s).
Int_t fNbytes
Number of bytes for the object on file.
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
virtual ULong_t Hash() const
This Hash function should redefine the default from TNamed.
const TDatime & GetDatime() const
Short_t GetKeep() const
Returns the "KEEP" status.
TKey & operator=(const TKey &)
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...