comparison Applications/StoneApplicationContext.h @ 1060:e146743f6cdc broker

removing file MessageBroker.h
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 Oct 2019 17:20:41 +0200
parents c35e98d22764
children 04a95ee91327
comparison
equal deleted inserted replaced
1059:e713f1a99861 1060:e146743f6cdc
57 // the WebService is provided by the OracleWebService (a C++ Http client) 57 // the WebService is provided by the OracleWebService (a C++ Http client)
58 58
59 class StoneApplicationContext : public boost::noncopyable 59 class StoneApplicationContext : public boost::noncopyable
60 { 60 {
61 private: 61 private:
62 MessageBroker& broker_;
63 Deprecated::IWebService* webService_; 62 Deprecated::IWebService* webService_;
64 Deprecated::IDelayedCallExecutor* delayedCallExecutor_; 63 Deprecated::IDelayedCallExecutor* delayedCallExecutor_;
65 std::auto_ptr<Deprecated::OrthancApiClient> orthanc_; 64 std::auto_ptr<Deprecated::OrthancApiClient> orthanc_;
66 std::string orthancBaseUrl_; 65 std::string orthancBaseUrl_;
67 66
68 void InitializeOrthanc(); 67 void InitializeOrthanc();
69 68
70 public: 69 public:
71 StoneApplicationContext(MessageBroker& broker) : 70 StoneApplicationContext() :
72 broker_(broker),
73 webService_(NULL), 71 webService_(NULL),
74 delayedCallExecutor_(NULL) 72 delayedCallExecutor_(NULL)
75 { 73 {
76 } 74 }
77 75
78 virtual ~StoneApplicationContext() 76 virtual ~StoneApplicationContext()
79 { 77 {
80 }
81
82 MessageBroker& GetMessageBroker()
83 {
84 return broker_;
85 } 78 }
86 79
87 bool HasWebService() const 80 bool HasWebService() const
88 { 81 {
89 return webService_ != NULL; 82 return webService_ != NULL;