ROOT  6.06/09
Reference Guide
Macros | Functions
TBufferXML.cxx File Reference
#include "TBufferXML.h"
#include "Compression.h"
#include "TXMLFile.h"
#include "TObjArray.h"
#include "TROOT.h"
#include "TClass.h"
#include "TClassTable.h"
#include "TDataType.h"
#include "TExMap.h"
#include "TMethodCall.h"
#include "TStreamerInfo.h"
#include "TStreamerElement.h"
#include "TProcessID.h"
#include "TFile.h"
#include "TMemberStreamer.h"
#include "TStreamer.h"
#include "TStreamerInfoActions.h"
#include "RZip.h"
+ Include dependency graph for TBufferXML.cxx:

Go to the source code of this file.

Macros

#define FLong64   "%lld"
 
#define FULong64   "%llu"
 
#define TXMLReadArrayNoncompress(vname)
 
#define TXMLReadArrayContent(vname, arrsize)
 
#define TBufferXML_ReadArray(tname, vname)
 
#define TBufferXML_ReadStaticArray(vname)
 
#define TBufferXML_ReadFastArray(vname)
 
#define TXMLWriteArrayNoncompress(vname, arrsize)
 
#define TXMLWriteArrayCompress(vname, arrsize)
 
#define TXMLWriteArrayContent(vname, arrsize)
 
#define TBufferXML_WriteArray(vname)
 
#define TBufferXML_WriteFastArray(vname)
 
#define TBufferXML_operatorin(vname)
 
#define TBufferXML_operatorout(vname)
 

Functions

 ClassImp (TBufferXML)
 

Macro Definition Documentation

#define FLong64   "%lld"

Definition at line 52 of file TBufferXML.cxx.

Referenced by TBufferXML::XmlReadBasic(), and TBufferXML::XmlWriteBasic().

#define FULong64   "%llu"

Definition at line 53 of file TBufferXML.cxx.

Referenced by TBufferXML::XmlReadBasic(), and TBufferXML::XmlWriteBasic().

#define TBufferXML_operatorin (   vname)
#define TBufferXML_operatorout (   vname)
#define TBufferXML_ReadArray (   tname,
  vname 
)
Value:
{ \
BeforeIOoperation(); \
if (!VerifyItemNode(xmlio::Array,"ReadArray")) return 0; \
Int_t n = fXML->GetIntAttr(StackNode(), xmlio::Size); \
if (n<=0) return 0; \
if (!vname) vname = new tname[n]; \
PushStack(StackNode()); \
TXMLReadArrayContent(vname, n); \
PopStack(); \
ShiftStack("readarr"); \
return n; \
}
const char * Size
Definition: TXMLSetup.cxx:56
int Int_t
Definition: RtypesCore.h:41
if(pyself &&pyself!=Py_None)
return
Definition: TBase64.cxx:62
const char * Array
Definition: TXMLSetup.cxx:80
#define TXMLReadArrayContent(vname, arrsize)
const Int_t n
Definition: legend1.C:16

Definition at line 1615 of file TBufferXML.cxx.

Referenced by TBufferXML::ReadArray(), TBufferXML::ReadArrayDouble32(), and TBufferXML::ReadArrayFloat16().

#define TBufferXML_ReadFastArray (   vname)
#define TBufferXML_ReadStaticArray (   vname)
Value:
{ \
BeforeIOoperation(); \
if (!VerifyItemNode(xmlio::Array,"ReadStaticArray")) return 0; \
Int_t n = fXML->GetIntAttr(StackNode(), xmlio::Size); \
if (n<=0) return 0; \
if (!vname) return 0; \
PushStack(StackNode()); \
PopStack(); \
ShiftStack("readstatarr"); \
return n; \
}
const char * Size
Definition: TXMLSetup.cxx:56
int Int_t
Definition: RtypesCore.h:41
if(pyself &&pyself!=Py_None)
return
Definition: TBase64.cxx:62
const char * Array
Definition: TXMLSetup.cxx:80
#define TXMLReadArrayContent(vname, arrsize)
const Int_t n
Definition: legend1.C:16

Definition at line 1830 of file TBufferXML.cxx.

Referenced by TBufferXML::ReadStaticArray(), TBufferXML::ReadStaticArrayDouble32(), and TBufferXML::ReadStaticArrayFloat16().

#define TBufferXML_WriteArray (   vname)
Value:
{ \
BeforeIOoperation(); \
XMLNodePointer_t arrnode = CreateItemNode(xmlio::Array); \
fXML->NewIntAttr(arrnode, xmlio::Size, n); \
PushStack(arrnode); \
PopStack(); \
}
const char * Size
Definition: TXMLSetup.cxx:56
const char * Array
Definition: TXMLSetup.cxx:80
void * XMLNodePointer_t
Definition: TXMLEngine.h:19
const Int_t n
Definition: legend1.C:16
#define TXMLWriteArrayContent(vname, arrsize)

Definition at line 2213 of file TBufferXML.cxx.

Referenced by TBufferXML::WriteArray(), TBufferXML::WriteArrayDouble32(), and TBufferXML::WriteArrayFloat16().

#define TBufferXML_WriteFastArray (   vname)
#define TXMLReadArrayContent (   vname,
  arrsize 
)
Value:
{ \
Int_t indx = 0; \
while(indx<arrsize) { \
Int_t cnt = 1; \
if (fXML->HasAttr(StackNode(), xmlio::cnt)) \
cnt = fXML->GetIntAttr(StackNode(), xmlio::cnt); \
XmlReadBasic(vname[indx]); \
Int_t curr = indx; indx++; \
while(cnt>1) { \
vname[indx] = vname[curr]; \
cnt--; indx++; \
} \
} \
}
int Int_t
Definition: RtypesCore.h:41
if(pyself &&pyself!=Py_None)
while((ob=next()))
const char * cnt
Definition: TXMLSetup.cxx:75

Definition at line 1598 of file TBufferXML.cxx.

#define TXMLReadArrayNoncompress (   vname)
Value:
{ \
for(Int_t indx=0;indx<n;indx++) \
XmlReadBasic(vname[indx]); \
}
for(Int_t i=0;i< n;i++)
Definition: legend1.C:18
int Int_t
Definition: RtypesCore.h:41
const Int_t n
Definition: legend1.C:16

Definition at line 1591 of file TBufferXML.cxx.

#define TXMLWriteArrayCompress (   vname,
  arrsize 
)
Value:
{ \
Int_t indx = 0; \
while(indx<arrsize) { \
XMLNodePointer_t elemnode = XmlWriteBasic(vname[indx]); \
Int_t curr = indx; indx++; \
while ((indx<arrsize) && (vname[indx]==vname[curr])) indx++; \
if (indx-curr > 1) \
fXML->NewIntAttr(elemnode, xmlio::cnt, indx-curr); \
} \
}
int Int_t
Definition: RtypesCore.h:41
if(pyself &&pyself!=Py_None)
void * XMLNodePointer_t
Definition: TXMLEngine.h:19
while((ob=next()))
const char * cnt
Definition: TXMLSetup.cxx:75

Definition at line 2191 of file TBufferXML.cxx.

#define TXMLWriteArrayContent (   vname,
  arrsize 
)
Value:
{ \
if (fCompressLevel>0) { \
TXMLWriteArrayCompress(vname, arrsize) \
} else { \
TXMLWriteArrayNoncompress(vname, arrsize) \
} \
}
#define TXMLWriteArrayCompress(vname, arrsize)
if(pyself &&pyself!=Py_None)
#define TXMLWriteArrayNoncompress(vname, arrsize)

Definition at line 2203 of file TBufferXML.cxx.

#define TXMLWriteArrayNoncompress (   vname,
  arrsize 
)
Value:
{ \
for(Int_t indx=0;indx<arrsize;indx++) \
XmlWriteBasic(vname[indx]); \
}
for(Int_t i=0;i< n;i++)
Definition: legend1.C:18
int Int_t
Definition: RtypesCore.h:41

Definition at line 2184 of file TBufferXML.cxx.

Function Documentation

ClassImp ( TBufferXML  )