summaryrefslogtreecommitdiff
path: root/server/src/pracrodaopgsql.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/pracrodaopgsql.h')
-rw-r--r--server/src/pracrodaopgsql.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/server/src/pracrodaopgsql.h b/server/src/pracrodaopgsql.h
index 303db28..b226cfd 100644
--- a/server/src/pracrodaopgsql.h
+++ b/server/src/pracrodaopgsql.h
@@ -39,11 +39,15 @@ class PracroDAOPgsql : public PracroDAO
{
public:
PracroDAOPgsql(std::string _host, std::string _port, std::string _user, std::string _passwd, std::string _dbname);
- virtual ~PracroDAOPgsql();
+ ~PracroDAOPgsql();
- virtual void commitTransaction(std::string user, std::string patientid, Macro &macro, Fields &fields, time_t now);
- virtual Values getLatestValues(std::string patientid, Macro *macro, Fieldnames &fieldnames, time_t oldest);
- virtual unsigned nrOfCommits(std::string patientid, std::string macroname, time_t oldest);
+ void commitTransaction(std::string user, std::string patientid, Macro &macro, Fields &fields, time_t now);
+ Values getLatestValues(std::string patientid, Macro *macro, Fieldnames &fieldnames, time_t oldest);
+ unsigned nrOfCommits(std::string patientid, std::string macroname, time_t oldest);
+
+ void addFieldname(std::string name, std::string description);
+ void delFieldname(std::string name);
+ std::vector<Fieldname> getFieldnames();
private:
pqxx::connection *conn;