Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <IApiCommunicationProtocol.hpp>
Classes | |
struct | ValuesApi |
Public Member Functions | |
virtual | ~IApiCommunicationProtocol ()=default |
virtual void | registerValue (const std::shared_ptr< iv::comms::api::ILoggerMessage > &message)=0 |
Registers an API message without blocking the thread. | |
virtual bool | sendValues ()=0 |
Send all registered messages to the API. | |
virtual iv::comms::api::ApiResponse | getValues (const IApiQueryParamsBuilder &queryParams) const =0 |
Get values from the API. | |
virtual iv::comms::api::ApiDeleteResponse | deleteValues (const IApiQueryParamsBuilder &queryParams) const =0 |
Delete values from the API. | |
iv::comms::api::ApiPingResponse | ping () const |
bool | wipe () const |
bool | isEnabled () const |
Protected Attributes | |
bool | m_sendToCloud {false} |
bool | m_isEnabled {true} |
std::shared_ptr< iv::model::comms::NetworkData > | m_networkData |
std::weak_ptr< iv::comms::api::ApiCommunicationDriver > | m_apiDriver |
std::weak_ptr< iv::channels::AbstractChannel > | m_heartbeatChannel |
std::weak_ptr< iv::diamar::AppFailuresLoggerManager > | m_appFailuresLoggerManager |
|
virtualdefault |
|
nodiscardpure virtual |
Delete values from the API.
queryParams |
Implemented in iv::comms::api::dataLogger::ApiDataLoggerCommunicationProtocol, iv::comms::api::eventLogger::ApiEventLoggerCommunicationProtocol, and iv::comms::api::historyLogger::ApiHistoryLoggerCommunicationProtocol.
|
nodiscardpure virtual |
Get values from the API.
queryParams |
Implemented in iv::comms::api::dataLogger::ApiDataLoggerCommunicationProtocol, iv::comms::api::eventLogger::ApiEventLoggerCommunicationProtocol, and iv::comms::api::historyLogger::ApiHistoryLoggerCommunicationProtocol.
|
nodiscard |
|
nodiscard |
|
pure virtual |
Registers an API message without blocking the thread.
message |
Implemented in iv::comms::api::dataLogger::ApiDataLoggerCommunicationProtocol, iv::comms::api::eventLogger::ApiEventLoggerCommunicationProtocol, and iv::comms::api::historyLogger::ApiHistoryLoggerCommunicationProtocol.
|
pure virtual |
Send all registered messages to the API.
Implemented in iv::comms::api::dataLogger::ApiDataLoggerCommunicationProtocol, iv::comms::api::eventLogger::ApiEventLoggerCommunicationProtocol, and iv::comms::api::historyLogger::ApiHistoryLoggerCommunicationProtocol.
|
nodiscard |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Boolean that determines if the API should send data to the cloud on request.