Mercurial > hg > orthanc-wsi
comparison Resources/Orthanc/Plugins/Samples/Common/IOrthancConnection.cpp @ 86:319b8c45c231
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Dec 2016 14:55:19 +0100 |
parents | d529d9ce3c7e |
children | ff0ef01c332c |
comparison
equal
deleted
inserted
replaced
85:8a20cd67b283 | 86:319b8c45c231 |
---|---|
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, |