|
rad 6.2.0
|
Adapter for ptpmond's TRS Health status to the state machine. More...
#include <trsHealth.hpp>
Public Member Functions | |
| TrsHealth (boost::asio::io_context &ioc, SMAdapter &sm, const std::string_view path=ptpmon::DEFAULT_SOCKET_PATH) | |
| Register callbacks and start connecting to the ptpmond socket. | |
| virtual | ~TrsHealth ()=default |
| TrsHealth (const TrsHealth &)=delete | |
| TrsHealth & | operator= (const TrsHealth &)=delete |
| TrsHealth (TrsHealth &&)=default | |
| TrsHealth & | operator= (TrsHealth &&)=default |
| const ptpmon::StatusMessage & | GetStatus () const |
| Retrieve the most recent status. | |
| void | Enable () |
| Enable TRS health status notification. | |
| void | Disable () |
| Disable TRS health status notification. | |
Protected Member Functions | |
| void | Notify (const ptpmon::StatusMessage &status) override |
Adapter for ptpmond's TRS Health status to the state machine.
|
explicit |
Register callbacks and start connecting to the ptpmond socket.
| ioc | Boost.Asio context for callback registration |
| sm | the state machine to post events to |
| path | the UNIX socket address of the ptpmond server |
| std::runtime_error | if good or @bad are missing |
|
virtualdefault |
|
delete |
|
default |
| void rad::TrsHealth::Disable | ( | ) |
Disable TRS health status notification.
| void rad::TrsHealth::Enable | ( | ) |
Enable TRS health status notification.
| const ptpmon::StatusMessage & rad::TrsHealth::GetStatus | ( | ) | const |
Retrieve the most recent status.
|
overrideprotected |