Leosac
0.8.0
Open Source Access Control
|
Abstraction of an External Server device. More...
#include <ExternalServer.hpp>
Public Member Functions | |
ExternalServer () | |
ExternalServer (const std::string &host, uint16_t port) | |
void | validation_callback (odb::callback_event, odb::database &) const override |
std::string | host () const |
void | host (const std::string host) |
uint16_t | port () const |
void | port (uint16_t port) |
Public Member Functions inherited from Leosac::Hardware::Device | |
Device () | |
Device (DeviceClass device_class) | |
virtual | ~Device ()=default |
UUID | id () const |
const std::string & | name () const |
void | name (const std::string &name) |
DeviceClass | device_class () const |
void | device_class (DeviceClass d) |
bool | enabled () const |
void | enabled (bool e) |
uint64_t | odb_version () const |
Protected Attributes | |
std::string | host_ |
uint16_t | port_ |
Abstraction of an External Server device.
Definition at line 38 of file ExternalServer.hpp.
Leosac::Hardware::ExternalServer::ExternalServer | ( | ) |
Definition at line 27 of file ExternalServer.cpp.
Leosac::Hardware::ExternalServer::ExternalServer | ( | const std::string & | host, |
uint16_t | port | ||
) |
Definition at line 33 of file ExternalServer.cpp.
std::string Leosac::Hardware::ExternalServer::host | ( | ) | const |
Definition at line 40 of file ExternalServer.cpp.
void Leosac::Hardware::ExternalServer::host | ( | const std::string | host | ) |
Definition at line 45 of file ExternalServer.cpp.
uint16_t Leosac::Hardware::ExternalServer::port | ( | ) | const |
Definition at line 50 of file ExternalServer.cpp.
void Leosac::Hardware::ExternalServer::port | ( | uint16_t | port | ) |
Definition at line 55 of file ExternalServer.cpp.
|
overridevirtual |
Reimplemented from Leosac::Hardware::Device.
Reimplemented in Leosac::Module::Mqtt::MqttServerConfig.
Definition at line 60 of file ExternalServer.cpp.
|
protected |
Definition at line 57 of file ExternalServer.hpp.
|
protected |
Definition at line 58 of file ExternalServer.hpp.