Cleaning up drivers/Cpp, Cpp/Lifxtest, virtuals, and iotrmi/C++ (revisiting the C...
[iot2.git] / benchmarks / drivers / Cpp / LabRoom / Room_Skeleton.hpp
1 #ifndef _ROOM_SKELETON_HPP__
2 #define _ROOM_SKELETON_HPP__
3 #include <iostream>
4 #include "Room.hpp"
5
6 #include <vector>
7 #include <set>
8 #include "IoTRMIComm.hpp"
9 #include "IoTRMICommClient.hpp"
10 #include "IoTRMICommServer.hpp"
11
12 using namespace std;
13
14 class Room_Skeleton : public Room
15 {
16         private:
17
18         Room *mainObj;
19         IoTRMIComm *rmiComm;
20         char* methodBytes;
21         int methodLen;
22         int objectId = 4;
23         static set<int> set0Allowed;
24         // Synchronization variables
25         bool methodReceived = false;
26         bool didAlreadyInitWaitInvoke = false;
27
28         public:
29
30         Room_Skeleton();
31         Room_Skeleton(Room*_mainObj, int _portSend, int _portRecv);
32         Room_Skeleton(Room*_mainObj, IoTRMIComm *rmiComm, int _objectId);
33         ~Room_Skeleton();
34         bool didInitWaitInvoke();
35         int getRoomID();
36         void ___getRoomID(Room_Skeleton* skel);
37         void ___waitRequestInvokeMethod(Room_Skeleton* skel);
38 };
39 set<int> Room_Skeleton::set0Allowed { 0 };
40 #endif