diff options
Diffstat (limited to 'server/src/database.h')
-rw-r--r-- | server/src/database.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/src/database.h b/server/src/database.h index 51c0f1a..0958b15 100644 --- a/server/src/database.h +++ b/server/src/database.h @@ -36,7 +36,12 @@ #include <map> -typedef std::map< std::string, std::string > Fields; +class Value { +public: + std::string value; + time_t timestamp; +}; +typedef std::map< std::string, Value > Values; class Database { public: @@ -53,7 +58,7 @@ public: time_t now = time(NULL)); // Get a list of values from the db - Fields getValues(std::string cpr, + Values getValues(std::string cpr, std::vector< std::string > &fieldnames, time_t oldest = 0); |