pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
StatisticsValues.hpp
Go to the documentation of this file.
1// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15/*!
16 * @file StatisticsValues.hpp
17 * This header file contains the declaration of the described types in the IDL file.
18 *
19 * This file was generated by the tool fastddsgen.
20 */
21
22#ifndef FAST_DDS_GENERATED__PLOTJUGGLER_MSGS_MSG_STATISTICSVALUES_HPP
23#define FAST_DDS_GENERATED__PLOTJUGGLER_MSGS_MSG_STATISTICSVALUES_HPP
24
25#include <cstdint>
26#include <utility>
27#include <vector>
28
29#include "Header.hpp"
30
31#if defined(_WIN32)
32#if defined(EPROSIMA_USER_DLL_EXPORT)
33#define eProsima_user_DllExport __declspec( dllexport )
34#else
35#define eProsima_user_DllExport
36#endif // EPROSIMA_USER_DLL_EXPORT
37#else
38#define eProsima_user_DllExport
39#endif // _WIN32
40
41#if defined(_WIN32)
42#if defined(EPROSIMA_USER_DLL_EXPORT)
43#if defined(STATISTICSVALUES_SOURCE)
44#define STATISTICSVALUES_DllAPI __declspec( dllexport )
45#else
46#define STATISTICSVALUES_DllAPI __declspec( dllimport )
47#endif // STATISTICSVALUES_SOURCE
48#else
49#define STATISTICSVALUES_DllAPI
50#endif // EPROSIMA_USER_DLL_EXPORT
51#else
52#define STATISTICSVALUES_DllAPI
53#endif // _WIN32
54
55namespace plotjuggler_msgs {
56
57namespace msg {
58
59/*!
60 * @brief This class represents the structure StatisticsValues defined by the user in the IDL file.
61 * @ingroup StatisticsValues
62 */
63class StatisticsValues
64{
65public:
66
67 /*!
68 * @brief Default constructor.
69 */
73
74 /*!
75 * @brief Default destructor.
76 */
80
81 /*!
82 * @brief Copy constructor.
83 * @param x Reference to the object StatisticsValues that will be copied.
84 */
86 const StatisticsValues& x)
87 {
88 m_header = x.m_header;
89
90 m_values = x.m_values;
91
92 m_names_version = x.m_names_version;
93
94 }
95
96 /*!
97 * @brief Move constructor.
98 * @param x Reference to the object StatisticsValues that will be copied.
99 */
101 StatisticsValues&& x) noexcept
102 {
103 m_header = std::move(x.m_header);
104 m_values = std::move(x.m_values);
105 m_names_version = x.m_names_version;
106 }
107
108 /*!
109 * @brief Copy assignment.
110 * @param x Reference to the object StatisticsValues that will be copied.
111 */
113 const StatisticsValues& x)
114 {
115
116 m_header = x.m_header;
117
118 m_values = x.m_values;
119
120 m_names_version = x.m_names_version;
121
122 return *this;
123 }
124
125 /*!
126 * @brief Move assignment.
127 * @param x Reference to the object StatisticsValues that will be copied.
128 */
130 StatisticsValues&& x) noexcept
131 {
132
133 m_header = std::move(x.m_header);
134 m_values = std::move(x.m_values);
135 m_names_version = x.m_names_version;
136 return *this;
137 }
138
139 /*!
140 * @brief Comparison operator.
141 * @param x StatisticsValues object to compare.
142 */
144 const StatisticsValues& x) const
145 {
146 return (m_header == x.m_header &&
147 m_values == x.m_values &&
148 m_names_version == x.m_names_version);
149 }
150
151 /*!
152 * @brief Comparison operator.
153 * @param x StatisticsValues object to compare.
154 */
156 const StatisticsValues& x) const
157 {
158 return !(*this == x);
159 }
160
161 /*!
162 * @brief This function copies the value in member header
163 * @param _header New value to be copied in member header
164 */
166 const std_msgs::msg::Header& _header)
167 {
168 m_header = _header;
169 }
170
171 /*!
172 * @brief This function moves the value in member header
173 * @param _header New value to be moved in member header
174 */
176 std_msgs::msg::Header&& _header)
177 {
178 m_header = std::move(_header);
179 }
180
181 /*!
182 * @brief This function returns a constant reference to member header
183 * @return Constant reference to member header
184 */
186 {
187 return m_header;
188 }
189
190 /*!
191 * @brief This function returns a reference to member header
192 * @return Reference to member header
193 */
198
199
200 /*!
201 * @brief This function copies the value in member values
202 * @param _values New value to be copied in member values
203 */
205 const std::vector<double>& _values)
206 {
207 m_values = _values;
208 }
209
210 /*!
211 * @brief This function moves the value in member values
212 * @param _values New value to be moved in member values
213 */
215 std::vector<double>&& _values)
216 {
217 m_values = std::move(_values);
218 }
219
220 /*!
221 * @brief This function returns a constant reference to member values
222 * @return Constant reference to member values
223 */
225 {
226 return m_values;
227 }
228
229 /*!
230 * @brief This function returns a reference to member values
231 * @return Reference to member values
232 */
237
238
239 /*!
240 * @brief This function sets a value in member names_version
241 * @param _names_version New value for member names_version
242 */
244 uint32_t _names_version)
245 {
246 m_names_version = _names_version;
247 }
248
249 /*!
250 * @brief This function returns the value of member names_version
251 * @return Value of member names_version
252 */
254 {
255 return m_names_version;
256 }
257
258 /*!
259 * @brief This function returns a reference to member names_version
260 * @return Reference to member names_version
261 */
263 {
264 return m_names_version;
265 }
266
267
268
269private:
270
273 uint32_t m_names_version{0};
274
275};
276
277} // namespace msg
278
279} // namespace plotjuggler_msgs
280
281#endif // _FAST_DDS_GENERATED_PLOTJUGGLER_MSGS_MSG_STATISTICSVALUES_HPP_
282
283
#define eProsima_user_DllExport
Definition Header.hpp:37
This class represents the structure StatisticsValues defined by the user in the IDL file.
eProsima_user_DllExport StatisticsValues & operator=(const StatisticsValues &x)
Copy assignment.
eProsima_user_DllExport void values(std::vector< double > &&_values)
This function moves the value in member values.
eProsima_user_DllExport void names_version(uint32_t _names_version)
This function sets a value in member names_version.
eProsima_user_DllExport uint32_t & names_version()
This function returns a reference to member names_version.
eProsima_user_DllExport StatisticsValues(StatisticsValues &&x) noexcept
Move constructor.
eProsima_user_DllExport const std::vector< double > & values() const
This function returns a constant reference to member values.
eProsima_user_DllExport StatisticsValues()
Default constructor.
eProsima_user_DllExport ~StatisticsValues()
Default destructor.
eProsima_user_DllExport bool operator==(const StatisticsValues &x) const
Comparison operator.
eProsima_user_DllExport void header(std_msgs::msg::Header &&_header)
This function moves the value in member header.
eProsima_user_DllExport void header(const std_msgs::msg::Header &_header)
This function copies the value in member header.
eProsima_user_DllExport StatisticsValues(const StatisticsValues &x)
Copy constructor.
eProsima_user_DllExport std::vector< double > & values()
This function returns a reference to member values.
eProsima_user_DllExport uint32_t names_version() const
This function returns the value of member names_version.
eProsima_user_DllExport bool operator!=(const StatisticsValues &x) const
Comparison operator.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header.
eProsima_user_DllExport std_msgs::msg::Header & header()
This function returns a reference to member header.
eProsima_user_DllExport void values(const std::vector< double > &_values)
This function copies the value in member values.
This class represents the structure Header defined by the user in the IDL file.
Definition Header.idl:5