From 192e0f80bd2da45f1c612411fded2e805ac205de Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 26 May 2008 13:56:30 +0000 Subject: Completed the prefilling of the fields, from the db and pentominos, according to their timestamps. --- server/src/database.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/src/database.h') diff --git a/server/src/database.h b/server/src/database.h index 0958b15..8200129 100644 --- a/server/src/database.h +++ b/server/src/database.h @@ -43,6 +43,8 @@ public: }; typedef std::map< std::string, Value > Values; +typedef std::vector< std::string > Fieldnames; + class Database { public: Database(std::string hostname = "localhost", @@ -59,7 +61,7 @@ public: // Get a list of values from the db Values getValues(std::string cpr, - std::vector< std::string > &fieldnames, + Fieldnames &fieldnames, time_t oldest = 0); // Connect to the db -- cgit v1.2.3