Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestApi.h @ 796:e7b1ca0f1e04
creation of dicom files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 06 May 2014 12:09:11 +0200 |
parents | 5197fd35333c |
children | e57e08ed510f 83622b0f544c |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.h Tue May 06 11:01:30 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.h Tue May 06 12:09:11 2014 +0200 @@ -62,15 +62,23 @@ public: OrthancRestApi(ServerContext& context); + static OrthancRestApi& GetApi(RestApi::Call& call) + { + return dynamic_cast<OrthancRestApi&>(call.GetContext()); + } + static ServerContext& GetContext(RestApi::Call& call) { - OrthancRestApi& that = dynamic_cast<OrthancRestApi&>(call.GetContext()); - return that.context_; + return GetApi(call).context_; } static ServerIndex& GetIndex(RestApi::Call& call) { return GetContext(call).GetIndex(); } + + void AnswerStoredInstance(RestApi::PostCall& call, + const std::string& publicId, + StoreStatus status); }; }