comparison PostgreSQL/Plugins/PostgreSQLStorageArea.h @ 186:6fe74f9a516e

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Dec 2020 15:05:19 +0100
parents 0b3e9ee53c46
children 3236894320d6
comparison
equal deleted inserted replaced
185:7c46155b5bb4 186:6fe74f9a516e
33 { 33 {
34 private: 34 private:
35 PostgreSQLStorageArea& that_; 35 PostgreSQLStorageArea& that_;
36 36
37 public: 37 public:
38 Factory(PostgreSQLStorageArea& that) : 38 explicit Factory(PostgreSQLStorageArea& that) :
39 that_(that) 39 that_(that)
40 { 40 {
41 } 41 }
42 42
43 virtual Dialect GetDialect() const 43 virtual Dialect GetDialect() const
44 { 44 {
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 PostgreSQLStorageArea(const PostgreSQLParameters& parameters); 66 explicit PostgreSQLStorageArea(const PostgreSQLParameters& parameters);
68 67
69 void SetClearAll(bool clear) 68 void SetClearAll(bool clear)
70 { 69 {
71 clearAll_ = clear; 70 clearAll_ = clear;
72 } 71 }