summaryrefslogtreecommitdiff
path: root/server/src/transactionparser.h
diff options
context:
space:
mode:
authordeva <deva>2008-08-15 09:37:36 +0000
committerdeva <deva>2008-08-15 09:37:36 +0000
commit5ccdf6dd987be086a8712a4960f770122b1b499b (patch)
tree7999dd2a4b9e4e3aaccf3493cd7826528ddd1c01 /server/src/transactionparser.h
parentb7be78948cad7629427fd19769ddcfdfea3fb666 (diff)
Changes for read-loop-server.
Diffstat (limited to 'server/src/transactionparser.h')
-rw-r--r--server/src/transactionparser.h6
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;
};