CARLA
NavSatStatus.h
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 NavSatStatus.h
17  * This header file contains the declaration of the described types in the IDL file.
18  *
19  * This file was generated by the tool gen.
20  */
21 
22 #ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATSTATUS_H_
23 #define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATSTATUS_H_
24 
25 #include <fastrtps/utils/fixed_size_string.hpp>
26 
27 #include <stdint.h>
28 #include <array>
29 #include <string>
30 #include <vector>
31 #include <map>
32 #include <bitset>
33 
34 #if defined(_WIN32)
35 #if defined(EPROSIMA_USER_DLL_EXPORT)
36 #define eProsima_user_DllExport __declspec( dllexport )
37 #else
38 #define eProsima_user_DllExport
39 #endif // EPROSIMA_USER_DLL_EXPORT
40 #else
41 #define eProsima_user_DllExport
42 #endif // _WIN32
43 
44 #if defined(_WIN32)
45 #if defined(EPROSIMA_USER_DLL_EXPORT)
46 #if defined(NavSatStatus_SOURCE)
47 #define NavSatStatus_DllAPI __declspec( dllexport )
48 #else
49 #define NavSatStatus_DllAPI __declspec( dllimport )
50 #endif // NavSatStatus_SOURCE
51 #else
52 #define NavSatStatus_DllAPI
53 #endif // EPROSIMA_USER_DLL_EXPORT
54 #else
55 #define NavSatStatus_DllAPI
56 #endif // _WIN32
57 
58 namespace eprosima {
59 namespace fastcdr {
60 class Cdr;
61 } // namespace fastcdr
62 } // namespace eprosima
63 
64 namespace sensor_msgs {
65  namespace msg {
66  const uint8_t NavSatStatus__STATUS_NO_FIX = 255;
67  const uint8_t NavSatStatus__STATUS_FIX = 0;
68  const uint8_t NavSatStatus__STATUS_SBAS_FIX = 1;
69  const uint8_t NavSatStatus__STATUS_GBAS_FIX = 2;
70  const uint16_t NavSatStatus__SERVICE_GPS = 1;
71  const uint16_t NavSatStatus__SERVICE_GLONASS = 2;
72  const uint16_t NavSatStatus__SERVICE_COMPASS = 4;
73  const uint16_t NavSatStatus__SERVICE_GALILEO = 8;
74  /*!
75  * @brief This class represents the structure NavSatStatus defined by the user in the IDL file.
76  * @ingroup NAVSATSTATUS
77  */
79  {
80  public:
81 
82  /*!
83  * @brief Default constructor.
84  */
86 
87  /*!
88  * @brief Default destructor.
89  */
90  eProsima_user_DllExport ~NavSatStatus();
91 
92  /*!
93  * @brief Copy constructor.
94  * @param x Reference to the object sensor_msgs::msg::NavSatStatus that will be copied.
95  */
96  eProsima_user_DllExport NavSatStatus(
97  const NavSatStatus& x);
98 
99  /*!
100  * @brief Move constructor.
101  * @param x Reference to the object sensor_msgs::msg::NavSatStatus that will be copied.
102  */
103  eProsima_user_DllExport NavSatStatus(
104  NavSatStatus&& x) noexcept;
105 
106  /*!
107  * @brief Copy assignment.
108  * @param x Reference to the object sensor_msgs::msg::NavSatStatus that will be copied.
109  */
110  eProsima_user_DllExport NavSatStatus& operator =(
111  const NavSatStatus& x);
112 
113  /*!
114  * @brief Move assignment.
115  * @param x Reference to the object sensor_msgs::msg::NavSatStatus that will be copied.
116  */
117  eProsima_user_DllExport NavSatStatus& operator =(
118  NavSatStatus&& x) noexcept;
119 
120  /*!
121  * @brief Comparison operator.
122  * @param x sensor_msgs::msg::NavSatStatus object to compare.
123  */
125  const NavSatStatus& x) const;
126 
127  /*!
128  * @brief Comparison operator.
129  * @param x sensor_msgs::msg::NavSatStatus object to compare.
130  */
132  const NavSatStatus& x) const;
133 
134  /*!
135  * @brief This function sets a value in member status
136  * @param _status New value for member status
137  */
138  eProsima_user_DllExport void status(
139  uint8_t _status);
140 
141  /*!
142  * @brief This function returns the value of member status
143  * @return Value of member status
144  */
145  eProsima_user_DllExport uint8_t status() const;
146 
147  /*!
148  * @brief This function returns a reference to member status
149  * @return Reference to member status
150  */
151  eProsima_user_DllExport uint8_t& status();
152 
153  /*!
154  * @brief This function sets a value in member service
155  * @param _service New value for member service
156  */
157  eProsima_user_DllExport void service(
158  uint16_t _service);
159 
160  /*!
161  * @brief This function returns the value of member service
162  * @return Value of member service
163  */
164  eProsima_user_DllExport uint16_t service() const;
165 
166  /*!
167  * @brief This function returns a reference to member service
168  * @return Reference to member service
169  */
170  eProsima_user_DllExport uint16_t& service();
171 
172  /*!
173  * @brief This function returns the maximum serialized size of an object
174  * depending on the buffer alignment.
175  * @param current_alignment Buffer alignment.
176  * @return Maximum serialized size.
177  */
178  eProsima_user_DllExport static size_t getMaxCdrSerializedSize(
179  size_t current_alignment = 0);
180 
181  /*!
182  * @brief This function returns the serialized size of a data depending on the buffer alignment.
183  * @param data Data which is calculated its serialized size.
184  * @param current_alignment Buffer alignment.
185  * @return Serialized size.
186  */
187  eProsima_user_DllExport static size_t getCdrSerializedSize(
188  const sensor_msgs::msg::NavSatStatus& data,
189  size_t current_alignment = 0);
190 
191  /*!
192  * @brief This function serializes an object using CDR serialization.
193  * @param cdr CDR serialization object.
194  */
195  eProsima_user_DllExport void serialize(
196  eprosima::fastcdr::Cdr& cdr) const;
197 
198  /*!
199  * @brief This function deserializes an object using CDR serialization.
200  * @param cdr CDR serialization object.
201  */
202  eProsima_user_DllExport void deserialize(
203  eprosima::fastcdr::Cdr& cdr);
204 
205  /*!
206  * @brief This function returns the maximum serialized size of the Key of an object
207  * depending on the buffer alignment.
208  * @param current_alignment Buffer alignment.
209  * @return Maximum serialized size.
210  */
211  eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(
212  size_t current_alignment = 0);
213 
214  /*!
215  * @brief This function tells you if the Key has been defined for this type
216  */
217  eProsima_user_DllExport static bool isKeyDefined();
218 
219  /*!
220  * @brief This function serializes the key members of an object using CDR serialization.
221  * @param cdr CDR serialization object.
222  */
223  eProsima_user_DllExport void serializeKey(
224  eprosima::fastcdr::Cdr& cdr) const;
225 
226  private:
227  uint8_t m_status;
228  uint16_t m_service;
229  };
230  } // namespace msg
231 } // namespace sensor_msgs
232 
233 #endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATSTATUS_H_
const uint8_t NavSatStatus__STATUS_GBAS_FIX
Definition: NavSatStatus.h:69
const uint8_t NavSatStatus__STATUS_NO_FIX
Definition: NavSatStatus.h:66
bool operator==(const Waypoint &lhs, const Waypoint &rhs)
const uint16_t NavSatStatus__SERVICE_GPS
Definition: NavSatStatus.h:70
const uint16_t NavSatStatus__SERVICE_COMPASS
Definition: NavSatStatus.h:72
This class represents the structure NavSatStatus defined by the user in the IDL file.
Definition: NavSatStatus.h:78
const uint8_t NavSatStatus__STATUS_FIX
Definition: NavSatStatus.h:67
const uint16_t NavSatStatus__SERVICE_GALILEO
Definition: NavSatStatus.h:73
bool operator!=(const Waypoint &lhs, const Waypoint &rhs)
const uint16_t NavSatStatus__SERVICE_GLONASS
Definition: NavSatStatus.h:71
const uint8_t NavSatStatus__STATUS_SBAS_FIX
Definition: NavSatStatus.h:68