152 if (
f->GetIOVersion() > 1) {
172 if (obj && check_tobj) {
185 if (
f->GetIOVersion() == 1)
261 if (
gROOT->GetForceStyle())
288 if (
gROOT->GetForceStyle())
311 void *res =
XmlReadAny(
nullptr, expectedClass);
343 if (
f->GetIOVersion() == 1)
358 void *res = buffer.
XmlReadAny(objnode, obj, &cl);
374 Warning(
"XmlReadAny",
"Trying to read an emulated class (%s) to store in a compiled pointer (%s)",
379 return ((
char *)res) + delta;
388 return f ?
f->XML() :
nullptr;
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
long long Long64_t
Portable signed long integer 8 bytes.
const char Option_t
Option string (const char).
void InitMap() override
Create the fMap container and initialize them with the null object.
Class for serializing/deserializing object to/from xml.
XMLNodePointer_t XmlWriteAny(const void *obj, const TClass *cl)
Convert object of any class to xml structures Return pointer on top xml element.
void * XmlReadAny(XMLNodePointer_t node, void *obj, TClass **cl)
Recreate object from xml structure.
@ kCannotHandleMemberWiseStreaming
TClass instances represent classes, structs and namespaces in the ROOT type system.
void Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
Int_t GetBaseClassOffset(const TClass *toBase, void *address=nullptr, bool isDerivedObject=true)
TClass * GetActualClass(const void *object) const
Return a pointer to the real class of the object.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Int_t ReadKeys(Bool_t forceRead=kTRUE) override
void SetSeekDir(Long64_t v) override
Describe directory structure in memory.
virtual Int_t AppendKey(TKey *)
void SetName(const char *newname) override
Set the name for directory If the directory name is changed after the directory was written once,...
virtual void SetMother(TObject *mother)
void UpdateObject(TObject *obj)
updates object, stored in the node Used for TDirectory data update
~TKeyXML() override
TKeyXML destructor.
void Delete(Option_t *option="") final
Delete key from current directory Note: TKeyXML object is not deleted.
Long64_t GetKeyId() const
XMLNodePointer_t fKeyNode
! node with stored object
Int_t Read(TObject *tobj) final
To read an object from the file.
TXMLEngine * XMLEngine()
return pointer on TXMLEngine object, used for xml conversion
TObject * ReadObjWithBuffer(char *bufferRead) final
read object derived from TObject class, from key if it is not TObject or in case of error,...
void * XmlReadAny(void *obj, const TClass *expectedClass)
read object from key and cast to expected class
void * ReadObjectAny(const TClass *expectedClass) final
read object of any type
void StoreObject(const void *obj, const TClass *cl, Bool_t check_tobj=kFALSE)
convert object to xml structure and keep this structure in key
void UpdateAttributes()
update key attributes in key node
void StoreKeyAttributes()
Stores keys attributes in key node.
Long64_t fKeyId
! unique identifier of key for search methods
TObject * ReadObj() final
read object derived from TObject class, from key if it is not TObject or in case of error,...
Bool_t fSubdir
! indicates that key contains subdirectory
const char * GetTitle() const override
Returns title (title can contain 32x32 xpm thumbnail/icon).
TFile * GetFile() const
Returns file to which key belong.
TDatime fDatime
Date/Time of insertion in file.
TKey(const TKey &)=delete
Short_t fCycle
Cycle number.
TDirectory * GetMotherDir() const
TDirectory * fMotherDir
!pointer to mother directory
TString fClassName
Object Class name.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetName() const
Returns name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void UseCurrentStyle()
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyl...
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual TClass * IsA() const
TObject()
TObject constructor.
XMLNodePointer_t NewChild(XMLNodePointer_t parent, XMLNsPointer_t ns, const char *name, const char *content=nullptr)
create new child element for parent node
XMLNodePointer_t GetChild(XMLNodePointer_t xmlnode, Bool_t realnode=kTRUE)
returns first child of xmlnode
XMLAttrPointer_t NewAttr(XMLNodePointer_t xmlnode, XMLNsPointer_t, const char *name, const char *value)
creates new attribute for xmlnode, namespaces are not supported for attributes
void UnlinkNode(XMLNodePointer_t node)
unlink (detach) xmlnode from parent
XMLAttrPointer_t NewIntAttr(XMLNodePointer_t xmlnode, const char *name, Int_t value)
create node attribute with integer value
Bool_t HasAttr(XMLNodePointer_t xmlnode, const char *name)
checks if node has attribute of specified name
const char * GetNodeName(XMLNodePointer_t xmlnode)
returns name of xmlnode
const char * GetAttr(XMLNodePointer_t xmlnode, const char *name)
returns value of attribute for xmlnode
Int_t GetIntAttr(XMLNodePointer_t node, const char *name)
returns value of attribute as integer
void FreeAllAttr(XMLNodePointer_t xmlnode)
Free all attributes of the node.
void FreeNode(XMLNodePointer_t xmlnode)
release all memory, allocated from this node and destroys node itself
void SkipEmpty(XMLNodePointer_t &xmlnode)
Skip all current empty nodes and locate on first "true" node.
void ShiftToNext(XMLNodePointer_t &xmlnode, Bool_t realnode=kTRUE)
shifts specified node to next if realnode==kTRUE, any special nodes in between will be skipped
void AddChildFirst(XMLNodePointer_t parent, XMLNodePointer_t child)
add node as first child