15 #ifndef ROOT_TXMLEngine 21 #ifndef ROOT_TXMLSetup 59 TXMLFile(
const char* filename,
Option_t* option =
"read",
const char* title =
"title",
Int_t compression = 1);
115 const char*
type =
"text/css",
116 const char* title = 0,
118 const char* media = 0,
119 const char* charset = 0);
void ReadStreamerElement(XMLNodePointer_t node, TStreamerInfo *info)
read and reconstruct single TStreamerElement from xml node
Describe Streamer information for one class version.
virtual Int_t ReOpen(Option_t *mode)
Reopen a file with a different access mode, like from READ to See TFile::Open() for details...
virtual Int_t SysRead(Int_t, void *, Int_t)
Interface to system read. All arguments like in POSIX read().
virtual ~TXMLFile()
destructor of TXMLFile object
TKeyXML * FindDirKey(TDirectory *dir)
Serach for key which correspond to direcory dir.
virtual Long64_t GetSeekFree() const
virtual void Seek(Long64_t, ERelativeTo=kBeg)
Seek to a specific position in the file. Pos it either kBeg, kCur or kEnd.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void SetXmlLayout(EXMLLayout layout)
Change layout of objects in xml file Can be changed only for newly created file.
virtual Bool_t IsOpen() const
return kTRUE if file is opened and can be accessed
virtual void DirWriteKeys(TDirectory *)
Update key attributes.
virtual void MakeProject(const char *, const char *="*", Option_t *="new")
Generate source code necessary to access the objects stored in the file.
virtual void Close(Option_t *option="")
Close a XML file For more comments see TFile::Close() function.
virtual TKey * CreateKey(TDirectory *mother, const TObject *obj, const char *name, Int_t bufsize)
create XML key, which will store object in xml structures
Int_t fIOVersion
object for interface with xml library
Int_t GetIOVersion() const
TXMLEngine * fXML
pointer of node with streamer info data
virtual void ReadFree()
Read the FREE linked list.
virtual void ResetErrno() const
Method resetting the errno. Is overridden in TRFIOFile.
virtual void Flush()
Synchronize a file's in-memory and on-disk states.
virtual void SetEND(Long64_t)
void StoreStreamerElement(XMLNodePointer_t node, TStreamerElement *elem)
store data of single TStreamerElement in streamer node
virtual Bool_t WriteBuffer(const char *, Int_t)
Write a buffer to the file.
virtual void SetUseNamespaces(Bool_t iUseNamespaces=kTRUE)
Specifiy usage of namespaces in xml file In current implementation every instrumented class in file g...
XMLNodePointer_t fStreamerInfoNode
#define ClassDef(name, id)
virtual void FillBuffer(char *&)
Encode file output buffer.
virtual Int_t SysOpen(const char *, Int_t, UInt_t)
Interface to system open. All arguments like in POSIX open().
virtual Int_t SysClose(Int_t)
Interface to system close. All arguments like in POSIX close().
void operator=(const TXMLFile &)
make private to exclude copy operator
virtual Bool_t ReadBuffer(char *, Int_t)
Read a buffer from the file.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual Int_t GetNbytesFree() const
Long64_t fKeyCounter
indicates format of ROOT xml file
void InitXmlFile(Bool_t create)
initialize xml file and correspondent structures identical to TFile::Init() function ...
void SaveToFile()
Saves xml structures to file xml elements are kept in list of TKeyXML objects When saving...
virtual Long64_t GetSeekInfo() const
virtual Int_t SysSync(Int_t)
Interface to system fsync. All arguments like in POSIX fsync().
virtual void WriteHeader()
Write File Header.
void CombineNodesTree(TDirectory *dir, XMLNodePointer_t topnode, Bool_t dolink)
Connect/disconnect all file nodes to single tree before/after saving.
virtual Int_t Write(const char *=0, Int_t=0, Int_t=0)
Write memory objects to this file.
virtual Int_t GetErrno() const
Method returning errno. Is overriden in TRFIOFile.
virtual void SetStoreStreamerInfos(Bool_t iConvert=kTRUE)
If true, all correspondent to file TStreamerInfo objects will be stored in file this allows to apply ...
Int_t ReadKeysList(TDirectory *dir, XMLNodePointer_t topnode)
Read list of keys for directory.
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...
virtual Int_t Sizeof() const
Return the size in bytes of the file header.
The ROOT global object gROOT contains a list of all defined classes.
virtual void SetUsedDtd(Bool_t use=kTRUE)
Specify usage of DTD for this file.
virtual Bool_t ReadBuffer(char *, Long64_t, Int_t)
Read a buffer from the file at the offset 'pos' in the file.
static void ProduceFileNames(const char *filename, TString &fname, TString &dtdname)
function produces pair of xml and dtd file names
virtual Int_t GetNbytesInfo() const
virtual void DrawMap(const char *="*", Option_t *="")
Draw map of objects in this file.
Describe directory structure in memory.
virtual void Paint(Option_t *="")
Paint all objects in the file.
virtual Int_t Recover()
Attempt to recover file if not correctly closed.
virtual TList * GetStreamerInfoList()
Read streamerinfo structures from xml format and provide them in the list It is user responsibility t...
virtual Int_t SysStat(Int_t, Long_t *, Long64_t *, Long_t *, Long_t *)
Return file stat information.
virtual void Map()
List the contents of a file sequentially.
Mother of all ROOT objects.
virtual void WriteFree()
Write FREE linked list on the file.
virtual void Print(Option_t *="") const
Print all objects in the file.
Bool_t ReadFromFile()
read document from file Now full content of docuument reads into the memory Then document decomposed ...
Bool_t AddXmlStyleSheet(const char *href, const char *type="text/css", const char *title=0, int alternate=-1, const char *media=0, const char *charset=0)
Adds style sheet definition on the top of xml document Creates <?xml-stylesheet alternate="yes" title...
virtual void MakeFree(Long64_t, Long64_t)
Mark unused bytes on the file.
virtual Long64_t DirCreateEntry(TDirectory *)
Create key for directory entry in the key.
TXMLFile()
default TXMLFile constructor
virtual Int_t Write(const char *=0, Int_t=0, Int_t=0) const
One can not save a const TDirectory object.
virtual Long64_t SysSeek(Int_t, Long64_t, Int_t)
Interface to system lseek.
virtual Int_t DirReadKeys(TDirectory *)
Read keys for directory Make sence only once, while next time no new subnodes will be created...
virtual Long64_t GetSize() const
Returns the current file size.
TDirectory * FindKeyDir(TDirectory *mother, Long64_t keyid)
Find a directory in motherdir with a seek equal to keyid.
virtual void DirWriteHeader(TDirectory *)
Write the directory header.
virtual Int_t GetNfree() const
virtual Long64_t GetEND() const
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...
virtual Int_t SysWrite(Int_t, const void *, Int_t)
Interface to system write. All arguments like in POSIX write().
virtual void WriteStreamerInfo()
convert all TStreamerInfo, used in file, to xml format