27 static constexpr std::string_view
name =
"OffsetX";
35 static constexpr std::string_view
name =
"Width";
43 static constexpr std::string_view
name =
"OffsetY";
51 static constexpr std::string_view
name =
"Height";
61template<
typename InquiryCameraImageAttribute>
64 static constexpr std::string_view
name = InquiryCameraImageAttribute::name;
84 auto&
cam =
ctx->app.camera();
86 std::vector<out_message_t>
result;
Main server application managing client connections and camera streaming.
Base handler templates for protocol message processing.
Generic handler base class for protocol messages.
std::shared_ptr< Context > ctx
Handler context (provides access to app and utilities).
Base handler template for inquiring a camera image region parameter.
std::vector< out_message_t > process(IRSOL_MAYBE_UNUSED std::shared_ptr< irsol::server::ClientSession > session, protocol::Inquiry &&message) final override
Processes an inquiry message to retrieve the camera image parameter.
static constexpr std::string_view name
InquiryImgHandlerBase(std::shared_ptr< Context > ctx)
Constructs the handler.
Common portability and diagnostic macros for the irsol library.
#define IRSOL_MAYBE_UNUSED
Suppresses compiler warnings about unused variables or parameters.
constexpr auto makeHandler(std::shared_ptr< Context > ctx, Args &&... args)
Constructs a handler instance of the given type.
std::variant< int, double, std::string > protocol_value_t
Variant type representing protocol values that can be one of several types.
Represents a value inquiry in the protocol.
static Success from(const Assignment &msg, std::optional< irsol::types::protocol_value_t > overrideValue=std::nullopt)
Creates a success message from an Assignment.
Tag type for the camera image height parameter ("Height").
static constexpr std::string_view name
Tag type for the camera image left offset parameter ("OffsetX").
static constexpr std::string_view name
Tag type for the camera image top offset parameter ("OffsetY").
static constexpr std::string_view name
Tag type for the camera image width parameter ("Width").
static constexpr std::string_view name