![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
Contains all logic for dispatching and implementing protocol message handlers. More...
Namespaces | |
namespace | internal |
Classes | |
class | AssignmentFrameRateHandler |
Handler for assignment of the frame rate parameter. More... | |
class | AssignmentInputSequenceLengthHandler |
Handler for assignment of the input sequence length parameter isl . More... | |
class | AssignmentIntegrationTimeHandler |
Handler for assignment of the camera integration time (exposure). More... | |
class | CommandAbortHandler |
Handler for aborting ongoing operations for a client session. More... | |
class | CommandGIHandler |
Handler for the gi command (single frame acquisition). More... | |
class | CommandGISHandler |
Handler for the gis command (sequence frame acquisition). More... | |
struct | Context |
Context object passed to all handler classes. More... | |
class | InquiryFrameRateHandler |
Handler for inquiry of the current frame rate parameter. More... | |
class | InquiryInputSequenceLengthHandler |
Handler for inquiry of the input sequence length parameter. More... | |
class | InquiryIntegrationTimeHandler |
Handler for inquiry of the camera integration time (exposure). More... | |
class | LambdaHandler |
Handler class that delegates protocol message processing to a lambda or callable. More... | |
class | MessageHandler |
Binds incoming protocol messages to the appropriate per-client logic. More... | |
Functions | |
template<typename HandlerT , typename... Args> | |
constexpr auto | makeHandler (std::shared_ptr< Context > ctx, Args &&... args) |
Constructs a handler instance of the given type. | |
template<typename InMessageT , typename LambdaT > | |
constexpr auto | makeLambdaHandler (std::shared_ptr< Context > ctx, LambdaT &&lambda) |
Constructs a lambda handler for the specified message type. | |
Contains all logic for dispatching and implementing protocol message handlers.
The handlers
namespace encapsulates the entire message handling subsystem of the server. It provides:
Handlers are responsible for:
The namespace acts as the glue between the protocol parsing layer and the per-client application logic, ensuring a clean separation of concerns and facilitating extensibility.
using irsol::server::handlers::AssignmentImgHeightHandler = typedef internal::AssignmentImgHandlerBase<internal::AssignmentCameraImageAttributeHeight> |
Handler for assigning the height ("Height") of the camera image.
Definition at line 118 of file assignment_image_size.hpp.
using irsol::server::handlers::AssignmentImgLeftHandler = typedef internal::AssignmentImgHandlerBase<internal::AssignmentCameraImageAttributeLeft> |
Handler for assigning the left offset ("OffsetX") of the camera image.
Definition at line 103 of file assignment_image_size.hpp.
using irsol::server::handlers::AssignmentImgTopHandler = typedef internal::AssignmentImgHandlerBase<internal::AssignmentCameraImageAttributeTop> |
Handler for assigning the top offset ("OffsetY") of the camera image.
Definition at line 108 of file assignment_image_size.hpp.
using irsol::server::handlers::AssignmentImgWidthHandler = typedef internal::AssignmentImgHandlerBase<internal::AssignmentCameraImageAttributeWidth> |
Handler for assigning the width ("Width") of the camera image.
Definition at line 113 of file assignment_image_size.hpp.
using irsol::server::handlers::InquiryImgHeightHandler = typedef internal::InquiryImgHandlerBase<internal::InquiryCameraImageAttributeHeight> |
Handler for inquiring the height ("Height") of the camera image.
Definition at line 111 of file inquiry_image_size.hpp.
using irsol::server::handlers::InquiryImgLeftHandler = typedef internal::InquiryImgHandlerBase<internal::InquiryCameraImageAttributeLeft> |
Handler for inquiring the left offset ("OffsetX") of the camera image.
Definition at line 96 of file inquiry_image_size.hpp.
using irsol::server::handlers::InquiryImgTopHandler = typedef internal::InquiryImgHandlerBase<internal::InquiryCameraImageAttributeTop> |
Handler for inquiring the top offset ("OffsetY") of the camera image.
Definition at line 101 of file inquiry_image_size.hpp.
using irsol::server::handlers::InquiryImgWidthHandler = typedef internal::InquiryImgHandlerBase<internal::InquiryCameraImageAttributeWidth> |
Handler for inquiring the width ("Width") of the camera image.
Definition at line 106 of file inquiry_image_size.hpp.
|
constexpr |
Constructs a handler instance of the given type.
HandlerT | Handler class type. |
Args | Constructor argument types. |
ctx | Handler context. |
args | Additional arguments for the handler constructor. |
Definition at line 28 of file factory.hpp.
|
constexpr |
Constructs a lambda handler for the specified message type.
InMessageT | Incoming message type. |
LambdaT | Lambda function type. |
ctx | Handler context. |
lambda | Lambda function to invoke for the message. |
Definition at line 43 of file factory.hpp.