comparison 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
comparison
equal deleted inserted replaced
972:2047e6f033bd 974:83622b0f544c
60 void RegisterArchive(); 60 void RegisterArchive();
61 61
62 public: 62 public:
63 OrthancRestApi(ServerContext& context); 63 OrthancRestApi(ServerContext& context);
64 64
65 static OrthancRestApi& GetApi(RestApi::Call& call) 65 static OrthancRestApi& GetApi(RestApiCall& call)
66 { 66 {
67 return dynamic_cast<OrthancRestApi&>(call.GetContext()); 67 return dynamic_cast<OrthancRestApi&>(call.GetContext());
68 } 68 }
69 69
70 static ServerContext& GetContext(RestApi::Call& call) 70 static ServerContext& GetContext(RestApiCall& call)
71 { 71 {
72 return GetApi(call).context_; 72 return GetApi(call).context_;
73 } 73 }
74 74
75 static ServerIndex& GetIndex(RestApi::Call& call) 75 static ServerIndex& GetIndex(RestApiCall& call)
76 { 76 {
77 return GetContext(call).GetIndex(); 77 return GetContext(call).GetIndex();
78 } 78 }
79 79
80 void AnswerStoredInstance(RestApi::PostCall& call, 80 void AnswerStoredInstance(RestApiPostCall& call,
81 const std::string& publicId, 81 const std::string& publicId,
82 StoreStatus status); 82 StoreStatus status) const;
83 }; 83 };
84 } 84 }