library: libXMLIO
#include "TKeyXML.h"


class description - header file - source file
viewCVS header - viewCVS source

class TKeyXML: public TKey

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TKeyXML(const TKeyXML&)
TKeyXML(TDirectory* mother, Long64_t keyid, XMLNodePointer_t keynode)
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")
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTKey::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidDelete(Option_t* option = "")
virtual voidDeleteBuffer()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidFillBuffer(char*&)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual char*GetBuffer() const
TBuffer*TKey::GetBufferRef() const
virtual const char*TKey::GetClassName() const
Short_tTKey::GetCycle() const
const TDatime&TKey::GetDatime() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TFile*TKey::GetFile() const
virtual const char*TKey::GetIconName() const
Short_tTKey::GetKeep() const
Long64_tGetKeyId() const
Int_tTKey::GetKeylen() const
TDirectory*TKey::GetMotherDir() const
virtual const char*TNamed::GetName() const
Int_tTKey::GetNbytes() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
Int_tTKey::GetObjlen() const
virtual Option_t*TObject::GetOption() const
virtual Long64_tGetSeekKey() const
virtual Long64_tGetSeekPdir() const
virtual const char*TKey::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Int_tTKey::GetVersion() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTKey::Hash() const
virtual voidTKey::IncrementPidOffset(UShort_t offset)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTKey::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tIsSubdir() const
Bool_tTObject::IsZombie() const
virtual voidKeep()
XMLNodePointer_tKeyNode() const
virtual voidTKey::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTKey::Print(Option_t* option = "") const
virtual Int_tRead(TObject* tobj)
virtual voidReadBuffer(char*&)
virtual voidReadFile()
voidTKey::ReadKeyBuffer(char*& buffer)
virtual TObject*ReadObj()
virtual void*ReadObjectAny(const TClass* expectedClass)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetBuffer()
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
voidTKey::SetMotherDir(TDirectory* dir)
virtual voidTNamed::SetName(const char* name)
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTKey::SetParent(const TObject* parent)
virtual voidTNamed::SetTitle(const char* title = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTKey::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
voidUpdateObject(TObject* obj)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
virtual Int_tWriteFile(Int_t = 1, TFile* = 0)
voidTKey::Build(TDirectory* motherDir, const char* classname, Long64_t filepos)
virtual voidTKey::Create(Int_t nbytes, TFile* f = 0)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TKey&TKey::operator=(const TKey&)
virtual Int_tRead(const char* name)
voidStoreObject(const void* obj, const TClass* cl)
void*XmlReadAny(void* obj, const TClass* expectedClass)

Data Members

enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
XMLNodePointer_tfKeyNode! node with stored object
Long64_tfKeyId! unique identifier of key for search methods
Bool_tfSubdir! indicates that key contains subdirectory
Int_tTKey::fVersionKey version identifier
Int_tTKey::fNbytesNumber of bytes for the object on file
Int_tTKey::fObjlenLength of uncompressed object in bytes
TDatimeTKey::fDatimeDate/Time of insertion in file
Short_tTKey::fKeylenNumber of bytes for the key itself
Short_tTKey::fCycleCycle number
Long64_tTKey::fSeekKeyLocation of object on file
Long64_tTKey::fSeekPdirLocation of parent directory on file
TStringTKey::fClassNameObject Class name
Int_tTKey::fLeftNumber of bytes left in current segment
char*TKey::fBufferObject buffer
TBuffer*TKey::fBufferRefPointer to the TBuffer object
UShort_tTKey::fPidOffset! Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of fSeekPdir
TDirectory*TKey::fMotherDir! pointer to mother directory
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

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.
 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 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 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 
void DeleteBuffer()
void FillBuffer(char *&)
char * GetBuffer()
{ return 0; }
Long64_t GetSeekKey()
{ return fKeyNode ? 1024 : 0;}
Long64_t GetSeekPdir()
virtual ULong_t   Hash() const { return 0; }
{ return fKeyNode ? 1024 : 0;}
void Keep()
virtual void      ls(Option_t* ="") const;
virtual void      Print(Option_t* ="") const {}
Int_t Read(TObject* tobj)
void ReadBuffer(char *&)
void ReadFile()
void SetBuffer()
{ fBuffer = 0; }
Int_t WriteFile(Int_t =1, TFile* = 0)
{ return 0; }
XMLNodePointer_t KeyNode()
{ return fKeyNode; }
Long64_t GetKeyId()
{ return fKeyId; }
Bool_t IsSubdir()
{ return fSubdir; }
void SetSubir()
{ fSubdir = kTRUE; }

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.