-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPOPSensor.ph
More file actions
41 lines (31 loc) · 845 Bytes
/
POPSensor.ph
File metadata and controls
41 lines (31 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
*
*
* @author Laurent Winkler based on work by Valentin Bourqui
* @date Dec 2014
* @brief POPSensor class for the POPWIN project. This object handles the data gathering of a group of sensors.
*
*
*/
#ifndef POPSENSOR_H
#define POPSENSOR_H
#include "SensorProxy.ph"
parclass POPSensor {
classuid(1902);
public:
// POPSensor(int newID, int wanted, int minp) @{ od.search(0, 3, 0); };
POPSensor(POPString x_url) @{ od.url(x_url); };
~POPSensor();
/// Search and create sensor proxys for communication with sensors
void Connect();
/// Subscribe to a sensor
void Subscribe(SensorProxy& x_sensorProxy);
/// Publish data (called by SensorProxy)
void Publish(std::string x_data);
/// Retrieve data gathered
std::string RetrieveData();
private:
std::string m_data;
std::vector<SensorProxy*> m_sensorsProxy;
};
#endif