diff options
author | deva <deva> | 2008-08-15 09:37:36 +0000 |
---|---|---|
committer | deva <deva> | 2008-08-15 09:37:36 +0000 |
commit | 5ccdf6dd987be086a8712a4960f770122b1b499b (patch) | |
tree | 7999dd2a4b9e4e3aaccf3493cd7826528ddd1c01 /server/src/transactionparser.h | |
parent | b7be78948cad7629427fd19769ddcfdfea3fb666 (diff) |
Changes for read-loop-server.
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; }; |