Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.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 | ccc470091ea6 |
children | 8aa6aef11b70 |
comparison
equal
deleted
inserted
replaced
2663:228e2783ce83 | 2664:a21b244efb37 |
---|---|
241 static void StoreCreatedInstance(std::string& id /* out */, | 241 static void StoreCreatedInstance(std::string& id /* out */, |
242 RestApiPostCall& call, | 242 RestApiPostCall& call, |
243 ParsedDicomFile& dicom) | 243 ParsedDicomFile& dicom) |
244 { | 244 { |
245 DicomInstanceToStore toStore; | 245 DicomInstanceToStore toStore; |
246 toStore.GetOrigin().SetRestOrigin(call); | 246 toStore.SetOrigin(DicomInstanceOrigin::FromRest(call)); |
247 toStore.SetParsedDicomFile(dicom); | 247 toStore.SetParsedDicomFile(dicom); |
248 | 248 |
249 ServerContext& context = OrthancRestApi::GetContext(call); | 249 ServerContext& context = OrthancRestApi::GetContext(call); |
250 StoreStatus status = context.Store(id, toStore); | 250 StoreStatus status = context.Store(id, toStore); |
251 | 251 |