Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 1005:84b6d7bca6db lua-scripting
refactoring of ServerContext::Store
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 08 Jul 2014 14:34:11 +0200 |
parents | cf52f3bcb2b3 |
children | 564e39d6df13 |
comparison
equal
deleted
inserted
replaced
1004:a226e0959d8b | 1005:84b6d7bca6db |
---|---|
69 const Json::Value& dicomJson, | 69 const Json::Value& dicomJson, |
70 const std::string& remoteAet) | 70 const std::string& remoteAet) |
71 { | 71 { |
72 if (dicomFile.size() > 0) | 72 if (dicomFile.size() > 0) |
73 { | 73 { |
74 server_.Store(&dicomFile[0], dicomFile.size(), dicomSummary, dicomJson, remoteAet); | 74 DicomInstanceToStore toStore; |
75 toStore.SetBuffer(dicomFile); | |
76 toStore.SetSummary(dicomSummary); | |
77 toStore.SetJson(dicomJson); | |
78 toStore.SetRemoteAet(remoteAet); | |
79 | |
80 std::string id; | |
81 server_.Store(id, toStore); | |
75 } | 82 } |
76 } | 83 } |
77 }; | 84 }; |
78 | 85 |
79 | 86 |