109 const
char *media =
nullptr, const
char *charset =
nullptr);
134 std::unique_ptr<TXMLEngine>
fXML;
#define ClassDefOverride(name, id)
TClass instances represent classes, structs and namespaces in the ROOT type system.
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Mother of all ROOT objects.
Describes a persistent version of a class.
Int_t SysOpen(const char *, Int_t, UInt_t) final
Interface to system open. All arguments like in POSIX open().
Int_t SysSync(Int_t) final
Interface to system fsync. All arguments like in POSIX fsync().
void Paint(Option_t *="") final
Paint all objects in the file.
Bool_t IsOpen() const final
return kTRUE if file is opened and can be accessed
Int_t Sizeof() const final
Return the size in bytes of the file header.
void DrawMap(const char *="*", Option_t *="") final
Draw map of objects in this file.
Int_t fIOVersion
object for interface with xml library
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 ReadFree() final
Read the FREE linked list.
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
Interface to system read. All arguments like in POSIX read().
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
Interface to system close. All arguments like in POSIX close().
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 memory objects to this file.
XMLNodePointer_t fStreamerInfoNode
Long64_t fKeyCounter
indicates format of ROOT xml file
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
List the contents of a file sequentially.
Bool_t ReadBuffer(char *, Int_t) final
Read a buffer from the file.
void DirWriteHeader(TDirectory *) final
Write the directory header.
void FillBuffer(char *&) final
Encode file 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
Returns the current file size.
void WriteHeader() final
Write File Header.
void DirWriteKeys(TDirectory *) final
Update key attributes.
TXMLFile(const TXMLFile &)=delete
Int_t Recover() final
Attempt to recover file if not correctly closed.
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 WriteFree() final
Write FREE linked list on the file.
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
Write a buffer to the file.
void ResetErrno() const final
Method resetting the errno.
Int_t SysStat(Int_t, Long_t *, Long64_t *, Long_t *, Long_t *) final
Return file stat information.
Int_t Write(const char *=nullptr, Int_t=0, Int_t=0) const final
One can not save a const TDirectory object.
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
Interface to system lseek.
Int_t GetIOVersion() const
void SetUsedDtd(Bool_t use=kTRUE) final
Specify usage of DTD for this file.
virtual ~TXMLFile()
destructor of TXMLFile object
void StoreStreamerElement(XMLNodePointer_t node, TStreamerElement *elem)
store data of single TStreamerElement in streamer node
Int_t GetErrno() const final
Method returning errno.
void Print(Option_t *="") const final
Print all objects in the file.
void MakeFree(Long64_t, Long64_t) final
Mark unused bytes on the file.
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
Read a buffer from the file at the offset 'pos' in the file.
void MakeProject(const char *, const char *="*", Option_t *="new") final
Generate source code necessary to access the objects stored in the file.
Int_t SysWrite(Int_t, const void *, Int_t) final
Interface to system write. All arguments like in POSIX write().
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
pointer of node with streamer info data
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 Flush() final
Synchronize a file's in-memory and on-disk states.
void Seek(Long64_t, ERelativeTo=kBeg) final
Seek to a specific position in the file. Pos it either kBeg, kCur or kEnd.
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.