summaryrefslogtreecommitdiff
path: root/server/src/queryhandlerpentominos.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/queryhandlerpentominos.cc')
-rw-r--r--server/src/queryhandlerpentominos.cc17
1 files changed, 13 insertions, 4 deletions
diff --git a/server/src/queryhandlerpentominos.cc b/server/src/queryhandlerpentominos.cc
index 4abf5da..b67f731 100644
--- a/server/src/queryhandlerpentominos.cc
+++ b/server/src/queryhandlerpentominos.cc
@@ -66,7 +66,7 @@ typedef struct {
} UID;
#define SIOCGIFCONF 0x8912 // get iface list
-
+/*
static in_addr_t getIP(const char *interface)
{
in_addr_t ret = 0;
@@ -116,6 +116,7 @@ static unsigned short getCounter()
return counter++;
}
+
static UID uid = {0,0,0,0};
static std::string getUID(const char *interface)
{
@@ -133,16 +134,22 @@ static std::string getUID(const char *interface)
sprintf(buf, "%08x%08x%04x%04x", uid.ip, (unsigned int)uid.time, uid.pid, uid.count);
return std::string(buf);
}
+*/
-
-QueryHandlerPentominos::QueryHandlerPentominos(Artefact &atf, std::string cpr)
+QueryHandlerPentominos::QueryHandlerPentominos(Artefact &atf,
+ std::string patientid,
+ std::string user)
: QueryHandler(), artefact(atf)
{
- this->cpr = cpr;
+ this->patientid = patientid;
+ this->user = user;
}
QueryResult QueryHandlerPentominos::exec(Query &query)
{
+ return artefact.exec(query, patientid, user);
+
+#if 0
time_t timestamp = time(NULL);
std::string uid = getUID("eth0");
@@ -225,6 +232,8 @@ QueryResult QueryHandlerPentominos::exec(Query &query)
result.print();
return result;
+#endif
+ return QueryResult();
}
#ifdef TEST_QUERYHANDLERPENTOMINOS