Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
795:d466b3606aca | 796:e7b1ca0f1e04 |
---|---|
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) | |
66 { | |
67 return dynamic_cast<OrthancRestApi&>(call.GetContext()); | |
68 } | |
69 | |
65 static ServerContext& GetContext(RestApi::Call& call) | 70 static ServerContext& GetContext(RestApi::Call& call) |
66 { | 71 { |
67 OrthancRestApi& that = dynamic_cast<OrthancRestApi&>(call.GetContext()); | 72 return GetApi(call).context_; |
68 return that.context_; | |
69 } | 73 } |
70 | 74 |
71 static ServerIndex& GetIndex(RestApi::Call& call) | 75 static ServerIndex& GetIndex(RestApi::Call& call) |
72 { | 76 { |
73 return GetContext(call).GetIndex(); | 77 return GetContext(call).GetIndex(); |
74 } | 78 } |
79 | |
80 void AnswerStoredInstance(RestApi::PostCall& call, | |
81 const std::string& publicId, | |
82 StoreStatus status); | |
75 }; | 83 }; |
76 } | 84 } |