library: libRXML
#include "TXMLKey.h"

TXMLKey


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

class TXMLKey : public TKey

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

    protected:
TXMLKey() xmlNodePointer BlockNode() xmlNodePointer ObjNode() virtual Int_t Read(const char* name) void StoreObject(const void* obj, const TClass* cl) public:
TXMLKey(TXMLFile* file, const TObject* obj, const char* name = "0") TXMLKey(TXMLFile* file, const void* obj, const TClass* cl, const char* name) TXMLKey(TXMLFile* file, xmlNodePointer keynode) TXMLKey(const TXMLKey&) virtual ~TXMLKey() virtual void Browse(TBrowser* b) 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 KeyNode() const TXMLKey& operator=(const TXMLKey&) virtual Int_t Read(TObject*) virtual void ReadBuffer(char*&) virtual void ReadFile() virtual TObject* ReadObj() virtual void* ReadObjectAny(const TClass* cl) virtual void SetBuffer() virtual void SetParent(const TObject*) void SetXML(TXMLEngine* xml) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual Int_t Sizeof() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t WriteFile(Int_t = 1)

Data Members


    protected:
TXMLFile* fFile ! TXMLEngine* fXML ! xmlNodePointer fKeyNode !

Class Description

 TXMLKey is represents one block of data in TXMLFile
 Normally this block corresponds to data of single object like histogram,
 TObjArray and so on.
________________________________________________________________________

TXMLKey() : TKey(), fFile(0), fXML(0), fKeyNode(0)
 default constructor

TXMLKey(TXMLFile* file, const TObject* obj, const char* name) : TKey(), fFile(file), fXML(file->XML()), fKeyNode(0)
 Creates TXMLKey and convert obj data to xml structures

TXMLKey(TXMLFile* file, const void* obj, const TClass* cl, const char* name) : TKey(), fFile(file), fXML(file->XML()), fKeyNode(0)
 Creates TXMLKey and convert obj data to xml structures

TXMLKey(TXMLFile* file, xmlNodePointer keynode) : TKey(), fFile(file), fXML(file->XML()), fKeyNode(keynode)
 Creates TXMLKey and takes ownership over xml node, from which object can be restored

~TXMLKey()
 TXMLKey destructor

void Browse(TBrowser *b)
 Browse object corresponding to this key

void Delete(Option_t * /*option*/)
 Delete key from current directory
 Note: TXMLKey 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

xmlNodePointer ObjNode()
 return starting node, where object was stored

xmlNodePointer BlockNode()
 return node, where key binary data is stored

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* /*cl*/)
 read object of any type



Inline Functions


                  void DeleteBuffer()
                  void FillBuffer(char*&)
                 char* GetBuffer() const
              Long64_t GetSeekKey() const
              Long64_t GetSeekPdir() const
                  void Keep()
                 Int_t Read(TObject*)
                  void ReadBuffer(char*&)
                  void ReadFile()
                  void SetBuffer()
                  void SetParent(const TObject*)
                 Int_t Sizeof() const
                 Int_t WriteFile(Int_t = 1)
        xmlNodePointer KeyNode() const
                  void SetXML(TXMLEngine* xml)
                 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)
               TXMLKey TXMLKey(const TXMLKey&)
              TXMLKey& operator=(const TXMLKey&)


Author: Sergey Linev, Rene Brun 10.05.2004
Last update: root/xml:$Name: $:$Id: TXMLKey.cxx,v 1.5 2004/06/03 21:06:38 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.