Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Tue Jul 08 14:06:05 2014 +0200 +++ b/OrthancServer/main.cpp Tue Jul 08 14:34:11 2014 +0200 @@ -71,7 +71,14 @@ { if (dicomFile.size() > 0) { - server_.Store(&dicomFile[0], dicomFile.size(), dicomSummary, dicomJson, remoteAet); + DicomInstanceToStore toStore; + toStore.SetBuffer(dicomFile); + toStore.SetSummary(dicomSummary); + toStore.SetJson(dicomJson); + toStore.SetRemoteAet(remoteAet); + + std::string id; + server_.Store(id, toStore); } } };