Mercurial > hg > orthanc-stone
comparison Platforms/Generic/WebServiceGetCommand.h @ 246:5470b15f7cf2 am
first usage of boost::signals2
author | am@osimis.io |
---|---|
date | Tue, 26 Jun 2018 13:55:17 +0200 |
parents | 5412adf19980 |
children | 3d523c9a8f0d |
comparison
equal
deleted
inserted
replaced
245:e802578e1554 | 246:5470b15f7cf2 |
---|---|
26 #include "../../Framework/Toolbox/IWebService.h" | 26 #include "../../Framework/Toolbox/IWebService.h" |
27 | 27 |
28 #include <Core/WebServiceParameters.h> | 28 #include <Core/WebServiceParameters.h> |
29 | 29 |
30 #include <memory> | 30 #include <memory> |
31 #include <boost/signals2.hpp> | |
31 | 32 |
32 namespace OrthancStone | 33 namespace OrthancStone |
33 { | 34 { |
34 class WebServiceGetCommand : public IOracleCommand | 35 class WebServiceGetCommand : public IOracleCommand |
35 { | 36 { |
48 Orthanc::IDynamicObject* payload /* takes ownership */); | 49 Orthanc::IDynamicObject* payload /* takes ownership */); |
49 | 50 |
50 virtual void Execute(); | 51 virtual void Execute(); |
51 | 52 |
52 virtual void Commit(); | 53 virtual void Commit(); |
54 | |
55 boost::signals2::signal<void (const std::string& uri, | |
56 const void* answer, | |
57 size_t answerSize, | |
58 Orthanc::IDynamicObject* payload)> SignalSuccess; | |
59 | |
53 }; | 60 }; |
54 } | 61 } |