3107a501d5321a18bc4bed995cb42be01b7250ca
[iot2.git] / benchmarks / drivers / Cpp / LabRoom / LabRoom.cpp
1 #include <iostream>
2 #include "LabRoom.hpp"
3
4 using namespace std;
5
6 // External functions to create, destroy and initialize this class object
7 extern "C" void* createLabRoom(void** params) {
8         // Arguments: IoTSet<IoTDeviceAddress*>* _devAddress, string macAddress
9         return new LabRoom();
10 }
11
12
13 extern "C" void destroyLabRoom(void* t) {
14         LabRoom* lr = (LabRoom*) t;
15         delete lr;
16 }
17
18
19 extern "C" void initLabRoom(void* t) {
20         // TODO: We actually need init() in LabRoom class
21         // But, this is declared here just for the sake of consistency for Sentinel
22         // In this case, we need the symbol "init" when loading object handlers with .so files
23         //LabRoom* lr = (LabRoom*) t;
24         //lr->init();
25 }
26
27
28 // Constructor
29 LabRoom::LabRoom() {
30
31 }
32
33 LabRoom::~LabRoom() {
34
35 }
36
37 int LabRoom::getRoomID() {
38
39         return 0;
40 }