IRSOL
C++ code implementing socket server for interacting with Baumer camera.
command_gis.hpp
Go to the documentation of this file.
1
10#pragma once
11
13
14namespace irsol {
15namespace server {
16namespace handlers {
17
25{
26public:
31 CommandGISHandler(std::shared_ptr<Context> ctx);
32
33private:
40 std::vector<irsol::protocol::OutMessage> validate(
42 std::shared_ptr<irsol::server::ClientSession> session) const override;
43
54 std::shared_ptr<irsol::server::ClientSession> session) const override;
55
63 double getFrameRate(
65 std::shared_ptr<irsol::server::ClientSession> session) const override;
66};
67} // namespace handlers
68} // namespace server
69} // namespace irsol
Handler for the gis command (sequence frame acquisition).
double getFrameRate(const protocol::Command &message, std::shared_ptr< irsol::server::ClientSession > session) const override
Returns the frame rate for the gis command.
uint64_t getInputSequenceLength(const protocol::Command &message, std::shared_ptr< irsol::server::ClientSession > session) const override
Returns the input sequence length for the gis command.
std::vector< irsol::protocol::OutMessage > validate(const protocol::Command &message, std::shared_ptr< irsol::server::ClientSession > session) const override
Validates the gis command parameters.
Base handler for frame acquisition commands (gi, gis).
std::shared_ptr< Context > ctx
Handler context (provides access to app and utilities).
Definition base.hpp:81
Declaration of the CommandGIBaseHandler class.
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