blobPubSubTypes.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2023 Intel Corporation. All Rights Reserved.
3 
12 #ifndef _FAST_DDS_GENERATED_UDDS_BLOB_PUBSUBTYPES_H_
13 #define _FAST_DDS_GENERATED_UDDS_BLOB_PUBSUBTYPES_H_
14 
15 #include <fastdds/dds/topic/TopicDataType.hpp>
16 #include <fastrtps/utils/md5.h>
17 
18 #include "blob.h"
19 
20 #if !defined(GEN_API_VER) || (GEN_API_VER != 1)
21 #error \
22  Generated blob is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen.
23 #endif // GEN_API_VER
24 
25 namespace udds
26 {
31  class blobPubSubType : public eprosima::fastdds::dds::TopicDataType
32  {
33  public:
34 
35  typedef blob type;
36 
38 
39  eProsima_user_DllExport virtual ~blobPubSubType() override;
40 
42  void* data,
44 
47  void* data) override;
48 
50  void* data) override;
51 
52  eProsima_user_DllExport virtual bool getKey(
53  void* data,
55  bool force_md5 = false) override;
56 
57  eProsima_user_DllExport virtual void* createData() override;
58 
60  void* data) override;
61 
62  #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
63  eProsima_user_DllExport inline bool is_bounded() const override
64  {
65  return false;
66  }
67 
68  #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
69 
70  #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
71  eProsima_user_DllExport inline bool is_plain() const override
72  {
73  return false;
74  }
75 
76  #endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
77 
78  #ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
79  eProsima_user_DllExport inline bool construct_sample(
80  void* memory) const override
81  {
82  (void)memory;
83  return false;
84  }
85 
86  #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
87 
88  MD5 m_md5;
89  unsigned char* m_keyBuffer;
90  };
91 }
92 
93 #endif // _FAST_DDS_GENERATED_UDDS_BLOB_PUBSUBTYPES_H_
udds::blobPubSubType::blobPubSubType
eProsima_user_DllExport blobPubSubType()
Definition: blobPubSubTypes.cpp:21
udds::blobPubSubType::type
blob type
Definition: blobPubSubTypes.h:35
udds::blobPubSubType
This class represents the TopicDataType of the type blob defined by the user in the IDL file.
Definition: blobPubSubTypes.h:31
data
Definition: parser.hpp:153
udds::blobPubSubType::m_keyBuffer
unsigned char * m_keyBuffer
Definition: blobPubSubTypes.h:89
udds::blobPubSubType::deleteData
virtual eProsima_user_DllExport void deleteData(void *data) override
Definition: blobPubSubTypes.cpp:116
void
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
udds::blobPubSubType::m_md5
MD5 m_md5
Definition: blobPubSubTypes.h:88
udds::blobPubSubType::~blobPubSubType
virtual eProsima_user_DllExport ~blobPubSubType() override
Definition: blobPubSubTypes.cpp:34
blob.h
uint32_t
unsigned int uint32_t
Definition: stdint.h:80
udds::blobPubSubType::deserialize
virtual eProsima_user_DllExport bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override
Definition: blobPubSubTypes.cpp:71
eProsima_user_DllExport
#define eProsima_user_DllExport
Definition: blob.h:31
udds::blobPubSubType::createData
virtual eProsima_user_DllExport void * createData() override
Definition: blobPubSubTypes.cpp:111
udds
Definition: blob.h:55
udds::blobPubSubType::serialize
virtual eProsima_user_DllExport bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override
Definition: blobPubSubTypes.cpp:42
udds::blob
This class represents the structure blob defined by the user in the IDL file.
Definition: blob.h:60
SerializedPayload_t
eprosima::fastrtps::rtps::SerializedPayload_t SerializedPayload_t
Definition: blobPubSubTypes.cpp:17
udds::blobPubSubType::getKey
virtual eProsima_user_DllExport bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle, bool force_md5=false) override
Definition: blobPubSubTypes.cpp:122
InstanceHandle_t
eprosima::fastrtps::rtps::InstanceHandle_t InstanceHandle_t
Definition: blobPubSubTypes.cpp:18
udds::blobPubSubType::getSerializedSizeProvider
virtual eProsima_user_DllExport std::function< uint32_t()> getSerializedSizeProvider(void *data) override
Definition: blobPubSubTypes.cpp:101


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01