110 const char *media = 0,
const char *charset = 0);
#define ClassDef(name, id)
The ROOT global object gROOT contains a list of all defined classes.
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.
Describe Streamer information for one class version.
virtual void DirWriteKeys(TDirectory *)
Update key attributes.
virtual Int_t SysWrite(Int_t, const void *, Int_t)
Interface to system write. All arguments like in POSIX write().
virtual void FillBuffer(char *&)
Encode file output buffer.
virtual Bool_t ReadBuffer(char *, Int_t)
Read a buffer from the file.
Int_t fIOVersion
object for interface with xml library
virtual void WriteStreamerInfo()
convert all TStreamerInfo, used in file, to xml format
TXMLFile()
default TXMLFile constructor
TDirectory * FindKeyDir(TDirectory *mother, Long64_t keyid)
Find a directory in motherdir with a seek equal to keyid.
InfoListRet GetStreamerInfoListImpl(bool lookupSICache)
Read streamerinfo structures from xml format and provide them in the list It is user responsibility t...
virtual Bool_t IsOpen() const
return kTRUE if file is opened and can be accessed
virtual void Seek(Long64_t, ERelativeTo=kBeg)
Seek to a specific position in the file. Pos it either kBeg, kCur or kEnd.
void InitXmlFile(Bool_t create)
initialize xml file and correspondent structures identical to TFile::Init() function
virtual Int_t Sizeof() const
Return the size in bytes of the file header.
virtual Int_t GetErrno() const
Method returning errno. Is overriden in TRFIOFile.
virtual TKey * CreateKey(TDirectory *mother, const TObject *obj, const char *name, Int_t bufsize)
create XML key, which will store object in xml structures
virtual void WriteFree()
Write FREE linked list on the file.
void SaveToFile()
Saves xml structures to the file xml elements are kept in list of TKeyXML objects When saving,...
virtual Int_t GetNbytesFree() const
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...
XMLNodePointer_t fStreamerInfoNode
virtual void Close(Option_t *option="")
Close a XML file For more comments see TFile::Close() function.
virtual Int_t Write(const char *=0, Int_t=0, Int_t=0)
Write memory objects to this file.
Long64_t fKeyCounter
indicates format of ROOT xml file
virtual void DrawMap(const char *="*", Option_t *="")
Draw map of objects in this file.
virtual Int_t SysOpen(const char *, Int_t, UInt_t)
Interface to system open. All arguments like in POSIX open().
void CombineNodesTree(TDirectory *dir, XMLNodePointer_t topnode, Bool_t dolink)
Connect/disconnect all file nodes to single tree before/after saving.
virtual void ResetErrno() const
Method resetting the errno. Is overridden in TRFIOFile.
virtual void MakeProject(const char *, const char *="*", Option_t *="new")
Generate source code necessary to access the objects stored in the file.
virtual void SetUseNamespaces(Bool_t iUseNamespaces=kTRUE)
Specify usage of namespaces in xml file In current implementation every instrumented class in file ge...
virtual void MakeFree(Long64_t, Long64_t)
Mark unused bytes on the file.
virtual Bool_t ReadBuffer(char *, Long64_t, Int_t)
Read a buffer from the file at the offset 'pos' in the file.
virtual Long64_t DirCreateEntry(TDirectory *)
Create key for directory entry in the key.
virtual Int_t DirReadKeys(TDirectory *)
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...
virtual void DirWriteHeader(TDirectory *)
Write the directory header.
virtual Int_t SysSync(Int_t)
Interface to system fsync. All arguments like in POSIX fsync().
Int_t ReadKeysList(TDirectory *dir, XMLNodePointer_t topnode)
Read list of keys for directory.
virtual Int_t GetNbytesInfo() const
virtual void Map(Option_t *)
List the contents of a file sequentially.
virtual Int_t SysRead(Int_t, void *, Int_t)
Interface to system read. All arguments like in POSIX read().
void operator=(const TXMLFile &)
make private to exclude copy operator
virtual void SetStoreStreamerInfos(Bool_t iConvert=kTRUE)
If true, all correspondent to file TStreamerInfo objects will be stored in file this allows to apply ...
virtual Int_t Write(const char *=0, Int_t=0, Int_t=0) const
One can not save a const TDirectory object.
virtual Bool_t WriteBuffer(const char *, Int_t)
Write a buffer to the file.
virtual void SetUsedDtd(Bool_t use=kTRUE)
Specify usage of DTD for this file.
virtual Long64_t GetSeekFree() const
virtual Int_t Recover()
Attempt to recover file if not correctly closed.
virtual Long64_t GetSize() const
Returns the current file size.
Int_t GetIOVersion() const
virtual ~TXMLFile()
destructor of TXMLFile object
virtual void WriteHeader()
Write File Header.
virtual void Paint(Option_t *="")
Paint all objects in the file.
virtual Int_t SysClose(Int_t)
Interface to system close. All arguments like in POSIX close().
void StoreStreamerElement(XMLNodePointer_t node, TStreamerElement *elem)
store data of single TStreamerElement in streamer node
virtual void Print(Option_t *="") const
Print all objects in the file.
virtual Int_t GetNfree() const
void ReadStreamerElement(XMLNodePointer_t node, TStreamerInfo *info)
read and reconstruct single TStreamerElement from xml node
virtual Int_t ReOpen(Option_t *mode)
Reopen a file with a different access mode, like from READ to See TFile::Open() for details.
Bool_t ReadFromFile()
read document from file Now full content of document reads into the memory Then document decomposed t...
virtual void Flush()
Synchronize a file's in-memory and on-disk states.
TXMLEngine * fXML
pointer of node with streamer info data
virtual Long64_t GetSeekInfo() const
virtual Long64_t SysSeek(Int_t, Long64_t, Int_t)
Interface to system lseek.
virtual void SetXmlLayout(EXMLLayout layout)
Change layout of objects in xml file Can be changed only for newly created file.
virtual Long64_t GetEND() const
virtual void ReadFree()
Read the FREE linked list.
virtual void SetEND(Long64_t)
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...
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
virtual Int_t SysStat(Int_t, Long_t *, Long64_t *, Long_t *, Long_t *)
Return file stat information.
@ kUseGeneralPurpose
Use the recommended general-purpose setting; moderate read / write speed and compression ratio.