library: libXMLIO
#include "TKeyXML.h"

TKeyXML


class description - 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 StoreObject(const void* obj, const TClass* cl) TXMLEngine* XMLEngine() void* XmlReadAny(void* obj, const TClass* expectedClass) public:
TKeyXML(TDirectory* mother, const TObject* obj, const char* name = "0") TKeyXML(TDirectory* mother, const void* obj, const TClass* cl, const char* name) TKeyXML(TDirectory* mother, 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 virtual Long64_t GetSeekKey() const virtual Long64_t GetSeekPdir() const virtual TClass* IsA() const virtual void Keep() XMLNodePointer_t KeyNode() const TKeyXML& operator=(const TKeyXML&) 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() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t WriteFile(Int_t = 1, TFile* = 0)

Data Members


    protected:
XMLNodePointer_t fKeyNode !

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() : TKey(), fKeyNode(0)
 default constructor

TKeyXML(TDirectory* mother, const TObject* obj, const char* name) : TKey(mother), fKeyNode(0)
 Creates TKeyXML and convert obj data to xml structures

TKeyXML(TDirectory* mother, const void* obj, const TClass* cl, const char* name) : TKey(mother), fKeyNode(0)
 Creates TKeyXML and convert obj data to xml structures

TKeyXML(TDirectory* mother, XMLNodePointer_t keynode) : TKey(mother), fKeyNode(keynode)
 Creates TKeyXML and takes ownership over xml node, from which object can be restored

~TKeyXML()
 TKeyXML destructor

void Delete(Option_t * /*option*/)
 Delete key from current directory
 Note: TKeyXML object is not deleted. You still have to call "delete key"

void StoreObject(const void* obj, const TClass* cl)
  convert object to xml structure and keep this structure in key

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



Inline Functions


                    void DeleteBuffer()
                    void FillBuffer(char*&)
                   char* GetBuffer() const
                Long64_t GetSeekKey() const
                Long64_t GetSeekPdir() const
                    void Keep()
                    void ReadBuffer(char*&)
                    void ReadFile()
                    void SetBuffer()
                   Int_t WriteFile(Int_t = 1, TFile* = 0)
        XMLNodePointer_t KeyNode() const
                   Int_t Read(const char* name)
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
                 TKeyXML TKeyXML(const TKeyXML&)
                TKeyXML& operator=(const TKeyXML&)


Author: Sergey Linev, Rene Brun 10.05.2004
Last update: root/xml:$Name: $:$Id: TKeyXML.cxx,v 1.7 2006/02/01 18:57:41 pcanal 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.