class TSAXParser: public TXMLParser


TSAXParser is a subclass of TXMLParser, it is a wraper class to
libxml library.

SAX (Simple API for XML) is an event based interface, which doesn't
maintain the DOM tree in memory, in other words, it's much more
efficient for large document.

TSAXParserCallback contains a number of callback routines to the
parser in a xmlSAXHandler structure. The parser will then parse the
document and call the appropriate callback when certain conditions

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTObject::Browse(TBrowser* b)
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
virtual voidConnectToHandler(const char* handlerName, void* handler)
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidTQObject::Destroyed()SIGNAL
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
voidTQObject::EmitVA<>(const char* signal_name, Int_t)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tTXMLParser::GetParseCode() const
const char*TXMLParser::GetParseCodeMessage(Int_t parseCode) const
Bool_tTXMLParser::GetReplaceEntities() const
Bool_tTXMLParser::GetStopOnError() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Bool_tTXMLParser::GetValidate() const
const char*TXMLParser::GetValidateError() const
const char*TXMLParser::GetValidateWarning() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTObject::Hash() const
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)SIGNAL
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
virtual voidOnCdataBlock(const char* text, Int_t len)SIGNAL
virtual voidOnCharacters(const char* characters)SIGNAL
virtual voidOnComment(const char* text)SIGNAL
virtual voidOnEndDocument()SIGNAL
virtual voidOnEndElement(const char* name)SIGNAL
virtual Int_tOnError(const char* text)SIGNAL
virtual Int_tOnFatalError(const char* text)SIGNAL
virtual voidOnStartDocument()SIGNAL
virtual voidOnStartElement(const char* name, const TList* attr)SIGNAL
virtual voidOnWarning(const char* text)SIGNAL
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual Int_tParseBuffer(const char* contents, Int_t len)
virtual Int_tParseFile(const char* filename)
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
voidTXMLParser::SetReplaceEntities(Bool_t val = kTRUE)
voidTXMLParser::SetStopOnError(Bool_t stop = kTRUE)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidTXMLParser::SetValidate(Bool_t val = kTRUE)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidTXMLParser::StopParser()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static TStringTQObject::CompressName(const char* method_name)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual void*TQObject::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidTXMLParser::InitializeContext()
virtual voidTXMLParser::OnValidateError(const TString& message)
virtual voidTXMLParser::OnValidateWarning(const TString& message)
virtual voidTXMLParser::ReleaseUnderlying()
virtual voidTXMLParser::SetParseCode(Int_t code)
TSAXParser&operator=(const TSAXParser&)
virtual Int_tParse()
TSAXParser(const TSAXParser&)

Data Members

static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
_xmlParserCtxt*TXMLParser::fContextparse the xml file
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
Int_tTXMLParser::fParseCodeto keep track of the errorcodes
Bool_tTXMLParser::fReplaceEntitiesreplace entities
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
Bool_tTXMLParser::fStopErrorstop when parse error occurs
Bool_tTXMLParser::fValidateto validate the parse context
TStringTXMLParser::fValidateErrorparse error
TStringTXMLParser::fValidateWarningparse warning
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals
_xmlSAXHandler*fSAXHandlerlibxml2 SAX handler

Class Charts

Inheritance Chart:

Function documentation

 Create SAX parser.
 TSAXParser desctructor
void OnStartDocument()
 Emit a signal for OnStartDocument.
void OnEndDocument()
 Emit a signal for OnEndDocument.
void OnStartElement(const char* name, const TList* attr)
 Emit a signal for OnStarElement, where name is the Element's name and
 attribute is a TList of (TObjString*, TObjString *) TPair's.
 The TPair's key is the attribute's name and value is the attribute's
void OnEndElement(const char* name)
Emit a signal for OnEndElement, where name is the Element's name.
void OnCharacters(const char* characters)
 Emit a signal for OnCharacters, where characters are the characters
 outside of tags.
void OnComment(const char* text)
 Emit a signal for OnComment, where text is the comment.
void OnWarning(const char* text)
 Emit a signal for OnWarning, where text is the warning.
Int_t OnError(const char* text)
 Emit a signal for OnError, where text is the error and it returns the
 Parse Error Code, see TXMLParser.
Int_t OnFatalError(const char* text)
 Emit a signal for OnFactalError, where text is the error and it
 returns the Parse Error Code, see TXMLParser.
void OnCdataBlock(const char* text, Int_t len)
 Emit a signal for OnCdataBlock.
Int_t Parse()
 This function parses the xml file, by initializing the parser and checks
 whether the parse context is created or not, it will check as well
 whether the document is well formated.
 It returns the parse error code, see TXMLParser.
Int_t ParseFile(const char* filename)
 It creates the parse context of the xml file, where the xml file name is
 filename. If context is created sucessfully, it will call Parse()
 It returns parse error code, see TXMLParser.
Int_t ParseBuffer(const char* contents, Int_t len)
 It parse the contents, instead of a file.
 It will return error if is attempted to parse a second file while
 a parse is in progres.
 It returns parse code error, see TXMLParser.
void ConnectToHandler(const char* handlerName, void* handler)
 A default TSAXParser to a user-defined Handler connection function.
 This function makes connection between various function from TSAXParser
 with the user-define SAX Handler, whose functions has to be exactly the
 same as in TSAXParser.

 handlerName is the user-defined SAX Handler class name
 handler is the pointer to the user-defined SAX Handler

 See SAXHandler.C tutorial.
TSAXParser(const TSAXParser& )
TSAXParser& operator=(const TSAXParser& )