comparison OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 2664:a21b244efb37 jobs

serialization of DicomModalityStoreJob, OrthancPeerStoreJob and ResourceModificationJob
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Jun 2018 21:37:40 +0200
parents c691fcf66071
children 251614c2edac
comparison
equal deleted inserted replaced
2663:228e2783ce83 2664:a21b244efb37
91 91
92 // TODO Remove unneccessary memcpy 92 // TODO Remove unneccessary memcpy
93 std::string postData(call.GetBodyData(), call.GetBodySize()); 93 std::string postData(call.GetBodyData(), call.GetBodySize());
94 94
95 DicomInstanceToStore toStore; 95 DicomInstanceToStore toStore;
96 toStore.GetOrigin().SetRestOrigin(call); 96 toStore.SetOrigin(DicomInstanceOrigin::FromRest(call));
97 toStore.SetBuffer(postData); 97 toStore.SetBuffer(postData);
98 98
99 std::string publicId; 99 std::string publicId;
100 StoreStatus status = context.Store(publicId, toStore); 100 StoreStatus status = context.Store(publicId, toStore);
101 101