YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
OpenCVGrabber_ParamsParser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6
7// Generated by yarpDeviceParamParserGenerator (2.0)
8// This is an automatically generated file. Please do not edit it.
9// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.
10
11// Generated on: Thu May 22 20:45:26 2025
12
13
14#ifndef OPENCVGRABBER_PARAMSPARSER_H
15#define OPENCVGRABBER_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
50{
51public:
53 ~OpenCVGrabber_ParamsParser() override = default;
54
55public:
56 const std::string m_device_classname = {"OpenCVGrabber"};
57 const std::string m_device_name = {"openCVGrabber"};
58 bool m_parser_is_strict = false;
60 {
61 int major = 2;
62 int minor = 0;
63 };
65
67
68 const std::string m_movie_defaultValue = {""};
69 const std::string m_loop_defaultValue = {"false"};
70 const std::string m_camera_defaultValue = {"0"};
71 const std::string m_framerate_defaultValue = {"-1"};
72 const std::string m_width_defaultValue = {"0"};
73 const std::string m_height_defaultValue = {"0"};
74 const std::string m_flip_x_defaultValue = {"false"};
75 const std::string m_flip_y_defaultValue = {"false"};
76 const std::string m_transpose_defaultValue = {"false"};
77
78 std::string m_movie = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
79 bool m_loop = {false};
80 int m_camera = {0};
81 double m_framerate = {-1};
82 int m_width = {0};
83 int m_height = {0};
84 bool m_flip_x = {false};
85 bool m_flip_y = {false};
86 bool m_transpose = {false};
87
88 bool parseParams(const yarp::os::Searchable & config) override;
89 std::string getDeviceClassName() const override { return m_device_classname; }
90 std::string getDeviceName() const override { return m_device_name; }
91 std::string getDocumentationOfDeviceParams() const override;
92 std::vector<std::string> getListOfParams() const override;
93 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
94 std::string getConfiguration() const override;
95};
96
97#endif
This class is the parameters parser for class OpenCVGrabber.
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
std::string getConfiguration() const override
Return the configuration of the device.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
std::string getDeviceName() const override
Get the name of the device (i.e.
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
const parser_version_type m_parser_version
~OpenCVGrabber_ParamsParser() override=default
An interface for the management of the parameters of a DeviceDriver.
A base class for nested structures that can be searched.
Definition Searchable.h:31