annotate RenderingPlugin/Sources/OrthancPluginConnection.h @ 2061:6ea5f40ea0e9 deep-learning

added ImageProcessingProgram
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 May 2023 16:34:34 +0200
parents ddaee6b96501
children 07964689cb0b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1885
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Stone of Orthanc
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 *
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 * This program is free software: you can redistribute it and/or
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * modify it under the terms of the GNU General Public License as
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * published by the Free Software Foundation, either version 3 of the
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 * License, or (at your option) any later version.
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 *
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful, but
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 * General Public License for more details.
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 *
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 **/
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 #pragma once
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 #include "../../OrthancStone/Sources/Toolbox/OrthancDatasets/IOrthancConnection.h"
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 #include <Compatibility.h>
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 namespace OrthancStone
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 {
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 class OrthancPluginConnection : public IOrthancConnection
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 {
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 public:
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 virtual void RestApiGet(std::string& result,
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 const std::string& uri) ORTHANC_OVERRIDE;
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 virtual void RestApiPost(std::string& result,
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 const std::string& uri,
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 const std::string& body) ORTHANC_OVERRIDE;
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 virtual void RestApiPut(std::string& result,
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 const std::string& uri,
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 const std::string& body) ORTHANC_OVERRIDE;
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 virtual void RestApiDelete(const std::string& uri) ORTHANC_OVERRIDE;
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 };
ddaee6b96501 retrieving rt-struct info
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 }