comparison Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h @ 132:4cf3c2bc119f

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Aug 2023 11:55:33 +0200
parents 5a60cbbe9bb0
children 93c6f12bf339
comparison
equal deleted inserted replaced
131:c55b0583084b 132:4cf3c2bc119f
1262 size_t size); 1262 size_t size);
1263 #endif 1263 #endif
1264 1264
1265 ~DicomInstance(); 1265 ~DicomInstance();
1266 1266
1267 const OrthancPluginDicomInstance* GetObject() const
1268 {
1269 return instance_;
1270 }
1271
1267 std::string GetRemoteAet() const; 1272 std::string GetRemoteAet() const;
1268 1273
1269 const void* GetBuffer() const 1274 const void* GetBuffer() const
1270 { 1275 {
1271 return OrthancPluginGetInstanceData(GetGlobalContext(), instance_); 1276 return OrthancPluginGetInstanceData(GetGlobalContext(), instance_);
1315 1320
1316 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 7, 0) 1321 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 7, 0)
1317 static DicomInstance* Transcode(const void* buffer, 1322 static DicomInstance* Transcode(const void* buffer,
1318 size_t size, 1323 size_t size,
1319 const std::string& transferSyntax); 1324 const std::string& transferSyntax);
1325 #endif
1326
1327 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 1)
1328 static DicomInstance* Load(const std::string& instanceId,
1329 OrthancPluginLoadDicomInstanceMode mode);
1320 #endif 1330 #endif
1321 }; 1331 };
1322 1332
1323 // helper method to convert Http headers from the plugin SDK to a std::map 1333 // helper method to convert Http headers from the plugin SDK to a std::map
1324 void GetHttpHeaders(std::map<std::string, std::string>& result, const OrthancPluginHttpRequest* request); 1334 void GetHttpHeaders(std::map<std::string, std::string>& result, const OrthancPluginHttpRequest* request);