library: libXMLIO
#include "TKeyXML.h"

TKeyXML


class description - header file - source file - inheritance tree (.pdf)

class TKeyXML : public TKey

Inheritance Chart:
TObject
<-
TNamed
<-
TKey
<-
TKeyXML

    protected:
TKeyXML() virtual Int_t Read(const char* name) void StoreKeyAttributes() void StoreObject(const void* obj, const TClass* cl) TXMLEngine* XMLEngine() void* XmlReadAny(void* obj, const TClass* expectedClass) public:
TKeyXML(TDirectory* mother, Long64_t keyid, const TObject* obj, const char* name = "0", const char* title = "0") TKeyXML(TDirectory* mother, Long64_t keyid, const void* obj, const TClass* cl, const char* name, const char* title = "0") TKeyXML(TDirectory* mother, Long64_t keyid, XMLNodePointer_t keynode) TKeyXML(const TKeyXML&) virtual ~TKeyXML() static TClass* Class() virtual void Delete(Option_t* option = "") virtual void DeleteBuffer() virtual void FillBuffer(char*&) virtual char* GetBuffer() const Long64_t GetKeyId() const virtual Long64_t GetSeekKey() const virtual Long64_t GetSeekPdir() const virtual TClass* IsA() const Bool_t IsSubdir() const virtual void Keep() XMLNodePointer_t KeyNode() const virtual Int_t Read(TObject* tobj) virtual void ReadBuffer(char*&) virtual void ReadFile() virtual TObject* ReadObj() virtual void* ReadObjectAny(const TClass* expectedClass) virtual void SetBuffer() void SetSubir() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void UpdateAttributes() void UpdateObject(TObject* obj) virtual Int_t WriteFile(Int_t = 1, TFile* = 0)

Data Members


    protected:
XMLNodePointer_t fKeyNode ! node with stored object Long64_t fKeyId ! unique identifier of key for search methods Bool_t fSubdir ! indicates that key contains subdirectory

Class Description

________________________________________________________________________

 TKeyXML is represents one block of data in TXMLFile
 Normally this block corresponds to data of single object like histogram,
 TObjArray and so on.
________________________________________________________________________
TKeyXML()
 default constructor
TKeyXML(TDirectory* mother, Long64_t keyid, const TObject* obj, const char* name, const char* title)
 Creates TKeyXML and convert obj data to xml structures
TKeyXML(TDirectory* mother, Long64_t keyid, const void* obj, const TClass* cl, const char* name, const char* title)
 Creates TKeyXML and convert obj data to xml structures
TKeyXML(TDirectory* mother, Long64_t keyid, XMLNodePointer_t keynode)
 Creates TKeyXML and takes ownership over xml node, from which object can be restored
~TKeyXML()
 TKeyXML destructor
void StoreKeyAttributes()
 Stores keys attributes in key node
void StoreObject(const void* obj, const TClass* cl)
  convert object to xml structure and keep this structure in key
void UpdateAttributes()
 update key attributes in key node
void UpdateObject(TObject* obj)
 updates object, stored in the node
 Used for TDirectory data update
Int_t Read(TObject* tobj)
 To read an object from the file.
 The object associated to this key is read from the file into memory.
 Before invoking this function, obj has been created via the
 default constructor.
TObject* ReadObj()
 read object derived from TObject class, from key
 if it is not TObject or in case of error, return 0
void* ReadObjectAny(const TClass *expectedClass)
 read object of any type
void* XmlReadAny(void* obj, const TClass* expectedClass)
 read object from key and cast to expected class
TXMLEngine* XMLEngine()
 return pointer on TXMLEngine object, used for xml conversion
TKeyXML()
void Delete(Option_t *option="")
 redefined TKey Methods
void DeleteBuffer()
void FillBuffer(char *&)
Long64_t GetSeekKey()
Long64_t GetSeekPdir()
void Keep()
virtual ULong_t   Hash() const { return 0; }
Int_t Read(TObject* tobj)
void ReadBuffer(char *&)
void ReadFile()
void SetBuffer()
Int_t WriteFile(Int_t =1, TFile* = 0)
XMLNodePointer_t KeyNode()
Long64_t GetKeyId()
Bool_t IsSubdir()
void SetSubir()

Author: Sergey Linev, Rene Brun 10.05.2004
Last update: root/xml:$Name: $:$Id: TKeyXML.cxx,v 1.8 2006/06/22 08:21:22 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.