Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TXMLSetup Class Reference

Definition at line 82 of file TXMLSetup.h.

Public Types

enum  EXMLLayout { kSpecialized = 2 , kGeneralized = 3 }
 

Public Member Functions

 TXMLSetup ()=default
 
 TXMLSetup (const char *opt)
 creates TXMLSetup object getting values from string
 
 TXMLSetup (const TXMLSetup &src)
 copy constructor of TXMLSetup class
 
virtual ~TXMLSetup ()=default
 
Int_t GetNextRefCounter ()
 
TString GetSetupAsString ()
 return setup values as string
 
EXMLLayout GetXmlLayout () const
 
Bool_t IsStoreStreamerInfos () const
 
Bool_t IsUseDtd () const
 
Bool_t IsUseNamespaces () const
 
TXMLSetupoperator= (const TXMLSetup &rhs)
 assign operator
 
void PrintSetup ()
 show setup values
 
virtual void SetStoreStreamerInfos (Bool_t iConvert=kTRUE)
 
virtual void SetUsedDtd (Bool_t use=kTRUE)
 
virtual void SetUseNamespaces (Bool_t iUseNamespaces=kTRUE)
 
virtual void SetXmlLayout (EXMLLayout layout)
 
const char * XmlClassNameSpaceRef (const TClass *cl)
 produce string which used as reference in class namespace definition
 
const char * XmlConvertClassName (const char *name)
 convert class name to exclude any special symbols like ':', '<' '>' ',' and spaces
 
const char * XmlGetElementName (const TStreamerElement *el)
 return converted name for TStreamerElement
 

Static Public Member Functions

static TString DefaultXmlSetup ()
 return default value for XML setup
 
static void SetNameSpaceBase (const char *namespacebase)
 set namespace base
 

Protected Member Functions

Int_t AtoI (const char *sbuf, Int_t def=0, const char *errinfo=nullptr)
 converts string to integer.
 
const char * GetElItemName (TStreamerElement *el)
 get item name for given element
 
Bool_t IsValidXmlSetup (const char *setupstr)
 checks if string is valid setup
 
Bool_t ReadSetupFromStr (const char *setupstr)
 get values from string
 
TClassXmlDefineClass (const char *xmlClassName)
 define class for the converted class name, where special symbols were replaced by '_'
 

Protected Attributes

Int_t fRefCounter {0}
 
Bool_t fStoreStreamerInfos {kTRUE}
 
TString fStrBuf
 counter , used to build id of xml references
 
Bool_t fUseDtd {kFALSE}
 
Bool_t fUseNamespaces {kFALSE}
 
EXMLLayout fXmlLayout {kSpecialized}
 

Static Protected Attributes

static TString fgNameSpaceBase = "http://root.cern.ch/root/htmldoc/"
 buffer, used in XmlDefineClass() function
 

#include <TXMLSetup.h>

Inheritance diagram for TXMLSetup:
[legend]

Member Enumeration Documentation

◆ EXMLLayout

Enumerator
kSpecialized 
kGeneralized 

Definition at line 84 of file TXMLSetup.h.

Constructor & Destructor Documentation

◆ TXMLSetup() [1/3]

TXMLSetup::TXMLSetup ( )
default

◆ TXMLSetup() [2/3]

TXMLSetup::TXMLSetup ( const char *  opt)

creates TXMLSetup object getting values from string

Definition at line 119 of file TXMLSetup.cxx.

◆ TXMLSetup() [3/3]

TXMLSetup::TXMLSetup ( const TXMLSetup src)

copy constructor of TXMLSetup class

Definition at line 127 of file TXMLSetup.cxx.

◆ ~TXMLSetup()

virtual TXMLSetup::~TXMLSetup ( )
virtualdefault

Member Function Documentation

◆ AtoI()

Int_t TXMLSetup::AtoI ( const char *  sbuf,
Int_t  def = 0,
const char *  errinfo = nullptr 
)
protected

converts string to integer.

if error, returns default value

Definition at line 284 of file TXMLSetup.cxx.

◆ DefaultXmlSetup()

TString TXMLSetup::DefaultXmlSetup ( )
static

return default value for XML setup

Definition at line 103 of file TXMLSetup.cxx.

◆ GetElItemName()

const char * TXMLSetup::GetElItemName ( TStreamerElement el)
protected

get item name for given element

Definition at line 252 of file TXMLSetup.cxx.

◆ GetNextRefCounter()

Int_t TXMLSetup::GetNextRefCounter ( )
inline

Definition at line 111 of file TXMLSetup.h.

◆ GetSetupAsString()

TString TXMLSetup::GetSetupAsString ( )

return setup values as string

Definition at line 148 of file TXMLSetup.cxx.

◆ GetXmlLayout()

EXMLLayout TXMLSetup::GetXmlLayout ( ) const
inline

Definition at line 97 of file TXMLSetup.h.

◆ IsStoreStreamerInfos()

Bool_t TXMLSetup::IsStoreStreamerInfos ( ) const
inline

Definition at line 98 of file TXMLSetup.h.

◆ IsUseDtd()

Bool_t TXMLSetup::IsUseDtd ( ) const
inline

Definition at line 99 of file TXMLSetup.h.

◆ IsUseNamespaces()

Bool_t TXMLSetup::IsUseNamespaces ( ) const
inline

Definition at line 100 of file TXMLSetup.h.

◆ IsValidXmlSetup()

Bool_t TXMLSetup::IsValidXmlSetup ( const char *  setupstr)
protected

checks if string is valid setup

Definition at line 163 of file TXMLSetup.cxx.

◆ operator=()

TXMLSetup & TXMLSetup::operator= ( const TXMLSetup rhs)

assign operator

Definition at line 136 of file TXMLSetup.cxx.

◆ PrintSetup()

void TXMLSetup::PrintSetup ( )

show setup values

Definition at line 199 of file TXMLSetup.cxx.

◆ ReadSetupFromStr()

Bool_t TXMLSetup::ReadSetupFromStr ( const char *  setupstr)
protected

get values from string

Definition at line 180 of file TXMLSetup.cxx.

◆ SetNameSpaceBase()

void TXMLSetup::SetNameSpaceBase ( const char *  namespacebase)
static

set namespace base

Definition at line 111 of file TXMLSetup.cxx.

◆ SetStoreStreamerInfos()

virtual void TXMLSetup::SetStoreStreamerInfos ( Bool_t  iConvert = kTRUE)
inlinevirtual

Reimplemented in TXMLFile.

Definition at line 103 of file TXMLSetup.h.

◆ SetUsedDtd()

virtual void TXMLSetup::SetUsedDtd ( Bool_t  use = kTRUE)
inlinevirtual

Reimplemented in TXMLFile.

Definition at line 104 of file TXMLSetup.h.

◆ SetUseNamespaces()

virtual void TXMLSetup::SetUseNamespaces ( Bool_t  iUseNamespaces = kTRUE)
inlinevirtual

Reimplemented in TXMLFile.

Definition at line 105 of file TXMLSetup.h.

◆ SetXmlLayout()

virtual void TXMLSetup::SetXmlLayout ( EXMLLayout  layout)
inlinevirtual

Reimplemented in TXMLFile.

Definition at line 102 of file TXMLSetup.h.

◆ XmlClassNameSpaceRef()

const char * TXMLSetup::XmlClassNameSpaceRef ( const TClass cl)

produce string which used as reference in class namespace definition

Definition at line 225 of file TXMLSetup.cxx.

◆ XmlConvertClassName()

const char * TXMLSetup::XmlConvertClassName ( const char *  name)

convert class name to exclude any special symbols like ':', '<' '>' ',' and spaces

Definition at line 211 of file TXMLSetup.cxx.

◆ XmlDefineClass()

TClass * TXMLSetup::XmlDefineClass ( const char *  xmlClassName)
protected

define class for the converted class name, where special symbols were replaced by '_'

Definition at line 265 of file TXMLSetup.cxx.

◆ XmlGetElementName()

const char * TXMLSetup::XmlGetElementName ( const TStreamerElement el)

return converted name for TStreamerElement

Definition at line 238 of file TXMLSetup.cxx.

Member Data Documentation

◆ fgNameSpaceBase

TString TXMLSetup::fgNameSpaceBase = "http://root.cern.ch/root/htmldoc/"
staticprotected

buffer, used in XmlDefineClass() function

Definition at line 134 of file TXMLSetup.h.

◆ fRefCounter

Int_t TXMLSetup::fRefCounter {0}
protected

Definition at line 130 of file TXMLSetup.h.

◆ fStoreStreamerInfos

Bool_t TXMLSetup::fStoreStreamerInfos {kTRUE}
protected

Definition at line 126 of file TXMLSetup.h.

◆ fStrBuf

TString TXMLSetup::fStrBuf
protected

counter , used to build id of xml references

Definition at line 132 of file TXMLSetup.h.

◆ fUseDtd

Bool_t TXMLSetup::fUseDtd {kFALSE}
protected

Definition at line 127 of file TXMLSetup.h.

◆ fUseNamespaces

Bool_t TXMLSetup::fUseNamespaces {kFALSE}
protected

Definition at line 128 of file TXMLSetup.h.

◆ fXmlLayout

EXMLLayout TXMLSetup::fXmlLayout {kSpecialized}
protected

Definition at line 125 of file TXMLSetup.h.

Libraries for TXMLSetup:

The documentation for this class was generated from the following files: