32 const char *title = 0);
#define ClassDef(name, id)
The ROOT global object gROOT contains a list of all defined classes.
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
virtual void ReadBuffer(char *&)
Decode input buffer.
void UpdateObject(TObject *obj)
updates object, stored in the node Used for TDirectory data update
virtual TObject * ReadObjWithBuffer(char *bufferRead)
read object derived from TObject class, from key if it is not TObject or in case of error,...
Long64_t GetKeyId() const
XMLNodePointer_t KeyNode() const
virtual void Delete(Option_t *option="")
Delete key from current directory Note: TKeyXML object is not deleted.
virtual Int_t Read(TObject *tobj)
To read an object from the file.
XMLNodePointer_t fKeyNode
TXMLEngine * XMLEngine()
return pointer on TXMLEngine object, used for xml conversion
virtual void * ReadObjectAny(const TClass *expectedClass)
read object of any type
virtual void FillBuffer(char *&)
Encode key header into output buffer.
virtual Long64_t GetSeekKey() const
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
void * XmlReadAny(void *obj, const TClass *expectedClass)
read object from key and cast to expected class
virtual ~TKeyXML()
TKeyXML destructor.
virtual Long64_t GetSeekPdir() const
virtual TObject * ReadObj()
read object derived from TObject class, from key if it is not TObject or in case of error,...
TKeyXML & operator=(const TKeyXML &)
virtual char * GetBuffer() const
virtual Int_t WriteFile(Int_t=1, TFile *=0)
Write the encoded object supported by this key.
void StoreObject(const void *obj, const TClass *cl, Bool_t check_tobj=kFALSE)
convert object to xml structure and keep this structure in key
virtual void DeleteBuffer()
Delete key buffer(s).
virtual void Keep()
Set the "KEEP" status.
void UpdateAttributes()
update key attributes in key node
TKeyXML()
default constructor
void StoreKeyAttributes()
Stores keys attributes in key node.
virtual Bool_t ReadFile()
Read the key structure from the file.
Long64_t fKeyId
node with stored object
Bool_t fSubdir
unique identifier of key for search methods
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
char * fBuffer
Object buffer.
Mother of all ROOT objects.