comparison Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h @ 193:3236894320d6

upgrade to year 2021
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Jan 2021 17:40:27 +0100
parents e712ff3eede3
children c7dc70a0a477
comparison
equal deleted inserted replaced
192:031aee96d2da 193:3236894320d6
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