![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
Handler for the gi command (single frame acquisition).
More...
#include <command_gi.hpp>
Public Member Functions | |
| CommandGIHandler (std::shared_ptr< Context > ctx) | |
| Constructs the CommandGIHandler. | |
Public Member Functions inherited from irsol::server::handlers::internal::CommandGIBaseHandler | |
| CommandGIBaseHandler (std::shared_ptr< Context > ctx) | |
| Constructs the CommandGIBaseHandler. | |
Public Member Functions inherited from irsol::server::handlers::internal::HandlerBase< T, > | |
| virtual std::vector< out_message_t > | operator() (const irsol::types::client_id_t &clientId, T &&message) |
| Invokes the handler for a given client and message. | |
Private Member Functions | |
| 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). | |
| double | getFrameRate (const protocol::Command &message, std::shared_ptr< irsol::server::ClientSession > session) const override |
Returns the frame rate for the gi command. | |
Additional Inherited Members | |
Protected Member Functions inherited from irsol::server::handlers::internal::CommandGIBaseHandler | |
| std::vector< out_message_t > | process (std::shared_ptr< irsol::server::ClientSession > session, protocol::Command &&message) final override |
| Processes a frame acquisition command, starting the frame collection thread. | |
Protected Member Functions inherited from irsol::server::handlers::internal::HandlerBase< T, > | |
| HandlerBase (std::shared_ptr< Context > ctx) | |
| Constructs the handler base. | |
| virtual std::vector< out_message_t > | process (std::shared_ptr< irsol::server::ClientSession > session, T &&message)=0 |
| Processes the protocol message for the given session. | |
Protected Attributes inherited from irsol::server::handlers::internal::HandlerBase< T, > | |
| std::shared_ptr< Context > | ctx |
| Handler context (provides access to app and utilities). | |
Handler for the gi command (single frame acquisition).
Processes the gi command to acquire a single frame from the camera.
Definition at line 24 of file command_gi.hpp.
| irsol::server::handlers::CommandGIHandler::CommandGIHandler | ( | std::shared_ptr< Context > | ctx | ) |
Constructs the CommandGIHandler.
| ctx | Handler context. |
Definition at line 13 of file command_gi.cpp.
|
overrideprivatevirtual |
Returns the frame rate for the gi command.
| message | The command message. |
| session | The client session. |
Implements irsol::server::handlers::internal::CommandGIBaseHandler.
Definition at line 35 of file command_gi.cpp.
|
overrideprivatevirtual |
Returns the input sequence length for the gi command (always 1).
| message | The command message. |
| session | The client session. |
Implements irsol::server::handlers::internal::CommandGIBaseHandler.
Definition at line 27 of file command_gi.cpp.
|
overrideprivatevirtual |
Validates the gi command parameters.
| message | The command message. |
| session | The client session. |
Implements irsol::server::handlers::internal::CommandGIBaseHandler.
Definition at line 18 of file command_gi.cpp.