library: libXMLIO
#include "TXMLSetup.h"


class description - header file - source file
viewCVS header - viewCVS source

class TXMLSetup

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TXMLSetup(const char* opt)
TXMLSetup(const TXMLSetup& src)
static TClass*Class()
static TStringDefaultXmlSetup()
TXMLSetup::EXMLLayoutGetXmlLayout() const
virtual TClass*IsA() const
Bool_tIsStoreStreamerInfos() const
Bool_tIsUseDtd() const
Bool_tIsUseNamespaces() const
TXMLSetup&operator=(const TXMLSetup&)
static voidSetNameSpaceBase(const char* namespacebase)
virtual voidSetStoreStreamerInfos(Bool_t iConvert = kTRUE)
virtual voidSetUsedDtd(Bool_t use = kTRUE)
virtual voidSetUseNamespaces(Bool_t iUseNamespaces = kTRUE)
virtual voidSetXmlLayout(TXMLSetup::EXMLLayout layout)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
const char*XmlClassNameSpaceRef(const TClass* cl)
const char*XmlConvertClassName(const char* name)
const char*XmlGetElementName(const TStreamerElement* el)
Int_tAtoI(const char* sbuf, Int_t def = 0, const char* errinfo = "0")
const char*GetElItemName(TStreamerElement* el)
Bool_tIsValidXmlSetup(const char* setupstr)
Bool_tReadSetupFromStr(const char* setupstr)
TClass*XmlDefineClass(const char* xmlClassName)

Data Members

enum EXMLLayout { kSpecialized
Int_tfRefCounter! counter , used to build id of xml references
TStringfStrBuf! buffer, used in XmlDefineClass() function
static TStringfgNameSpaceBase

Class Description

 Class TXMLSetup is used as storage of xml file settings
 This class is used in TXMLFile and in TXmlBuffer classes.
 Xml settings can be codded via a string in following format

    ||| \ .
    || \ usage of name spaces.
    | \ usage of DTD;
     \ storage of TStreamerInfo objects in file;
      layout of xml file (= 2 - specialized (default), = 3 - generic) 

 For last three boolean parameters "x" means true, "o" - false

 Such string can be set as argument of TXMLFile constructor. In that
 case new TXMLFile with such parameters will be created. 
 These settings automatically stored in xml file.
TString DefaultXmlSetup()
 return default value for XML setup 
void SetNameSpaceBase(const char* namespacebase)
 set namespace base
 defaule constructor of TXMLSetup class 
TXMLSetup(const char* opt)
 contsruct TXMLSetup object getting values from string
TXMLSetup(const TXMLSetup& src)
 copy sonstructor of TXMLSetup class
 TXMLSetup class destructor 
TString GetSetupAsString()
 return setup values as string 
Bool_t IsValidXmlSetup(const char* setupstr)
 checks if string is valid setup  
Bool_t ReadSetupFromStr(const char* setupstr)
 get values from string 
void PrintSetup()
 show setup values  
const char* XmlConvertClassName(const char* clname)
 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
const char* XmlGetElementName(const TStreamerElement* el)
  return converted name for TStreamerElement 
const char* GetElItemName(TStreamerElement* el)
 get item name for given element 
TClass* XmlDefineClass(const char* xmlClassName)
 define class for the converted class name, where
 special symbols were replaced by '_' 
Int_t AtoI(const char* sbuf, Int_t def, const char* errinfo)
 converts string to integer.
 if error, returns default value 
EXMLLayout GetXmlLayout()
{ return fXmlLayout; }
Bool_t IsStoreStreamerInfos()
{ return fStoreStreamerInfos; }
Bool_t IsUseDtd()
{ return fUseDtd; }
Bool_t IsUseNamespaces()
{ return fUseNamespaces; }
void SetXmlLayout(EXMLLayout layout)
{ fXmlLayout = layout; }
void SetStoreStreamerInfos(Bool_t iConvert = kTRUE)
{ fStoreStreamerInfos = iConvert; }
void SetUsedDtd(Bool_t use = kTRUE)
{ fUseDtd = use; }
void SetUseNamespaces(Bool_t iUseNamespaces = kTRUE)
{ fUseNamespaces = iUseNamespaces; }
Int_t GetNextRefCounter()
{ return fRefCounter++; }

Author: Sergey Linev 10.05.2004
Last update: root/xml:$Name: $:$Id: TXMLSetup.cxx,v 1.10 2006/01/20 01:12:13 pcanal Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.