From e2120257dda4d91b48bb031a96edda810ce30dfb Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 30 Sep 2008 12:49:34 +0000 Subject: Changed SAXParser parse method to take a buffer and a size instead of a c++ string. Made the queryhandler use a read loop, parsing on-the-fly to determine when the entire document has been read. --- server/src/saxparser.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'server/src/saxparser.h') diff --git a/server/src/saxparser.h b/server/src/saxparser.h index 67a86b7..da33440 100644 --- a/server/src/saxparser.h +++ b/server/src/saxparser.h @@ -44,10 +44,21 @@ public: virtual void parseError(char *buf, size_t len, std::string error, int lineno); + bool parse(char *buf, size_t size); + + unsigned int usedBytes(); + + // private stuff that needs to be public! + std::string outertag; + bool done; + protected: virtual int readData(char *data, size_t size) { return 0; } XML_Parser p; + + unsigned int bufferbytes; + unsigned int totalbytes; }; #endif/*__PRACRO_SAXPARSER_H__*/ -- cgit v1.2.3