Cleaning up drivers/Cpp, Cpp/Lifxtest, virtuals, and iotrmi/C++ (revisiting the C...
[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         return new LabRoom();
9 }
10
11
12 extern "C" void destroyLabRoom(void* t) {
13         LabRoom* lr = (LabRoom*) t;
14         delete lr;
15 }
16
17
18 extern "C" void initLabRoom(void* t) {
19         // TODO: We actually need init() in LabRoom class
20         // But, this is declared here just for the sake of consistency for Sentinel
21         // In this case, we need the symbol "init" when loading object handlers with .so files
22         //LabRoom* lr = (LabRoom*) t;
23         //lr->init();
24 }
25
26
27 // Constructor
28 LabRoom::LabRoom() {
29
30 }
31
32 LabRoom::~LabRoom() {
33
34 }
35
36 int LabRoom::getRoomID() {
37
38         return 0;
39 }