Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
ServerCommand.cxx
Go to the documentation of this file.
1
29
30#include "withrottle/Server.hxx"
31
32namespace withrottle
33{
34
35/*
36 * ServerCommandBase::ServerCommandBase()
37 */
39 : StateFlow<Buffer<ThrottleCommand>, QList<1>>(throttle->service())
40 , throttle(throttle)
41{
43}
44
45/*
46 * ServerCommandBase::ServerCommandBase()
47 */
52
53} /* namespace withrottle */
Base class for all QMember types that hold data in an expandable format.
Definition Buffer.hxx:195
void register_handler(HandlerType *handler, ID id, ID mask)
Adds a new handler to this dispatcher.
void unregister_handler_all(HandlerType *handler)
Removes all instances of a handler from this dispatcher.
A list of queues.
Definition Queue.hxx:466
State flow with a given typed input queue.
ThrottleFlow * throttle
pointer to parent throttle
ServerCommandBase(ThrottleFlow *throttle, CommandType type)
Constructor.
Command from the throttle.
State flow for handling a throttle instance.
Definition Server.hxx:104
CommandDispatchFlow dispatcher
flow responsible for routing incoming messages to handlers.
Definition Server.hxx:199
CommandType
type of command.
@ TYPE_MASK
exact mask for dispatcher