pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
StatisticsNames.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 StatisticsNames.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_STATISTICSNAMES_HPP
23#define FAST_DDS_GENERATED__PLOTJUGGLER_MSGS_MSG_STATISTICSNAMES_HPP
24
25#include <cstdint>
26#include <string>
27#include <utility>
28#include <vector>
29
30#include "Header.hpp"
31
32#if defined(_WIN32)
33#if defined(EPROSIMA_USER_DLL_EXPORT)
34#define eProsima_user_DllExport __declspec( dllexport )
35#else
36#define eProsima_user_DllExport
37#endif // EPROSIMA_USER_DLL_EXPORT
38#else
39#define eProsima_user_DllExport
40#endif // _WIN32
41
42#if defined(_WIN32)
43#if defined(EPROSIMA_USER_DLL_EXPORT)
44#if defined(STATISTICSNAMES_SOURCE)
45#define STATISTICSNAMES_DllAPI __declspec( dllexport )
46#else
47#define STATISTICSNAMES_DllAPI __declspec( dllimport )
48#endif // STATISTICSNAMES_SOURCE
49#else
50#define STATISTICSNAMES_DllAPI
51#endif // EPROSIMA_USER_DLL_EXPORT
52#else
53#define STATISTICSNAMES_DllAPI
54#endif // _WIN32
55
56namespace plotjuggler_msgs {
57
58namespace msg {
59
60/*!
61 * @brief This class represents the structure StatisticsNames defined by the user in the IDL file.
62 * @ingroup StatisticsNames
63 */
64class StatisticsNames
65{
66public:
67
68 /*!
69 * @brief Default constructor.
70 */
74
75 /*!
76 * @brief Default destructor.
77 */
81
82 /*!
83 * @brief Copy constructor.
84 * @param x Reference to the object StatisticsNames that will be copied.
85 */
87 const StatisticsNames& x)
88 {
89 m_header = x.m_header;
90
91 m_names = x.m_names;
92
93 m_names_version = x.m_names_version;
94
95 }
96
97 /*!
98 * @brief Move constructor.
99 * @param x Reference to the object StatisticsNames that will be copied.
100 */
102 StatisticsNames&& x) noexcept
103 {
104 m_header = std::move(x.m_header);
105 m_names = std::move(x.m_names);
106 m_names_version = x.m_names_version;
107 }
108
109 /*!
110 * @brief Copy assignment.
111 * @param x Reference to the object StatisticsNames that will be copied.
112 */
114 const StatisticsNames& x)
115 {
116
117 m_header = x.m_header;
118
119 m_names = x.m_names;
120
121 m_names_version = x.m_names_version;
122
123 return *this;
124 }
125
126 /*!
127 * @brief Move assignment.
128 * @param x Reference to the object StatisticsNames that will be copied.
129 */
131 StatisticsNames&& x) noexcept
132 {
133
134 m_header = std::move(x.m_header);
135 m_names = std::move(x.m_names);
136 m_names_version = x.m_names_version;
137 return *this;
138 }
139
140 /*!
141 * @brief Comparison operator.
142 * @param x StatisticsNames object to compare.
143 */
145 const StatisticsNames& x) const
146 {
147 return (m_header == x.m_header &&
148 m_names == x.m_names &&
149 m_names_version == x.m_names_version);
150 }
151
152 /*!
153 * @brief Comparison operator.
154 * @param x StatisticsNames object to compare.
155 */
157 const StatisticsNames& x) const
158 {
159 return !(*this == x);
160 }
161
162 /*!
163 * @brief This function copies the value in member header
164 * @param _header New value to be copied in member header
165 */
167 const std_msgs::msg::Header& _header)
168 {
169 m_header = _header;
170 }
171
172 /*!
173 * @brief This function moves the value in member header
174 * @param _header New value to be moved in member header
175 */
177 std_msgs::msg::Header&& _header)
178 {
179 m_header = std::move(_header);
180 }
181
182 /*!
183 * @brief This function returns a constant reference to member header
184 * @return Constant reference to member header
185 */
187 {
188 return m_header;
189 }
190
191 /*!
192 * @brief This function returns a reference to member header
193 * @return Reference to member header
194 */
199
200
201 /*!
202 * @brief This function copies the value in member names
203 * @param _names New value to be copied in member names
204 */
206 const std::vector<std::string>& _names)
207 {
208 m_names = _names;
209 }
210
211 /*!
212 * @brief This function moves the value in member names
213 * @param _names New value to be moved in member names
214 */
217 {
218 m_names = std::move(_names);
219 }
220
221 /*!
222 * @brief This function returns a constant reference to member names
223 * @return Constant reference to member names
224 */
226 {
227 return m_names;
228 }
229
230 /*!
231 * @brief This function returns a reference to member names
232 * @return Reference to member names
233 */
238
239
240 /*!
241 * @brief This function sets a value in member names_version
242 * @param _names_version New value for member names_version
243 */
245 uint32_t _names_version)
246 {
247 m_names_version = _names_version;
248 }
249
250 /*!
251 * @brief This function returns the value of member names_version
252 * @return Value of member names_version
253 */
255 {
256 return m_names_version;
257 }
258
259 /*!
260 * @brief This function returns a reference to member names_version
261 * @return Reference to member names_version
262 */
264 {
265 return m_names_version;
266 }
267
268
269
270private:
271
274 uint32_t m_names_version{0};
275
276};
277
278} // namespace msg
279
280} // namespace plotjuggler_msgs
281
282#endif // _FAST_DDS_GENERATED_PLOTJUGGLER_MSGS_MSG_STATISTICSNAMES_HPP_
283
284
#define eProsima_user_DllExport
Definition Header.hpp:37
This class represents the structure StatisticsNames defined by the user in the IDL file.
eProsima_user_DllExport void header(std_msgs::msg::Header &&_header)
This function moves the value in member header.
eProsima_user_DllExport StatisticsNames(StatisticsNames &&x) noexcept
Move constructor.
eProsima_user_DllExport void header(const std_msgs::msg::Header &_header)
This function copies the value in member header.
eProsima_user_DllExport std_msgs::msg::Header & header()
This function returns a reference to member header.
eProsima_user_DllExport void names_version(uint32_t _names_version)
This function sets a value in member names_version.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header.
eProsima_user_DllExport std::vector< std::string > & names()
This function returns a reference to member names.
eProsima_user_DllExport uint32_t names_version() const
This function returns the value of member names_version.
eProsima_user_DllExport void names(std::vector< std::string > &&_names)
This function moves the value in member names.
eProsima_user_DllExport const std::vector< std::string > & names() const
This function returns a constant reference to member names.
eProsima_user_DllExport bool operator!=(const StatisticsNames &x) const
Comparison operator.
eProsima_user_DllExport void names(const std::vector< std::string > &_names)
This function copies the value in member names.
eProsima_user_DllExport StatisticsNames & operator=(const StatisticsNames &x)
Copy assignment.
eProsima_user_DllExport StatisticsNames()
Default constructor.
eProsima_user_DllExport uint32_t & names_version()
This function returns a reference to member names_version.
eProsima_user_DllExport ~StatisticsNames()
Default destructor.
eProsima_user_DllExport StatisticsNames(const StatisticsNames &x)
Copy constructor.
eProsima_user_DllExport bool operator==(const StatisticsNames &x) const
Comparison operator.
This class represents the structure Header defined by the user in the IDL file.
Definition Header.idl:5