|
lacteApp
C++17 service for Lacte hardware
|
#include <LacteApp.hpp>
Public Member Functions | |
| void | reset_test_mode_for_tests () |
| void | set_bin_path_for_tests (std::string path) |
| auto | get_bin_path () const -> std::string |
| void | set_db_path_for_tests (std::string path) |
| void | set_door_signal_lost_for_tests (const bool lost) |
| auto | run_impl (std::istream &input=std::cin) -> int |
| void | stop () |
| auto | get_bus () const -> lacte::bus::ModelBusClient * |
| Шинный клиент, на котором это приложение обслуживает запросы ModelBusHandler, если таковой есть - тот, что построил ConnectBus(). | |
| Public Member Functions inherited from lacte::bus::ModelBusHandler | |
| virtual | ~ModelBusHandler ()=default |
Public Attributes | |
| proto::interface::UartLinuxInterface | m_uart_interface |
| proto::interface::UartLinuxInterface | m_hmi_uart_interface |
| proto::back_board_proto::BackBoardProtocol< hmi_tx_buffer, hmi_tx_buffer > | m_hmi_protocol_ |
| lacte::SystemStateResolver | m_system_state_ |
| std::shared_ptr< insitech::LoggerBusClient > | m_client_ |
| BoardModel | m_board_model_ |
| std::unique_ptr< proto::lacte::VirtualBoard > | m_virtual_board |
| proto::back_board_proto::HeadPacketTypes | last_packet_ {} |
| proto::back_board_proto::HeadFlags | last_flags_ {} |
| friend | ConsoleApp |
Static Public Attributes | |
| static constexpr std::size_t | K_HMI_TX_BUFFER_SIZE = 300 |
| static uint8_t | hmi_tx_buffer [K_HMI_TX_BUFFER_SIZE] {} |
Definition at line 75 of file LacteApp.hpp.
|
inline |
Definition at line 183 of file LacteApp.hpp.
|
inlinenodiscard |
Шинный клиент, на котором это приложение обслуживает запросы ModelBusHandler, если таковой есть - тот, что построил ConnectBus().
Раньше был BoardModel::get_bus(), до того как обслуживание шины переехало сюда - та же сигнатура/doc-комментарий, новый владелец.
Definition at line 220 of file LacteApp.hpp.
|
inline |
Definition at line 168 of file LacteApp.hpp.
| auto LacteApp::run_impl | ( | std::istream & | input = std::cin | ) | -> int |
|
inline |
Definition at line 179 of file LacteApp.hpp.
|
inline |
Definition at line 193 of file LacteApp.hpp.
|
inline |
Definition at line 205 of file LacteApp.hpp.
|
inline |
Definition at line 211 of file LacteApp.hpp.
| friend LacteApp::ConsoleApp |
Definition at line 153 of file LacteApp.hpp.
|
inlinestatic |
Definition at line 104 of file LacteApp.hpp.
|
staticconstexpr |
Definition at line 103 of file LacteApp.hpp.
| proto::back_board_proto::HeadFlags LacteApp::last_flags_ {} |
Definition at line 151 of file LacteApp.hpp.
| proto::back_board_proto::HeadPacketTypes LacteApp::last_packet_ {} |
Definition at line 150 of file LacteApp.hpp.
| BoardModel LacteApp::m_board_model_ |
Definition at line 144 of file LacteApp.hpp.
| std::shared_ptr<insitech::LoggerBusClient> LacteApp::m_client_ |
Definition at line 131 of file LacteApp.hpp.
| proto::back_board_proto::BackBoardProtocol<hmi_tx_buffer, hmi_tx_buffer> LacteApp::m_hmi_protocol_ |
Definition at line 107 of file LacteApp.hpp.
| proto::interface::UartLinuxInterface LacteApp::m_hmi_uart_interface |
Definition at line 94 of file LacteApp.hpp.
| lacte::SystemStateResolver LacteApp::m_system_state_ |
Definition at line 122 of file LacteApp.hpp.
| proto::interface::UartLinuxInterface LacteApp::m_uart_interface |
Definition at line 87 of file LacteApp.hpp.
| std::unique_ptr<proto::lacte::VirtualBoard> LacteApp::m_virtual_board |
Definition at line 148 of file LacteApp.hpp.