d978c185c0e2c5949713e00c125ce68f9c713718
[iot2.git] / benchmarks / Cpp / Lifxtest / RoomSmart_Stub.hpp
1 #ifndef _ROOMSMART_STUB_HPP__
2 #define _ROOMSMART_STUB_HPP__
3 #include <iostream>
4 #include <thread>
5 #include <mutex>
6 #include <vector>
7 #include <set>
8 #include "IoTRMIComm.hpp"
9 #include "IoTRMICommClient.hpp"
10 #include "IoTRMICommServer.hpp"
11
12 #include "RoomSmart.hpp"
13 #include <fstream>
14
15 using namespace std;
16
17 class RoomSmart_Stub : public RoomSmart
18 {
19         private:
20
21         IoTRMIComm *rmiComm;
22         int objectId = 0;
23         // Synchronization variables
24         bool retValueReceived0 = false;
25         ofstream log;
26
27         public:
28
29         RoomSmart_Stub();
30         RoomSmart_Stub(int _portSend, int _portRecv, const char* _skeletonAddress, int _rev, bool* _bResult);
31         RoomSmart_Stub(IoTRMIComm* _rmiComm, int _objectId);
32         ~RoomSmart_Stub();
33         int getRoomID();
34 };
35 #endif