comparison SQLite/Plugins/SQLiteIndex.h @ 199:8cae98f73d53

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Mar 2021 14:52:06 +0100
parents 3236894320d6
children 42990b2dd51b
comparison
equal deleted inserted replaced
198:7335efde0d23 199:8cae98f73d53
56 maxConnectionRetries = 0; 56 maxConnectionRetries = 0;
57 connectionRetryInterval = 1; 57 connectionRetryInterval = 1;
58 } 58 }
59 }; 59 };
60 60
61 OrthancPluginContext* context_;
62 std::string path_; 61 std::string path_;
63 bool fast_; 62 bool fast_;
64 63
65 IDatabase* OpenInternal(); 64 IDatabase* OpenInternal();
66 65
67 public: 66 public:
68 SQLiteIndex(); // Opens in memory 67 SQLiteIndex(); // Opens in memory
69 68
70 SQLiteIndex(const std::string& path); 69 SQLiteIndex(const std::string& path);
71
72 void SetOrthancPluginContext(OrthancPluginContext* context)
73 {
74 context_ = context;
75 }
76 70
77 void SetFast(bool fast) 71 void SetFast(bool fast)
78 { 72 {
79 fast_ = fast; 73 fast_ = fast;
80 } 74 }