diff options
author | deva <deva> | 2009-07-10 09:59:41 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-10 09:59:41 +0000 |
commit | a619ccc300a00947207600e11fac848b7d37b26b (patch) | |
tree | 1fcfef3cdde2f176368b7a15f795a0ad5508687b /server/src/pracrodaopgsql.h | |
parent | ca32aba4df1b021b1acaa8f0650fa6a0cd7b9d80 (diff) |
Fieldname queries added macrotool.
Diffstat (limited to 'server/src/pracrodaopgsql.h')
-rw-r--r-- | server/src/pracrodaopgsql.h | 12 |
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 ¯o, 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 ¯o, 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; |