Leosac  0.8.0
Open Source Access Control
Leosac::Hardware::ExternalServer Class Reference

Abstraction of an External Server device. More...

#include <ExternalServer.hpp>

+ Inheritance diagram for Leosac::Hardware::ExternalServer:
+ Collaboration diagram for Leosac::Hardware::ExternalServer:

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_
 

Detailed Description

Abstraction of an External Server device.

Definition at line 38 of file ExternalServer.hpp.

Constructor & Destructor Documentation

◆ ExternalServer() [1/2]

Leosac::Hardware::ExternalServer::ExternalServer ( )

Definition at line 27 of file ExternalServer.cpp.

◆ ExternalServer() [2/2]

Leosac::Hardware::ExternalServer::ExternalServer ( const std::string &  host,
uint16_t  port 
)

Definition at line 33 of file ExternalServer.cpp.

Member Function Documentation

◆ host() [1/2]

std::string Leosac::Hardware::ExternalServer::host ( ) const

Definition at line 40 of file ExternalServer.cpp.

◆ host() [2/2]

void Leosac::Hardware::ExternalServer::host ( const std::string  host)

Definition at line 45 of file ExternalServer.cpp.

◆ port() [1/2]

uint16_t Leosac::Hardware::ExternalServer::port ( ) const

Definition at line 50 of file ExternalServer.cpp.

◆ port() [2/2]

void Leosac::Hardware::ExternalServer::port ( uint16_t  port)

Definition at line 55 of file ExternalServer.cpp.

◆ validation_callback()

void Leosac::Hardware::ExternalServer::validation_callback ( odb::callback_event  e,
odb::database &  db 
) const
overridevirtual

Reimplemented from Leosac::Hardware::Device.

Reimplemented in Leosac::Module::Mqtt::MqttServerConfig.

Definition at line 60 of file ExternalServer.cpp.

Member Data Documentation

◆ host_

std::string Leosac::Hardware::ExternalServer::host_
protected

Definition at line 57 of file ExternalServer.hpp.

◆ port_

uint16_t Leosac::Hardware::ExternalServer::port_
protected

Definition at line 58 of file ExternalServer.hpp.


The documentation for this class was generated from the following files: