BCNP 3.2.1
Batched Command Network Protocol
Loading...
Searching...
No Matches
command_queue.h
Go to the documentation of this file.
1#pragma once
2
3// Legacy header - use message_queue.h for new code
4
7
8namespace bcnp {
9
10// Legacy type aliases
13using Command = DriveCmd;
14
16class CommandQueue : public MessageQueue<DriveCmd> {
17public:
18 explicit CommandQueue(MessageQueueConfig config = {})
19 : MessageQueue<DriveCmd>(config) {}
20
21 // Legacy API methods
22 void NotifyPacketReceived(Clock::time_point now) { NotifyReceived(now); }
23 std::optional<DriveCmd> ActiveCommand() const { return ActiveMessage(); }
24 void IncrementParseErrors() {} // No-op, handled by dispatcher now
25};
26
27} // namespace bcnp
Legacy CommandQueue - use MessageQueue<DriveCmd> for new code.
void NotifyPacketReceived(Clock::time_point now)
CommandQueue(MessageQueueConfig config={})
std::optional< DriveCmd > ActiveCommand() const
Generic timed message queue for any message type with durationMs field.
std::optional< DriveCmd > ActiveMessage() const
void NotifyReceived(Clock::time_point now)
Timed message queue for executing duration-based commands.
DriveCmd Command
Configuration parameters for a message queue.
Runtime metrics for queue diagnostics.