Mercurial > hg > orthanc-stone
comparison Framework/Oracle/HttpCommand.cpp @ 1135:a0a33e5ea5bb broker
IOracleCommand::Clone()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Nov 2019 17:34:58 +0100 |
parents | 87fbeb823375 |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1134:87fbeb823375 | 1135:a0a33e5ea5bb |
---|---|
26 #include <json/reader.h> | 26 #include <json/reader.h> |
27 #include <json/writer.h> | 27 #include <json/writer.h> |
28 | 28 |
29 namespace OrthancStone | 29 namespace OrthancStone |
30 { | 30 { |
31 HttpCommand::SuccessMessage::SuccessMessage(HttpCommand& command, | |
32 const HttpHeaders& answerHeaders, | |
33 const std::string& answer) : | |
34 OracleMessageBase(command), | |
35 headers_(answerHeaders), | |
36 answer_(answer) | |
37 { | |
38 } | |
39 | |
40 | |
41 void HttpCommand::SuccessMessage::ParseJsonBody(Json::Value& target) const | 31 void HttpCommand::SuccessMessage::ParseJsonBody(Json::Value& target) const |
42 { | 32 { |
43 Json::Reader reader; | 33 Json::Reader reader; |
44 if (!reader.parse(answer_, target)) | 34 if (!reader.parse(answer_, target)) |
45 { | 35 { |