Logo ROOT   6.08/07
Reference Guide
Macros
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:

Macros

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

Macro Definition Documentation

◆ FLong64

#define FLong64   "%lld"

Definition at line 52 of file TBufferXML.cxx.

◆ FULong64

#define FULong64   "%llu"

Definition at line 53 of file TBufferXML.cxx.

◆ TBufferXML_operatorin

#define TBufferXML_operatorin (   vname)
Value:
{ \
BeforeIOoperation(); \
XmlReadBasic(vname); \
}

Definition at line 2588 of file TBufferXML.cxx.

◆ TBufferXML_operatorout

#define TBufferXML_operatorout (   vname)
Value:
{ \
BeforeIOoperation(); \
XmlWriteBasic(vname); \
}

Definition at line 2741 of file TBufferXML.cxx.

◆ TBufferXML_ReadArray

#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
const char * Array
Definition: TXMLSetup.cxx:80
#define TXMLReadArrayContent(vname, arrsize)
return
Definition: HLFactory.cxx:514
const Int_t n
Definition: legend1.C:16
if(line.BeginsWith("/*"))
Definition: HLFactory.cxx:443

Definition at line 1629 of file TBufferXML.cxx.

◆ TBufferXML_ReadFastArray

#define TBufferXML_ReadFastArray (   vname)

Definition at line 1981 of file TBufferXML.cxx.

◆ TBufferXML_ReadStaticArray

#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
const char * Array
Definition: TXMLSetup.cxx:80
#define TXMLReadArrayContent(vname, arrsize)
return
Definition: HLFactory.cxx:514
const Int_t n
Definition: legend1.C:16
if(line.BeginsWith("/*"))
Definition: HLFactory.cxx:443

Definition at line 1844 of file TBufferXML.cxx.

◆ TBufferXML_WriteArray

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

Definition at line 2227 of file TBufferXML.cxx.

◆ TBufferXML_WriteFastArray

#define TBufferXML_WriteFastArray (   vname)

Definition at line 2360 of file TBufferXML.cxx.

◆ TXMLReadArrayContent

#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++; \
} \
} \
}
const char * cnt
Definition: TXMLSetup.cxx:75

Definition at line 1612 of file TBufferXML.cxx.

◆ TXMLReadArrayNoncompress

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

Definition at line 1605 of file TBufferXML.cxx.

◆ TXMLWriteArrayCompress

#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); \
} \
}
const char * cnt
Definition: TXMLSetup.cxx:75

Definition at line 2205 of file TBufferXML.cxx.

◆ TXMLWriteArrayContent

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

Definition at line 2217 of file TBufferXML.cxx.

◆ TXMLWriteArrayNoncompress

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

Definition at line 2198 of file TBufferXML.cxx.