diff options
Diffstat (limited to 'server/src/transactionparser.h')
-rw-r--r-- | server/src/transactionparser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/transactionparser.h b/server/src/transactionparser.h index b64d68a..3f477c9 100644 --- a/server/src/transactionparser.h +++ b/server/src/transactionparser.h @@ -33,19 +33,21 @@ class TransactionParser : public SAXParser { public: - TransactionParser(TCPSocket &socket, Transaction &transaction); + TransactionParser(Transaction *transaction); + ~TransactionParser(); void startTag(std::string name, std::map< std::string, std::string> attributes); void endTag(std::string name); void parseError(char *buf, size_t len, std::string error, int lineno); + bool parse(std::string data); + protected: int readData(char *data, size_t size); private: Transaction *transaction; - TCPSocket *socket; bool done; }; |