51 const char *
Ptr =
"ptr";
52 const char *
Ref =
"ref";
60 const char *
Zip =
"zip";
74 const char *
cnt =
"cnt";
77 const char *
SInfos =
"StreamerInfos";
80 const char *
Bool =
"Bool_t";
81 const char *
Char =
"Char_t";
83 const char *
Int =
"Int_t";
84 const char *
Long =
"Long_t";
90 const char *
UInt =
"UInt_t";
112 fgNameSpaceBase = namespacebase;
119 : fXmlLayout(kSpecialized), fStoreStreamerInfos(
kTRUE), fUseDtd(
kFALSE), fUseNamespaces(
kFALSE), fRefCounter(0)
153 char setupstr[10] =
"2xxx";
157 setupstr[2] =
fUseDtd ?
'x' :
'o';
168 if ((setupstr == 0) || (strlen(setupstr) != 4))
172 if ((str[0] < 48) || (str[0] > 53))
174 for (
int n = 1;
n < 4;
n++)
175 if ((str[
n] !=
'o') && (str[
n] !=
'x'))
185 if ((setupstr == 0) || (strlen(setupstr) < 4))
204 std::cout <<
" *** Setup printout ***" << std::endl;
205 std::cout <<
"Attribute mode = " <<
fXmlLayout << std::endl;
206 std::cout <<
"Store streamer infos = " << (
fStoreStreamerInfos ?
"true" :
"false") << std::endl;
207 std::cout <<
"Use dtd = " << (
fUseDtd ?
"true" :
"false") << std::endl;
208 std::cout <<
"Use name spaces = " << (
fUseNamespaces ?
"true" :
"false") << std::endl;
235 return fStrBuf.
Data();
270 if (strchr(xmlClassName,
'_') == 0)
275 while ((cl = (
TClass *)iter()) != 0) {
277 if (strcmp(xmlClassName, name) == 0)
292 std::cerr <<
"<Error in TXMLSetup::AtoI>" << errinfo <<
" not valid integer: sbuf <NULL>" << std::endl;
virtual const char * GetName() const
Returns name of object.
static void SetNameSpaceBase(const char *namespacebase)
set namespace base
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
void PrintSetup()
show setup values
static TString DefaultXmlSetup()
return default value for XML setup
void ToLower()
Change string to lower-case.
TXMLSetup()
default constructor of TXMLSetup class
Int_t AtoI(const char *sbuf, Int_t def=0, const char *errinfo=0)
converts string to integer.
const char * GetElItemName(TStreamerElement *el)
get item name for given element
TString fStrBuf
counter , used to build id of xml references
const char * XmlGetElementName(const TStreamerElement *el)
return converted name for TStreamerElement
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
The ROOT global object gROOT contains a list of all defined classes.
Bool_t fStoreStreamerInfos
virtual ~TXMLSetup()
TXMLSetup class destructor.
const char * XmlConvertClassName(const char *name)
convert class name to exclude any special symbols like ':', '<' '>' ',' and spaces ...
const char * XmlClassNameSpaceRef(const TClass *cl)
produce string which used as reference in class namespace definition
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
TString GetSetupAsString()
return setup values as string
static TString fgNameSpaceBase
buffer, used in XmlDefineClass() function
Bool_t ReadSetupFromStr(const char *setupstr)
get values from string
TClass * XmlDefineClass(const char *xmlClassName)
define class for the converted class name, where special symbols were replaced by '_' ...
const char * ClassVersion
Bool_t IsValidXmlSetup(const char *setupstr)
checks if string is valid setup
const char * Data() const