comparison 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
comparison
equal deleted inserted replaced
3428:6add197274b1 3429:954d15f24366
2840 2840
2841 *p.result = CopyString(hash); 2841 *p.result = CopyString(hash);
2842 } 2842 }
2843 2843
2844 2844
2845 void OrthancPlugins::GetTagName(const void* parameters)
2846 {
2847 const _OrthancPluginGetTagName& p =
2848 *reinterpret_cast<const _OrthancPluginGetTagName*>(parameters);
2849
2850 std::string privateCreator;
2851
2852 if (p.privateCreator != NULL)
2853 {
2854 privateCreator = p.privateCreator;
2855 }
2856
2857 DicomTag tag(p.group, p.element);
2858 *p.result = CopyString(FromDcmtkBridge::GetTagName(tag, privateCreator));
2859 }
2860
2861
2845 void OrthancPlugins::ApplyCreateImage(_OrthancPluginService service, 2862 void OrthancPlugins::ApplyCreateImage(_OrthancPluginService service,
2846 const void* parameters) 2863 const void* parameters)
2847 { 2864 {
2848 const _OrthancPluginCreateImage& p = 2865 const _OrthancPluginCreateImage& p =
2849 *reinterpret_cast<const _OrthancPluginCreateImage*>(parameters); 2866 *reinterpret_cast<const _OrthancPluginCreateImage*>(parameters);
3675 3692
3676 *p.target = CopyString(s); 3693 *p.target = CopyString(s);
3677 return true; 3694 return true;
3678 } 3695 }
3679 3696
3697 case _OrthancPluginService_GetTagName:
3698 GetTagName(parameters);
3699 return true;
3700
3680 default: 3701 default:
3681 return false; 3702 return false;
3682 } 3703 }
3683 } 3704 }
3684 3705