summaryrefslogtreecommitdiff
path: root/server/src/queryhandler.h
diff options
context:
space:
mode:
authordeva <deva>2008-09-30 12:49:34 +0000
committerdeva <deva>2008-09-30 12:49:34 +0000
commite2120257dda4d91b48bb031a96edda810ce30dfb (patch)
treef83eadbbb6d84fd0d6fb7d7a4d3e342535854795 /server/src/queryhandler.h
parenta01f655935558e0f71253907fd8e4c57b0d2f64c (diff)
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.
Diffstat (limited to 'server/src/queryhandler.h')
-rw-r--r--server/src/queryhandler.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/server/src/queryhandler.h b/server/src/queryhandler.h
index 8217f40..bb0be8f 100644
--- a/server/src/queryhandler.h
+++ b/server/src/queryhandler.h
@@ -29,6 +29,7 @@
#include "tcpsocket.h"
#include "template.h"
+#include "queryresult.h"
#include <vector>
#include <string>
@@ -40,17 +41,13 @@ class QueryHandler {
public:
QueryHandler(TCPSocket *socket, std::string cpr);
- // Add a query to the query queue
- void addQuery(Query &query);
-
// Execute all queries.
- std::string exec();
+ // std::string exec();
+ QueryResult exec(Query &query);
private:
TCPSocket *socket;
std::string cpr;
-
- std::vector< Query > queries;
};
#endif/*__PRACRO_QUERYHANDLER_H__*/