IRSOL
C++ code implementing socket server for interacting with Baumer camera.
command_abort.hpp
Go to the documentation of this file.
1
11
12namespace irsol {
13namespace server {
14namespace handlers {
15
23{
24public:
29 CommandAbortHandler(std::shared_ptr<Context> ctx);
30
31protected:
38 std::vector<out_message_t> process(
39 std::shared_ptr<irsol::server::ClientSession> session,
40 irsol::protocol::Command&& message) final override;
41};
42} // namespace handlers
43} // namespace server
44} // namespace irsol
Base handler templates for protocol message processing.
Handler for aborting ongoing operations for a client session.
std::vector< out_message_t > process(std::shared_ptr< irsol::server::ClientSession > session, irsol::protocol::Command &&message) final override
Processes an abort command.
Generic handler base class for protocol messages.
Definition base.hpp:39
std::shared_ptr< Context > ctx
Handler context (provides access to app and utilities).
Definition base.hpp:81
constexpr auto makeHandler(std::shared_ptr< Context > ctx, Args &&... args)
Constructs a handler instance of the given type.
Definition factory.hpp:28
Represents a command invocation in the protocol.
Definition command.hpp:33