Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/StorageCommitmentScpJob.cpp @ 3763:5ff5d5a0fd28
adding missing ORTHANC_OVERRIDE
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 16 Mar 2020 14:12:20 +0100 |
parents | 6e5b3ae8825c |
children | 138d0dde41b5 |
comparison
equal
deleted
inserted
replaced
3762:1a346a4dc1b4 | 3763:5ff5d5a0fd28 |
---|---|
73 SetupCommand(StorageCommitmentScpJob& that) : | 73 SetupCommand(StorageCommitmentScpJob& that) : |
74 that_(that) | 74 that_(that) |
75 { | 75 { |
76 } | 76 } |
77 | 77 |
78 virtual CommandType GetType() const | 78 virtual CommandType GetType() const ORTHANC_OVERRIDE |
79 { | 79 { |
80 return CommandType_Setup; | 80 return CommandType_Setup; |
81 } | 81 } |
82 | 82 |
83 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE | 83 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE |
84 { | 84 { |
85 that_.Setup(jobId); | 85 that_.Setup(jobId); |
86 return true; | 86 return true; |
87 } | 87 } |
88 | 88 |
89 virtual void Serialize(Json::Value& target) const | 89 virtual void Serialize(Json::Value& target) const ORTHANC_OVERRIDE |
90 { | 90 { |
91 target = Json::objectValue; | 91 target = Json::objectValue; |
92 target[TYPE] = SETUP; | 92 target[TYPE] = SETUP; |
93 } | 93 } |
94 }; | 94 }; |
109 index_(index), | 109 index_(index), |
110 hasFailureReason_(false) | 110 hasFailureReason_(false) |
111 { | 111 { |
112 } | 112 } |
113 | 113 |
114 virtual CommandType GetType() const | 114 virtual CommandType GetType() const ORTHANC_OVERRIDE |
115 { | 115 { |
116 return CommandType_Lookup; | 116 return CommandType_Lookup; |
117 } | 117 } |
118 | 118 |
119 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE | 119 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE |
138 { | 138 { |
139 throw OrthancException(ErrorCode_BadSequenceOfCalls); | 139 throw OrthancException(ErrorCode_BadSequenceOfCalls); |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 virtual void Serialize(Json::Value& target) const | 143 virtual void Serialize(Json::Value& target) const ORTHANC_OVERRIDE |
144 { | 144 { |
145 target = Json::objectValue; | 145 target = Json::objectValue; |
146 target[TYPE] = LOOKUP; | 146 target[TYPE] = LOOKUP; |
147 target[INDEX] = static_cast<unsigned int>(index_); | 147 target[INDEX] = static_cast<unsigned int>(index_); |
148 } | 148 } |
166 { | 166 { |
167 that_.ready_ = true; | 167 that_.ready_ = true; |
168 } | 168 } |
169 } | 169 } |
170 | 170 |
171 virtual CommandType GetType() const | 171 virtual CommandType GetType() const ORTHANC_OVERRIDE |
172 { | 172 { |
173 return CommandType_Answer; | 173 return CommandType_Answer; |
174 } | 174 } |
175 | 175 |
176 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE | 176 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE |
177 { | 177 { |
178 that_.Answer(); | 178 that_.Answer(); |
179 return true; | 179 return true; |
180 } | 180 } |
181 | 181 |
182 virtual void Serialize(Json::Value& target) const | 182 virtual void Serialize(Json::Value& target) const ORTHANC_OVERRIDE |
183 { | 183 { |
184 target = Json::objectValue; | 184 target = Json::objectValue; |
185 target[TYPE] = ANSWER; | 185 target[TYPE] = ANSWER; |
186 } | 186 } |
187 }; | 187 }; |