Qore EmpathicBuildingDataProvider Module Reference 1.1
Loading...
Searching...
No Matches
EmpathicBuildingWatchSensorDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
28
30const EVENT_EB_SENSOR = "sensor-event";
31
33class EmpathicBuildingWatchSensorDataProvider : public EmpathicBuildingDataProviderBase, public DataProvider::DelayedObservable {
34
35public:
37 const ProviderInfo = ...;
38
39
42
43
45 const RequestType = AbstractDataProviderTypeMap."nothing";
46
49
51 const PollInterval = 10000;
52
53protected:
55 hash<auto> org;
56
58 hash<auto> loc;
59
61 hash<auto> sensor;
62
65
67 int tid;
68
70 Counter cnt();
71
73 Mutex m();
74
76 Condition cond();
77
80
83
84public:
85
87 constructor(RestClient::RestClient rest, *Logger::LoggerInterface logger, hash<auto> org, hash<auto> loc, hash<auto> sensor) ;
88
89
92
93
95 string getName();
96
97
99 *string getDesc();
100
101
103
106
107
109
112
113
115protected:
117public:
118
119
121protected:
123public:
124
125
127protected:
129public:
130
131
133
137protected:
138 hash<string, hash<DataProviderMessageInfo>> getEventTypesImpl();
139public:
140
141
143protected:
144 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
145public:
146
147
149protected:
150 hash<auto> getEvent(*reference<hash<auto>> info);
151public:
152
153
155
164protected:
165 auto getExampleEventDataImpl(string event_id);
166public:
167
168};
169};
The EmpathicBuilding data provider class.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:28
RestClient::RestClient rest
The REST client object for API calls.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:40
The EmpathicBuilding watch sensor data provider class.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:33
const ProviderSummaryInfo
Provider summary info.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:41
constructor(RestClient::RestClient rest, *Logger::LoggerInterface logger, hash< auto > org, hash< auto > loc, hash< auto > sensor)
Create the object from the REST connection.
observersReady()
Called when all observers have been added to the object.
hash< string, hash< DataProviderMessageInfo > > getEventTypesImpl()
Returns a hash of all supported event types.
int tid
TID of the I/O thread.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:67
*string getDesc()
Returns the data provider description.
hash< auto > org
Org data.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:55
hash< auto > loc
Loc data.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:58
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
hash< auto > getEvent(*reference< hash< auto > > info)
Returns event data.
const PollInterval
Default poll interval in milliseconds.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:51
const ProviderInfo
Provider info.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:37
hash< auto > sensor
Sensor data.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:61
bool stop_flag
Stop flag.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:79
*code start_thread
callable value to start a new thread; must take a callable object as a parameter and return an intege...
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:64
auto getExampleEventDataImpl(string event_id)
Returns example data for the given observable event.
const RequestType
Request type.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:45
timeout poll_interval_ms
Poll interval in milliseconds.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:82
const ResponseType
Response type.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:48
Qore EmpathicBuildingDataProvider module definition.
Definition EmpathicBuildingDataProvider.qc.dox.h:26
const EmpathicBuildingSensorType
Sensor data type constant.
Definition EmpathicBuildingSensorDataProvider.qc.dox.h:162
const EVENT_EB_SENSOR
Empathiic Building sensor event constant.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:30