Mercurial > hg > orthanc
comparison Plugins/Samples/Common/IOrthancConnection.cpp @ 2237:403d92d8df83
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Dec 2016 14:45:40 +0100 |
parents | 1d0838b8e9c5 |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2236:55843d0139d3 | 2237:403d92d8df83 |
---|---|
30 **/ | 30 **/ |
31 | 31 |
32 | 32 |
33 #include "IOrthancConnection.h" | 33 #include "IOrthancConnection.h" |
34 | 34 |
35 #include "OrthancPluginCppWrapper.h" | 35 #include "OrthancPluginException.h" |
36 | 36 |
37 #include <json/reader.h> | 37 #include <json/reader.h> |
38 | 38 |
39 namespace OrthancPlugins | 39 namespace OrthancPlugins |
40 { | 40 { |
43 { | 43 { |
44 Json::Reader reader; | 44 Json::Reader reader; |
45 | 45 |
46 if (!reader.parse(content, result)) | 46 if (!reader.parse(content, result)) |
47 { | 47 { |
48 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_BadFileFormat); | 48 ORTHANC_PLUGINS_THROW_EXCEPTION(BadFileFormat); |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 | 52 |
53 void IOrthancConnection::RestApiGet(Json::Value& result, | 53 void IOrthancConnection::RestApiGet(Json::Value& result, |