15 #ifndef ROOT_TXMLEngine
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.
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 Long64_t GetSeekKey() const
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 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
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...
void UpdateAttributes()
update key attributes in key node
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
void UpdateObject(TObject *obj)
updates object, stored in the node Used for TDirectory data update
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.
void StoreObject(const void *obj, const TClass *cl)
convert object to xml structure and keep this structure in key
Describe directory structure in memory.
TKeyXML & operator=(const TKeyXML &)
Mother of all ROOT objects.
XMLNodePointer_t KeyNode() const
Long64_t GetKeyId() const
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.
virtual char * GetBuffer() const