CARLA
StringPubSubTypes.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 StringPubSubTypes.h
17  * This header file contains the declaration of the serialization functions.
18  *
19  * This file was generated by the tool fastcdrgen.
20  */
21 
22 #ifndef _FAST_DDS_GENERATED_STD_MSGS_MSG_STRING_PUBSUBTYPES_H_
23 #define _FAST_DDS_GENERATED_STD_MSGS_MSG_STRING_PUBSUBTYPES_H_
24 
25 #include <fastdds/dds/topic/TopicDataType.hpp>
26 #include <fastrtps/utils/md5.h>
27 
28 #include "String.h"
29 
30 #if !defined(GEN_API_VER) || (GEN_API_VER != 1)
31 #error \
32  Generated String is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen.
33 #endif // GEN_API_VER
34 
35 namespace std_msgs
36 {
37  namespace msg
38  {
39 
40  /*!
41  * @brief This class represents the TopicDataType of the type String defined by the user in the IDL file.
42  * @ingroup STRING
43  */
44  class StringPubSubType : public eprosima::fastdds::dds::TopicDataType
45  {
46  public:
47 
48  typedef String type;
49 
51 
52  eProsima_user_DllExport virtual ~StringPubSubType() override;
53 
55  void* data,
57 
60  void* data) override;
61 
62  eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(
63  void* data) override;
64 
65  eProsima_user_DllExport virtual bool getKey(
66  void* data,
68  bool force_md5 = false) override;
69 
70  eProsima_user_DllExport virtual void* createData() override;
71 
73  void* data) override;
74 
75  #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
76  eProsima_user_DllExport inline bool is_bounded() const override
77  {
78  return false;
79  }
80 
81  #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
82 
83  #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
84  eProsima_user_DllExport inline bool is_plain() const override
85  {
86  return false;
87  }
88 
89  #endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
90 
91  #ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
92  eProsima_user_DllExport inline bool construct_sample(
93  void* memory) const override
94  {
95  (void)memory;
96  return false;
97  }
98 
99  #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
100  MD5 m_md5;
101  unsigned char* m_keyBuffer;
102  };
103  }
104 }
105 
106 #endif // _FAST_DDS_GENERATED_STD_MSGS_MSG_STRING_PUBSUBTYPES_H_
virtual eProsima_user_DllExport bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override
virtual eProsima_user_DllExport void * createData() override
eprosima::fastrtps::rtps::InstanceHandle_t InstanceHandle_t
virtual eProsima_user_DllExport std::function< uint32_t()> getSerializedSizeProvider(void *data) override
eProsima_user_DllExport StringPubSubType()
This class represents the structure String defined by the user in the IDL file.
virtual eProsima_user_DllExport void deleteData(void *data) override
#define eProsima_user_DllExport
Definition: CameraInfo.h:44
virtual eProsima_user_DllExport bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle, bool force_md5=false) override
eprosima::fastrtps::rtps::SerializedPayload_t SerializedPayload_t
virtual eProsima_user_DllExport ~StringPubSubType() override
This class represents the TopicDataType of the type String defined by the user in the IDL file...
virtual eProsima_user_DllExport bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override