18#ifdef R__LESS_INCLUDES
77 const char *
GetTitle()
const override;
94 virtual void ls(
Bool_t current)
const;
104 return reinterpret_cast<T*
>(
ReadObjectAny(TClass::GetClass<T>()));
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Using a TBrowser one can browse all ROOT objects.
Buffer base class used for serializing objects.
TClass instances represent classes, structs and namespaces in the ROOT type system.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
const char * GetTitle() const override
Returns title (title can contain 32x32 xpm thumbnail/icon).
void Delete(Option_t *option="") override
Delete an object from the file.
virtual Long64_t GetSeekKey() const
Int_t Sizeof() const override
Return the size in bytes of the key header structure.
TKey()
TKey default constructor.
TFile * GetFile() const
Returns file to which key belong.
virtual void Keep()
Set the "KEEP" status.
const char * GetIconName() const override
Title can keep 32x32 xpm thumbnail/icon of the parent object.
Int_t Read(const char *name) override
Read contents of object with specified name from the current directory.
TDatime fDatime
Date/Time of insertion in file.
TBuffer * fBufferRef
Pointer to the TBuffer object.
T * ReadObject()
To read an object (non deriving from TObject) from the file.
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 IncrementPidOffset(UShort_t offset)
Increment fPidOffset by 'offset'.
Short_t GetKeep() const
Returns the "KEEP" status.
Int_t fVersion
Key version identifier.
virtual ~TKey()
TKey default destructor.
Bool_t IsFolder() const override
Check if object referenced by the key is a folder.
Int_t fLeft
Number of bytes left in current segment.
virtual const char * GetClassName() const
Short_t fKeylen
Number of bytes for the key itself.
virtual Bool_t ReadFile()
Read the key structure from the file.
TKey(const TKey &)=delete
const TDatime & GetDatime() const
void Browse(TBrowser *b) override
Read object from disk and call its Browse() method.
virtual Int_t WriteFileKeepBuffer(TFile *f=nullptr)
Write the encoded object supported by this key.
Long64_t fSeekKey
Location of object on file.
void Build(TDirectory *motherDir, const char *classname, Long64_t filepos)
Method used in all TKey constructor to initialize basic data fields.
char * fBuffer
Object buffer.
Long64_t fSeekPdir
Location of parent directory on file.
virtual void SetParent(const TObject *parent)
Set parent in key buffer.
virtual void * ReadObjectAny(const TClass *expectedClass)
To read an object (non deriving from TObject) from the file.
void ReadKeyBuffer(char *&buffer)
Decode input buffer.
Int_t fNbytes
Number of bytes for the object on file.
Int_t fObjlen
Length of uncompressed object in bytes.
void Reset()
Reset the key as it had not been 'filled' yet.
TKey & operator=(const TKey &)=delete
virtual Long64_t GetSeekPdir() const
void SetMotherDir(TDirectory *dir)
Short_t fCycle
Cycle number.
virtual TObject * ReadObjWithBuffer(char *bufferRead)
To read a TObject* from bufferRead.
virtual void ls(Bool_t current) const
List Key contents.
TDirectory * GetMotherDir() const
Short_t GetCycle() const
Return cycle number associated to this key.
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual void Create(Int_t nbytes, TFile *f=nullptr)
Create a TKey object of specified size.
virtual void DeleteBuffer()
Delete key buffer(s).
virtual Int_t WriteFile(Int_t cycle=1, TFile *f=nullptr)
Write the encoded object supported by this key.
virtual char * GetBuffer() const
virtual void ReadBuffer(char *&buffer)
Decode input buffer.
TDirectory * fMotherDir
!pointer to mother directory
TString fClassName
Object Class name.
void Print(Option_t *option="") const override
Print key contents.
void FillBuffer(char *&buffer) override
Encode key header into output buffer.
TBuffer * GetBufferRef() const
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
const char * Data() const