Mercurial > hg > orthanc-databases
comparison PostgreSQL/Plugins/PostgreSQLIndex.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 |
---|---|
55 maxConnectionRetries = that_.parameters_.GetMaxConnectionRetries(); | 55 maxConnectionRetries = that_.parameters_.GetMaxConnectionRetries(); |
56 connectionRetryInterval = that_.parameters_.GetConnectionRetryInterval(); | 56 connectionRetryInterval = that_.parameters_.GetConnectionRetryInterval(); |
57 } | 57 } |
58 }; | 58 }; |
59 | 59 |
60 OrthancPluginContext* context_; | |
61 PostgreSQLParameters parameters_; | 60 PostgreSQLParameters parameters_; |
62 bool clearAll_; | 61 bool clearAll_; |
63 | 62 |
64 IDatabase* OpenInternal(); | 63 IDatabase* OpenInternal(); |
65 | 64 |
66 public: | 65 public: |
67 PostgreSQLIndex(const PostgreSQLParameters& parameters); | 66 PostgreSQLIndex(const PostgreSQLParameters& parameters); |
68 | |
69 void SetOrthancPluginContext(OrthancPluginContext* context) | |
70 { | |
71 context_ = context; | |
72 } | |
73 | 67 |
74 void SetClearAll(bool clear) | 68 void SetClearAll(bool clear) |
75 { | 69 { |
76 clearAll_ = clear; | 70 clearAll_ = clear; |
77 } | 71 } |