Mercurial > hg > orthanc-stone
diff Framework/Toolbox/MessagingToolbox.h @ 309:14ef1227120f am-callable-and-promise
web services: better handling of failures
author | am@osimis.io |
---|---|
date | Fri, 28 Sep 2018 15:02:43 +0200 |
parents | 5412adf19980 |
children | b70e9be013e4 |
line wrap: on
line diff
--- a/Framework/Toolbox/MessagingToolbox.h Tue Sep 25 15:14:53 2018 +0200 +++ b/Framework/Toolbox/MessagingToolbox.h Fri Sep 28 15:02:43 2018 +0200 @@ -13,7 +13,7 @@ * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Affero General Public License for more details. - * + * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. **/ @@ -38,6 +38,10 @@ const void* content, size_t size); + void JsonToString(std::string& target, + const Json::Value& source); + + void RestApiGet(Json::Value& target, OrthancPlugins::IOrthancConnection& orthanc, const std::string& uri);