Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
WatchCallMessageProcessor.hpp
Go to the documentation of this file.
1
2
3#ifndef IV_SRC_COMMS_CAN_WATCHCALLMESSAGEPROCESSOR_HPP_
4#define IV_SRC_COMMS_CAN_WATCHCALLMESSAGEPROCESSOR_HPP_
5
9
10namespace iv::comms::can
11{
12
14 public std::enable_shared_from_this<WatchCallMessageProcessor>
15{
16public:
17 WatchCallMessageProcessor(const std::shared_ptr<iv::comms::can::LomCommunicationController> &controller,
19 const std::shared_ptr<iv::alarms::WatchcallManager> &repeaterManager);
21 bool frameProcess() const;
22
23 void initialize() override;
24
25private:
26 bool sendFrame() const;
27 bool receiveFrame() const;
28 std::shared_ptr<iv::comms::can::LomCommunicationController> m_controller;
29 std::shared_ptr<iv::alarms::WatchcallManager> m_repeaterManager;
30 std::unique_ptr<iv::threads::Thread> m_thread;
31 void updateSlimStatus(const std::shared_ptr<CMessageCan> &message) const;
32 void processCommand(const std::shared_ptr<CMessageCan> &message) const;
33 void processHeartbeat(const std::shared_ptr<CMessageCan> &message) const;
34
38
40};
41
42}// namespace iv::comms::can
43
44#endif//IV_SRC_COMMS_CAN_WATCHCALLMESSAGEPROCESSOR_HPP_
Definition AbstractMessageProcessor.hpp:14
Definition WatchCallMessageProcessor.hpp:15
WatchCallMessageProcessor(const std::shared_ptr< iv::comms::can::LomCommunicationController > &controller, iv::comms::eLomLine line, const std::shared_ptr< iv::alarms::WatchcallManager > &repeaterManager)
Definition WatchCallMessageProcessor.cpp:34
void processCommand(const std::shared_ptr< CMessageCan > &message) const
Definition WatchCallMessageProcessor.cpp:87
iv::comms::eLomLine m_line
Definition WatchCallMessageProcessor.hpp:35
std::shared_ptr< iv::comms::can::LomCommunicationController > m_controller
Definition WatchCallMessageProcessor.hpp:28
~WatchCallMessageProcessor() override
Definition WatchCallMessageProcessor.cpp:46
bool receiveFrame() const
Definition WatchCallMessageProcessor.cpp:171
bool sendFrame() const
Definition WatchCallMessageProcessor.cpp:139
std::unique_ptr< iv::threads::Thread > m_thread
Definition WatchCallMessageProcessor.hpp:30
iv::types::timestamp startTime
Definition WatchCallMessageProcessor.hpp:39
iv::model::eShipArea stationArea
Definition WatchCallMessageProcessor.hpp:37
iv::types::unitId stationUnitId
Definition WatchCallMessageProcessor.hpp:36
void processHeartbeat(const std::shared_ptr< CMessageCan > &message) const
Definition WatchCallMessageProcessor.cpp:113
std::shared_ptr< iv::alarms::WatchcallManager > m_repeaterManager
Definition WatchCallMessageProcessor.hpp:29
bool frameProcess() const
Definition WatchCallMessageProcessor.cpp:76
void initialize() override
Definition WatchCallMessageProcessor.cpp:54
void updateSlimStatus(const std::shared_ptr< CMessageCan > &message) const
Definition WatchCallMessageProcessor.cpp:62
Definition AbstractMessageProcessor.hpp:12
eLomLine
Definition enums.hpp:231
eShipArea
Definition enums.hpp:11
uint64_t timestamp
Definition types.hpp:21
uint16_t unitId
Definition types.hpp:77