Mercurial > hg > orthanc-python
comparison Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h @ 56:23f3099bed47
upgrade to year 2021
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Jan 2021 18:17:53 +0100 |
parents | 0f8c9ce124d6 |
children | d88ae86b7b79 |
comparison
equal
deleted
inserted
replaced
55:434b46538b08 | 56:23f3099bed47 |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2021 Osimis S.A., Belgium |
6 * | 6 * |
7 * This program is free software: you can redistribute it and/or | 7 * This program is free software: you can redistribute it and/or |
8 * modify it under the terms of the GNU General Public License as | 8 * modify it under the terms of the GNU General Public License as |
9 * published by the Free Software Foundation, either version 3 of the | 9 * published by the Free Software Foundation, either version 3 of the |
10 * License, or (at your option) any later version. | 10 * License, or (at your option) any later version. |
473 return IsMatch(dicom.GetData(), dicom.GetSize()); | 473 return IsMatch(dicom.GetData(), dicom.GetSize()); |
474 } | 474 } |
475 }; | 475 }; |
476 #endif | 476 #endif |
477 | 477 |
478 | |
479 bool ReadJson(Json::Value& target, | |
480 const std::string& source); | |
481 | |
482 bool ReadJson(Json::Value& target, | |
483 const void* buffer, | |
484 size_t size); | |
485 | |
486 void WriteFastJson(std::string& target, | |
487 const Json::Value& source); | |
488 | |
489 void WriteStyledJson(std::string& target, | |
490 const Json::Value& source); | |
478 | 491 |
479 bool RestApiGet(Json::Value& result, | 492 bool RestApiGet(Json::Value& result, |
480 const std::string& uri, | 493 const std::string& uri, |
481 bool applyPlugins); | 494 bool applyPlugins); |
482 | 495 |