Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp @ 4205:d962a2996637
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 17:58:19 +0200 |
parents | 05b8fd21089c |
children | 171af1567473 |
comparison
equal
deleted
inserted
replaced
4204:318c16cfccab | 4205:d962a2996637 |
---|---|
68 { | 68 { |
69 private: | 69 private: |
70 StorageCommitmentScpJob& that_; | 70 StorageCommitmentScpJob& that_; |
71 | 71 |
72 public: | 72 public: |
73 SetupCommand(StorageCommitmentScpJob& that) : | 73 explicit SetupCommand(StorageCommitmentScpJob& that) : |
74 that_(that) | 74 that_(that) |
75 { | 75 { |
76 } | 76 } |
77 | 77 |
78 virtual CommandType GetType() const ORTHANC_OVERRIDE | 78 virtual CommandType GetType() const ORTHANC_OVERRIDE |
153 { | 153 { |
154 private: | 154 private: |
155 StorageCommitmentScpJob& that_; | 155 StorageCommitmentScpJob& that_; |
156 | 156 |
157 public: | 157 public: |
158 AnswerCommand(StorageCommitmentScpJob& that) : | 158 explicit AnswerCommand(StorageCommitmentScpJob& that) : |
159 that_(that) | 159 that_(that) |
160 { | 160 { |
161 if (that_.ready_) | 161 if (that_.ready_) |
162 { | 162 { |
163 throw OrthancException(ErrorCode_BadSequenceOfCalls); | 163 throw OrthancException(ErrorCode_BadSequenceOfCalls); |
191 { | 191 { |
192 private: | 192 private: |
193 StorageCommitmentScpJob& that_; | 193 StorageCommitmentScpJob& that_; |
194 | 194 |
195 public: | 195 public: |
196 Unserializer(StorageCommitmentScpJob& that) : | 196 explicit Unserializer(StorageCommitmentScpJob& that) : |
197 that_(that) | 197 that_(that) |
198 { | 198 { |
199 that_.ready_ = false; | 199 that_.ready_ = false; |
200 } | 200 } |
201 | 201 |
202 virtual ICommand* Unserialize(const Json::Value& source) const | 202 virtual ICommand* Unserialize(const Json::Value& source) const ORTHANC_OVERRIDE |
203 { | 203 { |
204 const std::string type = SerializationToolbox::ReadString(source, TYPE); | 204 const std::string type = SerializationToolbox::ReadString(source, TYPE); |
205 | 205 |
206 if (type == SETUP) | 206 if (type == SETUP) |
207 { | 207 { |