1
2
3
4
5
6 #ifndef CMAJOR_BUILD_CLIENT_EXECUTION_CONTEXT_INCLUDED
7 #define CMAJOR_BUILD_CLIENT_EXECUTION_CONTEXT_INCLUDED
8 #include <cmajor/build/ExecutionContext.hpp>
9 #include <cmajor/build/SocketClient.hpp>
10 #include <thread>
11
12 namespace cmajor { namespace build {
13
14 class ClientExecutionContext : public ExecutionContext
15 {
16 public:
17 ClientExecutionContext(const std::string& serverName);
18 ~ClientExecutionContext();
19 BuildClient* GetClient() override;
20 Connection* GetConnection() override;
21 private:
22 std::unique_ptr<SocketClient> socketClient;
23 };
24
25 } }
26
27 #endif // CMAJOR_BUILD_CLIENT_EXECUTION_CONTEXT_INCLUDED