109 const
char *media =
nullptr, const
char *charset =
nullptr);
134 std::unique_ptr<TXMLEngine>
fXML;
bool Bool_t
Boolean (0=false, 1=true) (bool).
int Int_t
Signed integer 4 bytes (int).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long long Long64_t
Portable signed long integer 8 bytes.
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
TClass instances represent classes, structs and namespaces in the ROOT type system.
Describe directory structure in memory.
TFile(const TFile &)=delete
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Mother of all ROOT objects.
Describe one element (data member) to be Streamed.
Describes a persistent version of a class.
Int_t SysOpen(const char *, Int_t, UInt_t) final
Int_t SysSync(Int_t) final
void Paint(Option_t *="") final
Paint all objects in the directory.
~TXMLFile() override
destructor of TXMLFile object
Bool_t IsOpen() const final
return kTRUE if file is opened and can be accessed
Int_t Sizeof() const final
Return size of the TNamed part of the TObject.
void DrawMap(const char *="*", Option_t *="") final
Int_t fIOVersion
! indicates format of ROOT xml file
TDirectory * FindKeyDir(TDirectory *mother, Long64_t keyid)
Find a directory in motherdir with a seek equal to keyid.
TKey * CreateKey(TDirectory *mother, const TObject *obj, const char *name, Int_t bufsize) final
create XML key, which will store object in xml structures
void InitXmlFile(Bool_t create)
initialize xml file and correspondent structures identical to TFile::Init() function
Int_t SysRead(Int_t, void *, Int_t) final
Bool_t AddXmlStyleSheet(const char *href, const char *type="text/css", const char *title=nullptr, int alternate=-1, const char *media=nullptr, const char *charset=nullptr)
Adds style sheet definition on the top of xml document Creates <?xml-stylesheet alternate="yes" title...
InfoListRet GetStreamerInfoListImpl(bool lookupSICache) final
Read streamerinfo structures from xml format and provide them in the list It is user responsibility t...
Int_t GetNfree() const final
Long64_t GetEND() const final
Int_t SysClose(Int_t) final
void SaveToFile()
Saves xml structures to the file xml elements are kept in list of TKeyXML objects When saving,...
Int_t Write(const char *=nullptr, Int_t=0, Int_t=0) final
Write this object to the current directory.
XMLNodePointer_t fStreamerInfoNode
! pointer of node with streamer info data
Long64_t fKeyCounter
! counter of created keys, used for keys id
void CombineNodesTree(TDirectory *dir, XMLNodePointer_t topnode, Bool_t dolink)
Connect/disconnect all file nodes to single tree before/after saving.
void Map(Option_t *) final
Bool_t ReadBuffer(char *, Int_t) final
void DirWriteHeader(TDirectory *) final
Write the directory header.
void FillBuffer(char *&) final
Encode TNamed into output buffer.
Int_t DirReadKeys(TDirectory *) final
Read keys for directory Make sense only once, while next time no new subnodes will be created.
Bool_t AddXmlLine(const char *line)
Add just one line on the top of xml document For instance, line can contain special xml processing in...
Long64_t GetSize() const final
void DirWriteKeys(TDirectory *) final
Update key attributes.
TXMLFile(const TXMLFile &)=delete
void WriteStreamerInfo() final
convert all TStreamerInfo, used in file, to xml format
Int_t ReadKeysList(TDirectory *dir, XMLNodePointer_t topnode)
Read list of keys for directory.
void SetEND(Long64_t) final
void SetXmlLayout(EXMLLayout layout) final
Change layout of objects in xml file Can be changed only for newly created file.
Bool_t WriteBuffer(const char *, Int_t) final
void ResetErrno() const final
Int_t SysStat(Int_t, Long_t *, Long64_t *, Long_t *, Long_t *) final
Int_t Write(const char *=nullptr, Int_t=0, Int_t=0) const final
Write this object to the current directory.
void operator=(const TXMLFile &)=delete
Long64_t GetSeekInfo() const final
void SetStoreStreamerInfos(Bool_t iConvert=kTRUE) final
If true, all correspondent to file TStreamerInfo objects will be stored in file this allows to apply ...
void SetUseNamespaces(Bool_t iUseNamespaces=kTRUE) final
Specify usage of namespaces in xml file In current implementation every instrumented class in file ge...
Long64_t SysSeek(Int_t, Long64_t, Int_t) final
Int_t GetIOVersion() const
void SetUsedDtd(Bool_t use=kTRUE) final
Specify usage of DTD for this file.
void StoreStreamerElement(XMLNodePointer_t node, TStreamerElement *elem)
store data of single TStreamerElement in streamer node
Int_t GetErrno() const final
void Print(Option_t *="") const final
Print all objects in the directory.
void MakeFree(Long64_t, Long64_t) final
Int_t GetNbytesFree() const final
Long64_t GetSeekFree() const final
void ReadStreamerElement(XMLNodePointer_t node, TStreamerInfo *info)
read and reconstruct single TStreamerElement from xml node
Bool_t ReadBuffer(char *, Long64_t, Int_t) final
void MakeProject(const char *, const char *="*", Option_t *="new") final
Int_t SysWrite(Int_t, const void *, Int_t) final
Int_t ReOpen(Option_t *mode) final
Reopen a file with a different access mode, like from READ to See TFile::Open() for details.
std::unique_ptr< TXMLEngine > fXML
! object for interface with xml library
void Close(Option_t *option="") final
Close a XML file For more comments see TFile::Close() function.
Bool_t ReadFromFile()
read document from file Now full content of document reads into the memory Then document decomposed t...
void Seek(Long64_t, ERelativeTo=kBeg) final
Bool_t AddXmlComment(const char *comment)
Add comment line on the top of the xml document This line can only be seen in xml editor and cannot b...
Long64_t DirCreateEntry(TDirectory *) final
Create key for directory entry in the key.
TKeyXML * FindDirKey(TDirectory *dir)
Search for key which correspond to directory dir.
static void ProduceFileNames(const char *filename, TString &fname, TString &dtdname)
function produces pair of xml and dtd file names
Int_t GetNbytesInfo() const final
@ kUseCompiledDefault
Use the compile-time default setting.