Qore EmpathicBuildingDataProvider Module Reference 1.1
Loading...
Searching...
No Matches
EmpathicBuildingDataProvider::EmpathicBuildingSensorsDataProvider Class Reference

The parent class for Empathic Building sensors. More...

#include <EmpathicBuildingSensorsDataProvider.qc.dox.h>

Inheritance diagram for EmpathicBuildingDataProvider::EmpathicBuildingSensorsDataProvider:
[legend]

Public Member Methods

 constructor (RestClient::RestClient rest, *Logger::LoggerInterface logger, hash< auto > org, hash< auto > loc)
 Creates the object from a REST connection.
 
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo ()
 Return data provider summary info.
 
*string getDesc ()
 Returns the data provider description.
 
string getName ()
 Returns the data provider name.
 
hash< DataProvider::DataProviderInfo > getStaticInfoImpl ()
 Returns data provider static info.
 
- Public Member Methods inherited from EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase
 constructor ()
 Creates the object.
 
 constructor (RestClient::RestClient rest, *Logger::LoggerInterface logger)
 Creates the object.
 
 setLogger (*LoggerInterface logger)
 Accepts a LoggerInterface object for logging (or clears it)
 
 updateConnectionObjects (object conn, object connobj)
 Update any connection used by the data provider.
 

Public Attributes

const ProviderInfo = ...
 Provider info.
 
const ProviderSummaryInfo = ...
 Provider summary info.
 
- Public Attributes inherited from EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase
const MaxIoRetries = 5
 Max retries.
 
const RetrySet = ...
 IO errors for REST retries.
 

Private Member Methods

hash< string, hash< auto > > getAllSensors ()
 Returns access info for all tables.
 
*AbstractDataProvider getChildProviderImpl (string name)
 Returns the given child provider or NOTHING if the given child is unknown.
 
*list< string > getChildProviderNamesImpl ()
 Returns a list of child data provider names, if any.
 
- Private Member Methods inherited from EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase
hash< auto > doRestCommand (string method, string path, auto body, reference< hash< auto > > info)
 Makes a REST call and returns the response.
 
bool retry (hash< ExceptionInfo > ex, reference< int > retries)
 Returns True if the error indicates that the operation should be retried.
 

Private Attributes

hash< auto > loc
 Loc data.
 
hash< auto > org
 Org info.
 
hash< string, hash< auto > > sensormap
 Sensor map.
 
- Private Attributes inherited from EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase
RestClient::RestClient rest
 The REST client object for API calls.
 

Additional Inherited Members

- Static Public Member Methods inherited from EmpathicBuildingDataProvider::EmpathicBuildingDataProviderBase
static date getTimestamp (int epoch_ms)
 Converts a Haltian ms epoch offset to a date/time value.
 

Detailed Description

The parent class for Empathic Building sensors.

Member Function Documentation

◆ getChildProviderImpl()

*AbstractDataProvider EmpathicBuildingDataProvider::EmpathicBuildingSensorsDataProvider::getChildProviderImpl ( string  name)
private

Returns the given child provider or NOTHING if the given child is unknown.

Returns
the given child provider or NOTHING if the given child is unknown
See also
getChildProviderEx()

◆ getChildProviderNamesImpl()

*list< string > EmpathicBuildingDataProvider::EmpathicBuildingSensorsDataProvider::getChildProviderNamesImpl ( )
private

Returns a list of child data provider names, if any.

Returns
a list of child data provider names, if any