/usr/include/root/TSAXParser.h is in libroot-io-xmlparser-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | // @(#)root/xmlparser:$Id$
// Author: Jose Lo 12/1/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TSAXParser
#define ROOT_TSAXParser
//////////////////////////////////////////////////////////////////////////
// //
// TSAXParser //
// //
// 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 //
// occur. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TXMLParser
#include "TXMLParser.h"
#endif
class TList;
class TSAXParserCallback;
struct _xmlSAXHandler;
class TSAXParser : public TXMLParser {
friend class TSAXParserCallback;
private:
_xmlSAXHandler *fSAXHandler; // libxml2 SAX handler
virtual Int_t Parse();
TSAXParser(const TSAXParser&); // Not implemented
TSAXParser& operator=(const TSAXParser&); // Not implemented
public:
TSAXParser();
virtual ~TSAXParser();
virtual Int_t ParseFile(const char *filename);
virtual Int_t ParseBuffer(const char *contents, Int_t len);
virtual void OnStartDocument(); //*SIGNAL*
virtual void OnEndDocument(); //*SIGNAL*
virtual void OnStartElement(const char *name, const TList *attr); //*SIGNAL*
virtual void OnEndElement(const char *name); //*SIGNAL*
virtual void OnCharacters(const char *characters); //*SIGNAL*
virtual void OnComment(const char *text); //*SIGNAL*
virtual void OnWarning(const char *text); //*SIGNAL*
virtual Int_t OnError(const char *text); //*SIGNAL*
virtual Int_t OnFatalError(const char *text); //*SIGNAL*
virtual void OnCdataBlock(const char *text, Int_t len); //*SIGNAL*
virtual void ConnectToHandler(const char *handlerName, void *handler);
ClassDef(TSAXParser,0); // SAX Parser
};
#endif
|