comparison OrthancServer/DatabaseWrapper.h @ 1672:4c5a85c3ff43 db-changes

sample database plugin now working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 02 Oct 2015 12:20:49 +0200
parents 2f2e2ec17bc4
children 2ad22b2970a2
comparison
equal deleted inserted replaced
1671:2f2e2ec17bc4 1672:4c5a85c3ff43
57 SQLite::Connection db_; 57 SQLite::Connection db_;
58 DatabaseWrapperBase base_; 58 DatabaseWrapperBase base_;
59 Internals::SignalRemainingAncestor* signalRemainingAncestor_; 59 Internals::SignalRemainingAncestor* signalRemainingAncestor_;
60 unsigned int version_; 60 unsigned int version_;
61 61
62 void Open();
63
64 void ClearTable(const std::string& tableName); 62 void ClearTable(const std::string& tableName);
65 63
66 public: 64 public:
67 DatabaseWrapper(const std::string& path); 65 DatabaseWrapper(const std::string& path);
68 66
69 DatabaseWrapper(); 67 DatabaseWrapper();
68
69 virtual void Open();
70
71 virtual void Close()
72 {
73 db_.Close();
74 }
70 75
71 virtual void SetListener(IDatabaseListener& listener); 76 virtual void SetListener(IDatabaseListener& listener);
72 77
73 virtual void SetGlobalProperty(GlobalProperty property, 78 virtual void SetGlobalProperty(GlobalProperty property,
74 const std::string& value) 79 const std::string& value)