comparison OrthancServer/OrthancRestApi/OrthancRestApi.h @ 948:e57e08ed510f dicom-rt

integration mainline -> dicom-rt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Jun 2014 13:57:05 +0200
parents 2f7802e95dd0 e7b1ca0f1e04
children
comparison
equal deleted inserted replaced
767:c19552f604d5 948:e57e08ed510f
62 void RegisterRadiotherapy(); 62 void RegisterRadiotherapy();
63 63
64 public: 64 public:
65 OrthancRestApi(ServerContext& context); 65 OrthancRestApi(ServerContext& context);
66 66
67 static OrthancRestApi& GetApi(RestApi::Call& call)
68 {
69 return dynamic_cast<OrthancRestApi&>(call.GetContext());
70 }
71
67 static ServerContext& GetContext(RestApi::Call& call) 72 static ServerContext& GetContext(RestApi::Call& call)
68 { 73 {
69 OrthancRestApi& that = dynamic_cast<OrthancRestApi&>(call.GetContext()); 74 return GetApi(call).context_;
70 return that.context_;
71 } 75 }
72 76
73 static ServerIndex& GetIndex(RestApi::Call& call) 77 static ServerIndex& GetIndex(RestApi::Call& call)
74 { 78 {
75 return GetContext(call).GetIndex(); 79 return GetContext(call).GetIndex();
76 } 80 }
81
82 void AnswerStoredInstance(RestApi::PostCall& call,
83 const std::string& publicId,
84 StoreStatus status);
77 }; 85 };
78 } 86 }