Adjusting Object IDs to the Java side.
[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 #include <fstream>
13
14 using namespace std;
15
16 class Room_Skeleton : public Room
17 {
18         private:
19
20         Room *mainObj;
21         IoTRMIComm *rmiComm;
22         char* methodBytes;
23         int methodLen;
24         int objectId = 4;
25         static set<int> set0Allowed;
26         // Synchronization variables
27         bool methodReceived = false;
28         bool didAlreadyInitWaitInvoke = false;
29         ofstream log;
30
31         public:
32
33         Room_Skeleton();
34         Room_Skeleton(Room*_mainObj, int _portSend, int _portRecv);
35         Room_Skeleton(Room*_mainObj, IoTRMIComm *rmiComm, int _objectId);
36         ~Room_Skeleton();
37         bool didInitWaitInvoke();
38         int getRoomID();
39         void ___getRoomID(Room_Skeleton* skel);
40         void ___waitRequestInvokeMethod(Room_Skeleton* skel);
41 };
42 set<int> Room_Skeleton::set0Allowed { 0 };
43 #endif