73 virtual const char *
GetTitle()
const;
Int_t fVersion
Key version identifier.
Int_t fLeft
Number of bytes left in current segment.
virtual const char * GetIconName() const
Title can keep 32x32 xpm thumbnail/icon of the parent object.
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 char * GetBuffer() const
virtual const char * GetClassName() const
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.
Buffer base class used for serializing objects.
TKey()
TKey default constructor.
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 ULong_t Hash() const
This Hash function should redefine the default from TNamed.
char * fBuffer
Object buffer.
virtual void FillBuffer(char *&buffer)
Encode key header into output buffer.
TDirectory * GetMotherDir() const
TDirectory * fMotherDir
!pointer to mother directory
TBuffer * GetBufferRef() const
virtual Int_t Sizeof() const
Return the size in bytes of the key header structure.
virtual void ls(Option_t *option="") const
List Key contents.
#define ClassDef(name, id)
Long64_t fSeekPdir
Location of parent directory on file.
virtual void Print(Option_t *option="") const
Print key contents.
The TNamed class is the base class for all named ROOT classes.
Short_t GetKeep() const
Returns the "KEEP" status.
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.
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 Int_t WriteFileKeepBuffer(TFile *f=0)
Write the encoded object supported by this key.
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.
TFile * GetFile() const
Returns file to which key belong.
virtual Bool_t ReadFile()
Read the key structure from the file.
virtual Long64_t GetSeekPdir() const
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.
virtual Long64_t GetSeekKey() const
Describe directory structure in memory.
virtual const char * GetTitle() const
Returns title (title can contain 32x32 xpm thumbnail/icon).
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).
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Int_t fNbytes
Number of bytes for the object on file.
const TDatime & GetDatime() const
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
Short_t GetCycle() const
Return cycle number associated to this key.
Bool_t IsFolder() const
Check if object referenced by the key is a folder.
TKey & operator=(const TKey &)
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * Data() const