summaryrefslogtreecommitdiff
path: root/server/src/database.h
diff options
context:
space:
mode:
authordeva <deva>2008-05-26 13:56:30 +0000
committerdeva <deva>2008-05-26 13:56:30 +0000
commit192e0f80bd2da45f1c612411fded2e805ac205de (patch)
tree95407dd47edc6062a6250382ca345d320b7665be /server/src/database.h
parentb0be417b31e2d2577c188a563d531889354b7617 (diff)
Completed the prefilling of the fields, from the db and pentominos, according to their timestamps.
Diffstat (limited to 'server/src/database.h')
-rw-r--r--server/src/database.h4
1 files changed, 3 insertions, 1 deletions
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