IRSOL
C++ code implementing socket server for interacting with Baumer camera.
command_gi.hpp
Go to the documentation of this file.
1
10#pragma once
11
13
14namespace irsol {
15namespace server {
16namespace handlers {
17
25{
26public:
31 CommandGIHandler(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
52 std::shared_ptr<irsol::server::ClientSession> session) const override;
53
60 double getFrameRate(
62 std::shared_ptr<irsol::server::ClientSession> session) const override;
63};
64} // namespace handlers
65} // namespace server
66} // namespace irsol
Handler for the gi command (single frame acquisition).
double getFrameRate(const protocol::Command &message, std::shared_ptr< irsol::server::ClientSession > session) const override
Returns the frame rate for the gi command.
std::vector< irsol::protocol::OutMessage > validate(const protocol::Command &message, std::shared_ptr< irsol::server::ClientSession > session) const override
Validates the gi command parameters.
uint64_t getInputSequenceLength(const protocol::Command &message, std::shared_ptr< irsol::server::ClientSession > session) const override
Returns the input sequence length for the gi command (always 1).
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