lacteApp
C++17 service for Lacte hardware
Loading...
Searching...
No Matches
LacteApp Class Referencefinal

#include <LacteApp.hpp>

Inheritance diagram for LacteApp:
[legend]
Collaboration diagram for LacteApp:
[legend]

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_bufferm_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] {}

Detailed Description

Definition at line 75 of file LacteApp.hpp.

Member Function Documentation

◆ get_bin_path()

auto LacteApp::get_bin_path ( ) const -> std::string
inline

Definition at line 183 of file LacteApp.hpp.

◆ get_bus()

auto LacteApp::get_bus ( ) const -> lacte::bus::ModelBusClient *
inlinenodiscard

Шинный клиент, на котором это приложение обслуживает запросы ModelBusHandler, если таковой есть - тот, что построил ConnectBus().

Раньше был BoardModel::get_bus(), до того как обслуживание шины переехало сюда - та же сигнатура/doc-комментарий, новый владелец.

Definition at line 220 of file LacteApp.hpp.

◆ reset_test_mode_for_tests()

void LacteApp::reset_test_mode_for_tests ( )
inline

Definition at line 168 of file LacteApp.hpp.

◆ run_impl()

auto LacteApp::run_impl ( std::istream & input = std::cin) -> int

◆ set_bin_path_for_tests()

void LacteApp::set_bin_path_for_tests ( std::string path)
inline

Definition at line 179 of file LacteApp.hpp.

◆ set_db_path_for_tests()

void LacteApp::set_db_path_for_tests ( std::string path)
inline

Definition at line 193 of file LacteApp.hpp.

◆ set_door_signal_lost_for_tests()

void LacteApp::set_door_signal_lost_for_tests ( const bool lost)
inline

Definition at line 205 of file LacteApp.hpp.

◆ stop()

void LacteApp::stop ( )
inline

Definition at line 211 of file LacteApp.hpp.

Member Data Documentation

◆ ConsoleApp

friend LacteApp::ConsoleApp

Definition at line 153 of file LacteApp.hpp.

◆ hmi_tx_buffer

uint8_t LacteApp::hmi_tx_buffer[K_HMI_TX_BUFFER_SIZE] {}
inlinestatic

Definition at line 104 of file LacteApp.hpp.

◆ K_HMI_TX_BUFFER_SIZE

std::size_t LacteApp::K_HMI_TX_BUFFER_SIZE = 300
staticconstexpr

Definition at line 103 of file LacteApp.hpp.

◆ last_flags_

proto::back_board_proto::HeadFlags LacteApp::last_flags_ {}

Definition at line 151 of file LacteApp.hpp.

◆ last_packet_

proto::back_board_proto::HeadPacketTypes LacteApp::last_packet_ {}

Definition at line 150 of file LacteApp.hpp.

◆ m_board_model_

BoardModel LacteApp::m_board_model_

Definition at line 144 of file LacteApp.hpp.

◆ m_client_

std::shared_ptr<insitech::LoggerBusClient> LacteApp::m_client_

Definition at line 131 of file LacteApp.hpp.

◆ m_hmi_protocol_

Definition at line 107 of file LacteApp.hpp.

◆ m_hmi_uart_interface

proto::interface::UartLinuxInterface LacteApp::m_hmi_uart_interface

Definition at line 94 of file LacteApp.hpp.

◆ m_system_state_

lacte::SystemStateResolver LacteApp::m_system_state_

Definition at line 122 of file LacteApp.hpp.

◆ m_uart_interface

proto::interface::UartLinuxInterface LacteApp::m_uart_interface

Definition at line 87 of file LacteApp.hpp.

◆ m_virtual_board

std::unique_ptr<proto::lacte::VirtualBoard> LacteApp::m_virtual_board

Definition at line 148 of file LacteApp.hpp.


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