Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestApi.h @ 974:83622b0f544c
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Jun 2014 14:44:05 +0200 |
parents | e7b1ca0f1e04 |
children | 160dfe770618 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.h Mon Jun 30 14:08:15 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.h Mon Jun 30 14:44:05 2014 +0200 @@ -62,23 +62,23 @@ public: OrthancRestApi(ServerContext& context); - static OrthancRestApi& GetApi(RestApi::Call& call) + static OrthancRestApi& GetApi(RestApiCall& call) { return dynamic_cast<OrthancRestApi&>(call.GetContext()); } - static ServerContext& GetContext(RestApi::Call& call) + static ServerContext& GetContext(RestApiCall& call) { return GetApi(call).context_; } - static ServerIndex& GetIndex(RestApi::Call& call) + static ServerIndex& GetIndex(RestApiCall& call) { return GetContext(call).GetIndex(); } - void AnswerStoredInstance(RestApi::PostCall& call, + void AnswerStoredInstance(RestApiPostCall& call, const std::string& publicId, - StoreStatus status); + StoreStatus status) const; }; }