comparison Plugins/Engine/OrthancPlugins.cpp @ 2640:c691fcf66071 jobs

ResourceModificationJob
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 May 2018 16:30:17 +0200
parents 2f3007bf0708
children a21b244efb37
comparison
equal deleted inserted replaced
2639:75a404e40323 2640:c691fcf66071
1542 *reinterpret_cast<DicomInstanceToStore*>(p.instance); 1542 *reinterpret_cast<DicomInstanceToStore*>(p.instance);
1543 1543
1544 switch (service) 1544 switch (service)
1545 { 1545 {
1546 case _OrthancPluginService_GetInstanceRemoteAet: 1546 case _OrthancPluginService_GetInstanceRemoteAet:
1547 *p.resultString = instance.GetRemoteAet(); 1547 *p.resultString = instance.GetOrigin().GetRemoteAet();
1548 return; 1548 return;
1549 1549
1550 case _OrthancPluginService_GetInstanceSize: 1550 case _OrthancPluginService_GetInstanceSize:
1551 *p.resultInt64 = instance.GetBufferSize(); 1551 *p.resultInt64 = instance.GetBufferSize();
1552 return; 1552 return;
1583 *p.resultStringToFree = CopyString(s); 1583 *p.resultStringToFree = CopyString(s);
1584 return; 1584 return;
1585 } 1585 }
1586 1586
1587 case _OrthancPluginService_GetInstanceOrigin: // New in Orthanc 0.9.5 1587 case _OrthancPluginService_GetInstanceOrigin: // New in Orthanc 0.9.5
1588 *p.resultOrigin = Plugins::Convert(instance.GetRequestOrigin()); 1588 *p.resultOrigin = Plugins::Convert(instance.GetOrigin().GetRequestOrigin());
1589 return; 1589 return;
1590 1590
1591 default: 1591 default:
1592 throw OrthancException(ErrorCode_InternalError); 1592 throw OrthancException(ErrorCode_InternalError);
1593 } 1593 }