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