YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
CameraConfigData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6// Autogenerated by Thrift (based on compiler 0.14.1-yarped)
7// yarpidl_thrift version 2.0 - 11/11/2026
8// This is an automatically generated file.
9// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10
11#ifndef YARP_THRIFT_GENERATOR_STRUCT_CAMERACONFIGDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_CAMERACONFIGDATA_H
13
14#include <yarp/dev/api.h>
15
16#include <yarp/os/Wire.h>
18#include <yarp/sig/Image.h>
19
20namespace yarp::dev {
21
24{
25public:
26 // Fields
27 std::int32_t width{0};
28 std::int32_t height{0};
29 double framerate{0.000000};
31
32public:
33 // Default constructor
34 CameraConfigData() = default;
35
36 // Constructor with field values
37 CameraConfigData(const std::int32_t width,
38 const std::int32_t height,
39 const double framerate,
40 const YarpVocabPixelTypesEnum pixelCoding);
41
42 // Read structure on a Wire
43 bool read(yarp::os::idl::WireReader& reader) override;
44
45 // Read structure on a Connection
46 bool read(yarp::os::ConnectionReader& connection) override;
47
48 // Write structure on a Wire
49 bool write(const yarp::os::idl::WireWriter& writer) const override;
50
51 // Write structure on a Connection
52 bool write(yarp::os::ConnectionWriter& connection) const override;
53
54 // Convert to a printable string
55 std::string toString() const;
56
57 // If you want to serialize this class without nesting, use this helper
59
60private:
61 // read/write width field
62 bool read_width(yarp::os::idl::WireReader& reader);
63 bool write_width(const yarp::os::idl::WireWriter& writer) const;
64 bool nested_read_width(yarp::os::idl::WireReader& reader);
65 bool nested_write_width(const yarp::os::idl::WireWriter& writer) const;
66
67 // read/write height field
68 bool read_height(yarp::os::idl::WireReader& reader);
69 bool write_height(const yarp::os::idl::WireWriter& writer) const;
70 bool nested_read_height(yarp::os::idl::WireReader& reader);
71 bool nested_write_height(const yarp::os::idl::WireWriter& writer) const;
72
73 // read/write framerate field
74 bool read_framerate(yarp::os::idl::WireReader& reader);
75 bool write_framerate(const yarp::os::idl::WireWriter& writer) const;
76 bool nested_read_framerate(yarp::os::idl::WireReader& reader);
77 bool nested_write_framerate(const yarp::os::idl::WireWriter& writer) const;
78
79 // read/write pixelCoding field
80 bool read_pixelCoding(yarp::os::idl::WireReader& reader);
81 bool write_pixelCoding(const yarp::os::idl::WireWriter& writer) const;
82 bool nested_read_pixelCoding(yarp::os::idl::WireReader& reader);
83 bool nested_write_pixelCoding(const yarp::os::idl::WireWriter& writer) const;
84};
85
86} // namespace yarp::dev
87
88#endif // YARP_THRIFT_GENERATOR_STRUCT_CAMERACONFIGDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
YarpVocabPixelTypesEnum
Definition Image.h:40
yarp::os::idl::Unwrapped< CameraConfigData > unwrapped
An interface for reading from a network connection.
An interface for writing to a network connection.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
Definition WireReader.h:27
IDL-friendly connection writer.
Definition WireWriter.h:28
For streams capable of holding different kinds of content, check what they actually have.
constexpr char framerate[]
#define YARP_dev_API
Definition api.h:18