diff Plugins/Engine/OrthancPlugins.cpp @ 3429:954d15f24366

new function in SDK: OrthancPluginGetTagName()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Jun 2019 18:04:02 +0200
parents 0a0e7eca95ae
children dd1e68f2d0c0
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp	Mon Jun 17 09:44:45 2019 +0200
+++ b/Plugins/Engine/OrthancPlugins.cpp	Mon Jun 17 18:04:02 2019 +0200
@@ -2842,6 +2842,23 @@
   }
 
 
+  void OrthancPlugins::GetTagName(const void* parameters)
+  {
+    const _OrthancPluginGetTagName& p =
+      *reinterpret_cast<const _OrthancPluginGetTagName*>(parameters);
+
+    std::string privateCreator;
+    
+    if (p.privateCreator != NULL)
+    {
+      privateCreator = p.privateCreator;
+    }
+   
+    DicomTag tag(p.group, p.element);
+    *p.result = CopyString(FromDcmtkBridge::GetTagName(tag, privateCreator));
+  }
+
+
   void OrthancPlugins::ApplyCreateImage(_OrthancPluginService service,
                                         const void* parameters)
   {
@@ -3677,6 +3694,10 @@
         return true;
       }
 
+      case _OrthancPluginService_GetTagName:
+        GetTagName(parameters);
+        return true;
+
       default:
         return false;
     }