#ifndef ROOT_TXMLParser
#define ROOT_TXMLParser
#ifndef ROOT_TQObject
#include "TQObject.h"
#endif
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
struct _xmlParserCtxt;
class TXMLParser : public TObject, public TQObject {
private:
TXMLParser(const TXMLParser&);
TXMLParser& operator=(const TXMLParser&);
protected:
_xmlParserCtxt *fContext;
Bool_t fValidate;
Bool_t fReplaceEntities;
Bool_t fStopError;
TString fValidateError;
TString fValidateWarning;
Int_t fParseCode;
virtual void InitializeContext();
virtual void ReleaseUnderlying();
virtual void OnValidateError(const TString& message);
virtual void OnValidateWarning(const TString& message);
virtual void StopParser();
virtual void SetParseCode(Int_t code);
public:
TXMLParser();
virtual ~TXMLParser();
void SetValidate(Bool_t val = kTRUE);
Bool_t GetValidate() const { return fValidate; }
void SetReplaceEntities(Bool_t val = kTRUE);
Bool_t GetReplaceEntities() const { return fReplaceEntities; }
virtual Int_t ParseFile(const char *filename) = 0;
virtual Int_t ParseBuffer(const char *contents, Int_t len) = 0;
Int_t GetParseCode() const { return fParseCode; }
const char *GetParseCodeMessage(Int_t parseCode) const;
void SetStopOnError(Bool_t stop = kTRUE);
Bool_t GetStopOnError() const { return fStopError; }
const char *GetValidateError() const { return fValidateError; }
const char *GetValidateWarning() const { return fValidateWarning; }
ClassDef(TXMLParser,0);
};
#endif
Last change: Wed Jun 25 08:55:13 2008
Last generated: 2008-06-25 08:55
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.