#include <ApiCommunicationDriver.hpp>
|
| ApiCommunicationDriver ()=default |
|
void | setApiRoute (const std::string_view apiRoute) |
|
std::string | getApiRoute () const |
|
bool | post (const JSON &body, const std::optional< HeaderFields > &headers=std::nullopt, const std::optional< std::reference_wrapper< JSON > > &responseBody=std::nullopt, const std::optional< std::string_view > &route=std::nullopt) const |
|
bool | get (JSON &responseBody, const std::unordered_map< std::string_view, std::string > &queryParams={}, const std::optional< std::string_view > &route=std::nullopt) const |
|
bool | DELETE (JSON &responseBody, const std::unordered_map< std::string_view, std::string > &queryParams={}, const std::optional< std::string_view > &route=std::nullopt) const |
|
bool | containsNetworkConfig (iv::types::ipAddress ip, iv::types::ipPort port) const |
|
void | configure (const iv::model::comms::NetworkData &commConfig) override |
|
iv::comms::eResponse | init () override |
|
iv::comms::eResponse | end () override |
|
iv::comms::eResponse | reconnect () override |
|
iv::comms::eResponse | start () override |
|
iv::comms::eResponse | stop () override |
|
bool | isOnline () override |
|
◆ ApiCommunicationDriver()
iv::comms::api::ApiCommunicationDriver::ApiCommunicationDriver |
( |
| ) |
|
|
default |
◆ configure()
◆ containsNetworkConfig()
◆ DELETE()
bool iv::comms::api::ApiCommunicationDriver::DELETE |
( |
JSON & | responseBody, |
|
|
const std::unordered_map< std::string_view, std::string > & | queryParams = {}, |
|
|
const std::optional< std::string_view > & | route = std::nullopt ) const |
◆ end()
◆ get()
bool iv::comms::api::ApiCommunicationDriver::get |
( |
JSON & | responseBody, |
|
|
const std::unordered_map< std::string_view, std::string > & | queryParams = {}, |
|
|
const std::optional< std::string_view > & | route = std::nullopt ) const |
◆ getApiRoute()
std::string iv::comms::api::ApiCommunicationDriver::getApiRoute |
( |
| ) |
const |
|
inlinenodiscard |
◆ init()
◆ isOnline()
bool iv::comms::api::ApiCommunicationDriver::isOnline |
( |
| ) |
|
|
overridevirtual |
◆ post()
bool iv::comms::api::ApiCommunicationDriver::post |
( |
const JSON & | body, |
|
|
const std::optional< HeaderFields > & | headers = std::nullopt, |
|
|
const std::optional< std::reference_wrapper< JSON > > & | responseBody = std::nullopt, |
|
|
const std::optional< std::string_view > & | route = std::nullopt ) const |
◆ reconnect()
◆ setApiRoute()
void iv::comms::api::ApiCommunicationDriver::setApiRoute |
( |
const std::string_view | apiRoute | ) |
|
|
inline |
◆ start()
◆ stop()
◆ m_apiBaseUrls
◆ m_apiRoute
std::string iv::comms::api::ApiCommunicationDriver::m_apiRoute |
|
private |
◆ m_commDriverMutex
std::mutex iv::comms::api::ApiCommunicationDriver::m_commDriverMutex |
|
mutableprivate |
◆ m_isOnline
bool iv::comms::ICommunicationDriver::m_isOnline {false} |
|
protectedinherited |
◆ m_lastTimeReconnected
◆ m_state
The documentation for this class was generated from the following files: