Mercurial > hg > orthanc-book
comparison Sphinx/source/developers/creating-plugins.rst @ 872:f72b2dd172da Orthanc-1.11.2
Orthanc 1.11.2
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 31 Aug 2022 12:06:15 +0200 |
parents | 3e8a3a900e9e |
children | 6474e299918b |
comparison
equal
deleted
inserted
replaced
871:ab39093b898f | 872:f72b2dd172da |
---|---|
13 <plugins>`. | 13 <plugins>`. |
14 | 14 |
15 Native Orthanc plugins must use the `plugin SDK | 15 Native Orthanc plugins must use the `plugin SDK |
16 <https://sdk.orthanc-server.com/>`__ whose interface is available as a | 16 <https://sdk.orthanc-server.com/>`__ whose interface is available as a |
17 `C header | 17 `C header |
18 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.1/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h>`__. | 18 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.2/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h>`__. |
19 As a consequence, an Orthanc plugin will typically be written using C | 19 As a consequence, an Orthanc plugin will typically be written using C |
20 or C++, although it is also possible to create native plugins using | 20 or C++, although it is also possible to create native plugins using |
21 languages that feature compatibility with C headers and with `FFI of | 21 languages that feature compatibility with C headers and with `FFI of |
22 the C language | 22 the C language |
23 <https://en.wikipedia.org/wiki/Foreign_function_interface>`__ (such as | 23 <https://en.wikipedia.org/wiki/Foreign_function_interface>`__ (such as |
94 | 94 |
95 Any plugin project should include the **official C header** file | 95 Any plugin project should include the **official C header** file |
96 that is part of the Orthanc source distribution: | 96 that is part of the Orthanc source distribution: |
97 | 97 |
98 * `Plugins/Include/orthanc/OrthancCPlugin.h | 98 * `Plugins/Include/orthanc/OrthancCPlugin.h |
99 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.1/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h>`__ | 99 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.2/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h>`__ |
100 | 100 |
101 `Online documentation <https://sdk.orthanc-server.com/>`__ for this C | 101 `Online documentation <https://sdk.orthanc-server.com/>`__ for this C |
102 header is available, as generated by `Doxygen | 102 header is available, as generated by `Doxygen |
103 <https://en.wikipedia.org/wiki/Doxygen>`__. | 103 <https://en.wikipedia.org/wiki/Doxygen>`__. |
104 | 104 |
108 <https://www.boost.org/>`__ and `JsonCpp | 108 <https://www.boost.org/>`__ and `JsonCpp |
109 <https://github.com/open-source-parsers/jsoncpp>`__ if macro | 109 <https://github.com/open-source-parsers/jsoncpp>`__ if macro |
110 ``HAS_ORTHANC_EXCEPTION`` is set to ``0``: | 110 ``HAS_ORTHANC_EXCEPTION`` is set to ``0``: |
111 | 111 |
112 * `Plugins/Samples/Common/OrthanPluginCppWrapper.h | 112 * `Plugins/Samples/Common/OrthanPluginCppWrapper.h |
113 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.1/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h>`__ | 113 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.2/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h>`__ |
114 * `Plugins/Samples/Common/OrthanPluginCppWrapper.cpp | 114 * `Plugins/Samples/Common/OrthanPluginCppWrapper.cpp |
115 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.1/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp>`__ | 115 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.2/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp>`__ |
116 * `Plugins/Samples/Common/OrthanPluginException.h | 116 * `Plugins/Samples/Common/OrthanPluginException.h |
117 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.1/OrthancServer/Plugins/Samples/Common/OrthancPluginException.h>`__ | 117 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.2/OrthancServer/Plugins/Samples/Common/OrthancPluginException.h>`__ |