comparison Platforms/Wasm/WasmWebService.h @ 236:f73d722d98c8 am

renamed folder
author am@osimis.io
date Tue, 19 Jun 2018 16:06:32 +0200
parents Platforms/WebAssembly/WasmWebService.h@d7b2590744f8
children b4642964c355
comparison
equal deleted inserted replaced
235:ce4405d98b92 236:f73d722d98c8
1 #pragma once
2
3 #include <Framework/Toolbox/IWebService.h>
4
5 namespace OrthancStone
6 {
7 class WasmWebService : public IWebService
8 {
9 private:
10 std::string base_;
11
12 // Private constructor => Singleton design pattern
13 WasmWebService() :
14 base_("../../")
15 {
16 }
17
18 public:
19 static WasmWebService& GetInstance()
20 {
21 static WasmWebService instance;
22 return instance;
23 }
24
25 void SetBaseUrl(const std::string base);
26
27 virtual void ScheduleGetRequest(ICallback& callback,
28 const std::string& uri,
29 Orthanc::IDynamicObject* payload);
30
31 virtual void SchedulePostRequest(ICallback& callback,
32 const std::string& uri,
33 const std::string& body,
34 Orthanc::IDynamicObject* payload);
35
36 virtual void Start()
37 {
38 }
39
40 virtual void Stop()
41 {
42 }
43 };
44 }