| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
DynamicData.hpp
1// Copyright 2023 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#ifndef FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__DYNAMICDATA_HPP
16#define FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__DYNAMICDATA_HPP
17
18#include <memory>
19#include <string>
20
21#include <fastdds/dds/core/ReturnCode.hpp>
22#include <fastdds/dds/xtypes/dynamic_types/DynamicType.hpp>
23#include <fastdds/dds/xtypes/dynamic_types/Types.hpp>
24#include <fastdds/fastdds_dll.hpp>
25#include <fastdds/rtps/common/Types.hpp>
26
27 namespace eprosima {
28 namespace fastdds {
29 namespace dds {
30
31 class DynamicData : public std::enable_shared_from_this<DynamicData>
32{
33 public:
34
35 using _ref_type = typename traits<DynamicData>::ref_type;
36
41 FASTDDS_EXPORTED_API virtual traits<DynamicType>::ref_type type() = 0;
42
50 FASTDDS_EXPORTED_API virtual ReturnCode_t get_descriptor(
51 traits<MemberDescriptor>::ref_type& value,
52 MemberId id) = 0;
53
63 FASTDDS_EXPORTED_API virtual bool equals(
64 traits<DynamicData>::ref_type other) = 0;
65
76 FASTDDS_EXPORTED_API virtual MemberId get_member_id_by_name(
77 const ObjectName& name) = 0;
78
92 FASTDDS_EXPORTED_API virtual MemberId get_member_id_at_index(
93 uint32_t index) = 0;
94
109 FASTDDS_EXPORTED_API virtual uint32_t get_item_count() = 0;
110
116 FASTDDS_EXPORTED_API virtual ReturnCode_t clear_all_values() = 0;
117
123 FASTDDS_EXPORTED_API virtual ReturnCode_t clear_nonkey_values() = 0;
124
140 FASTDDS_EXPORTED_API virtual ReturnCode_t clear_value(
141 MemberId id) = 0;
142
149 FASTDDS_EXPORTED_API virtual traits<DynamicData>::ref_type loan_value(
150 MemberId id) = 0;
151
158 FASTDDS_EXPORTED_API virtual ReturnCode_t return_loaned_value(
159 traits<DynamicData>::ref_type value) = 0;
160
166 FASTDDS_EXPORTED_API virtual traits<DynamicData>::ref_type clone() = 0;
167
176 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int32_value(
177 int32_t& value,
178 MemberId id) = 0;
179
188 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int32_value(
189 MemberId id,
190 int32_t value) = 0;
191
200 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint32_value(
201 uint32_t& value,
202 MemberId id) = 0;
203
212 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint32_value(
213 MemberId id,
214 uint32_t value) = 0;
215
224 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int8_value(
225 int8_t& value,
226 MemberId id) = 0;
227
236 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int8_value(
237 MemberId id,
238 int8_t value) = 0;
239
248 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint8_value(
249 uint8_t& value,
250 MemberId id) = 0;
251
260 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint8_value(
261 MemberId id,
262 uint8_t value) = 0;
263
272 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int16_value(
273 int16_t& value,
274 MemberId id) = 0;
275
284 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int16_value(
285 MemberId id,
286 int16_t value) = 0;
287
296 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint16_value(
297 uint16_t& value,
298 MemberId id) = 0;
299
308 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint16_value(
309 MemberId id,
310 uint16_t value) = 0;
311
320 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int64_value(
321 int64_t& value,
322 MemberId id) = 0;
323
332 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int64_value(
333 MemberId id,
334 int64_t value) = 0;
335
344 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint64_value(
345 uint64_t& value,
346 MemberId id) = 0;
347
356 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint64_value(
357 MemberId id,
358 uint64_t value) = 0;
359
368 FASTDDS_EXPORTED_API virtual ReturnCode_t get_float32_value(
369 float& value,
370 MemberId id) = 0;
371
380 FASTDDS_EXPORTED_API virtual ReturnCode_t set_float32_value(
381 MemberId id,
382 float value) = 0;
383
392 FASTDDS_EXPORTED_API virtual ReturnCode_t get_float64_value(
393 double& value,
394 MemberId id) = 0;
395
404 FASTDDS_EXPORTED_API virtual ReturnCode_t set_float64_value(
405 MemberId id,
406 double value) = 0;
407
417 FASTDDS_EXPORTED_API virtual ReturnCode_t get_float128_value(
418 long double& value,
419 MemberId id) = 0;
420
429 FASTDDS_EXPORTED_API virtual ReturnCode_t set_float128_value(
430 MemberId id,
431 long double value) = 0;
432
441 FASTDDS_EXPORTED_API virtual ReturnCode_t get_char8_value(
442 char& value,
443 MemberId id) = 0;
444
453 FASTDDS_EXPORTED_API virtual ReturnCode_t set_char8_value(
454 MemberId id,
455 char value) = 0;
456
465 FASTDDS_EXPORTED_API virtual ReturnCode_t get_char16_value(
466 wchar_t& value,
467 MemberId id) = 0;
468
477 FASTDDS_EXPORTED_API virtual ReturnCode_t set_char16_value(
478 MemberId id,
479 wchar_t value) = 0;
480
489 FASTDDS_EXPORTED_API virtual ReturnCode_t get_byte_value(
490 eprosima::fastdds::rtps::octet& value,
491 MemberId id) = 0;
492
501 FASTDDS_EXPORTED_API virtual ReturnCode_t set_byte_value(
502 MemberId id,
503 eprosima::fastdds::rtps::octet value) = 0;
504
513 FASTDDS_EXPORTED_API virtual ReturnCode_t get_boolean_value(
514 bool& value,
515 MemberId id) = 0;
516
525 FASTDDS_EXPORTED_API virtual ReturnCode_t set_boolean_value(
526 MemberId id,
527 bool value) = 0;
528
537 FASTDDS_EXPORTED_API virtual ReturnCode_t get_string_value(
538 std::string& value,
539 MemberId id) = 0;
540
550 FASTDDS_EXPORTED_API virtual ReturnCode_t set_string_value(
551 MemberId id,
552 const std::string& value) = 0;
553
562 FASTDDS_EXPORTED_API virtual ReturnCode_t get_wstring_value(
563 std::wstring& value,
564 MemberId id) = 0;
565
575 FASTDDS_EXPORTED_API virtual ReturnCode_t set_wstring_value(
576 MemberId id,
577 const std::wstring& value) = 0;
578
587 FASTDDS_EXPORTED_API virtual ReturnCode_t get_complex_value(
588 traits<DynamicData>::ref_type& value,
589 MemberId id) = 0;
590
600 FASTDDS_EXPORTED_API virtual ReturnCode_t set_complex_value(
601 MemberId id,
602 traits<DynamicData>::ref_type value) = 0;
603
612 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int32_values(
613 Int32Seq& value,
614 MemberId id) = 0;
615
624 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int32_values(
625 MemberId id,
626 const Int32Seq& value) = 0;
627
636 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint32_values(
637 UInt32Seq& value,
638 MemberId id) = 0;
639
648 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint32_values(
649 MemberId id,
650 const UInt32Seq& value) = 0;
651
660 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int8_values(
661 Int8Seq& value,
662 MemberId id) = 0;
663
672 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int8_values(
673 MemberId id,
674 const Int8Seq& value) = 0;
675
684 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint8_values(
685 UInt8Seq& value,
686 MemberId id) = 0;
687
696 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint8_values(
697 MemberId id,
698 const UInt8Seq& value) = 0;
699
708 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int16_values(
709 Int16Seq& value,
710 MemberId id) = 0;
711
720 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int16_values(
721 MemberId id,
722 const Int16Seq& value) = 0;
723
732 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint16_values(
733 UInt16Seq& value,
734 MemberId id) = 0;
735
744 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint16_values(
745 MemberId id,
746 const UInt16Seq& value) = 0;
747
756 FASTDDS_EXPORTED_API virtual ReturnCode_t get_int64_values(
757 Int64Seq& value,
758 MemberId id) = 0;
759
768 FASTDDS_EXPORTED_API virtual ReturnCode_t set_int64_values(
769 MemberId id,
770 const Int64Seq& value) = 0;
771
780 FASTDDS_EXPORTED_API virtual ReturnCode_t get_uint64_values(
781 UInt64Seq& value,
782 MemberId id) = 0;
783
792 FASTDDS_EXPORTED_API virtual ReturnCode_t set_uint64_values(
793 MemberId id,
794 const UInt64Seq& value) = 0;
795
804 FASTDDS_EXPORTED_API virtual ReturnCode_t get_float32_values(
805 Float32Seq& value,
806 MemberId id) = 0;
807
816 FASTDDS_EXPORTED_API virtual ReturnCode_t set_float32_values(
817 MemberId id,
818 const Float32Seq& value) = 0;
819
828 FASTDDS_EXPORTED_API virtual ReturnCode_t get_float64_values(
829 Float64Seq& value,
830 MemberId id) = 0;
831
840 FASTDDS_EXPORTED_API virtual ReturnCode_t set_float64_values(
841 MemberId id,
842 const Float64Seq& value) = 0;
843
854 FASTDDS_EXPORTED_API virtual ReturnCode_t get_float128_values(
855 Float128Seq& value,
856 MemberId id) = 0;
857
867 FASTDDS_EXPORTED_API virtual ReturnCode_t set_float128_values(
868 MemberId id,
869 const Float128Seq& value) = 0;
870
879 FASTDDS_EXPORTED_API virtual ReturnCode_t get_char8_values(
880 CharSeq& value,
881 MemberId id) = 0;
882
891 FASTDDS_EXPORTED_API virtual ReturnCode_t set_char8_values(
892 MemberId id,
893 const CharSeq& value) = 0;
894
903 FASTDDS_EXPORTED_API virtual ReturnCode_t get_char16_values(
904 WcharSeq& value,
905 MemberId id) = 0;
906
915 FASTDDS_EXPORTED_API virtual ReturnCode_t set_char16_values(
916 MemberId id,
917 const WcharSeq& value) = 0;
918
927 FASTDDS_EXPORTED_API virtual ReturnCode_t get_byte_values(
928 ByteSeq& value,
929 MemberId id) = 0;
930
939 FASTDDS_EXPORTED_API virtual ReturnCode_t set_byte_values(
940 MemberId id,
941 const ByteSeq& value) = 0;
942
951 FASTDDS_EXPORTED_API virtual ReturnCode_t get_boolean_values(
952 BooleanSeq& value,
953 MemberId id) = 0;
954
963 FASTDDS_EXPORTED_API virtual ReturnCode_t set_boolean_values(
964 MemberId id,
965 const BooleanSeq& value) = 0;
966
975 FASTDDS_EXPORTED_API virtual ReturnCode_t get_string_values(
976 StringSeq& value,
977 MemberId id) = 0;
978
987 FASTDDS_EXPORTED_API virtual ReturnCode_t set_string_values(
988 MemberId id,
989 const StringSeq& value) = 0;
990
999 FASTDDS_EXPORTED_API virtual ReturnCode_t get_wstring_values(
1000 WstringSeq& value,
1001 MemberId id) = 0;
1002
1011 FASTDDS_EXPORTED_API virtual ReturnCode_t set_wstring_values(
1012 MemberId id,
1013 const WstringSeq& value) = 0;
1014
1015 protected:
1016
1017 DynamicData() = default;
1018
1019 virtual ~DynamicData() = default;
1020
1021 traits<DynamicData>::ref_type _this();
1022
1023 private:
1024
1025 DynamicData(
1026 const DynamicData&) = delete;
1027
1028 DynamicData(
1029 DynamicData&&) = delete;
1030
1031 DynamicData& operator =(
1032 const DynamicData&) = delete;
1033
1034 DynamicData& operator =(
1035 DynamicData&&) = delete;
1036};
1037
1038} // namespace dds
1039} // namespace fastdds
1040} // namespace eprosima
1041
1042#endif // FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__DYNAMICDATA_HPP
eprosima::fastdds::dds::DynamicData::get_int16_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int16_values(Int16Seq &value, MemberId id)=0
Retrieves a sequence of int16 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_int64_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int64_values(Int64Seq &value, MemberId id)=0
Retrieves a sequence of int64 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_uint32_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint32_value(MemberId id, uint32_t value)=0
Sets an uint32 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_char16_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_char16_value(MemberId id, wchar_t value)=0
Sets an char16 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_string_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_string_values(StringSeq &value, MemberId id)=0
Retrieves a sequence of string values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_uint64_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint64_value(uint64_t &value, MemberId id)=0
Retrieves an uint64 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_complex_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_complex_value(traits< DynamicData >::ref_type &value, MemberId id)=0
Retrieves a complex value associated to an identifier.
eprosima::fastdds::dds::DynamicData::clone
virtual FASTDDS_EXPORTED_API traits< DynamicData >::ref_type clone()=0
Creates and returns a new data sample with the same contents as this one.
eprosima::fastdds::dds::DynamicData::_ref_type
typename traits< DynamicData >::ref_type _ref_type
Definition DynamicData.hpp:35
eprosima::fastdds::dds::DynamicData::set_float32_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_float32_values(MemberId id, const Float32Seq &value)=0
Sets a sequence of float32 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_uint64_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint64_value(MemberId id, uint64_t value)=0
Sets an uint64 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_string_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_string_values(MemberId id, const StringSeq &value)=0
Sets a sequence of string values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_int32_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int32_values(Int32Seq &value, MemberId id)=0
Retrieves a sequence of int32 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_int8_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int8_value(int8_t &value, MemberId id)=0
Retrieves an int8 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_uint32_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint32_value(uint32_t &value, MemberId id)=0
Retrieves an uint32 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_char8_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_char8_values(CharSeq &value, MemberId id)=0
Retrieves a sequence of char8 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::clear_nonkey_values
virtual FASTDDS_EXPORTED_API ReturnCode_t clear_nonkey_values()=0
Clear all members not associated to the key.
eprosima::fastdds::dds::DynamicData::set_float128_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_float128_value(MemberId id, long double value)=0
Sets an float128 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_boolean_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_boolean_value(MemberId id, bool value)=0
Sets an bool value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_boolean_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_boolean_values(MemberId id, const BooleanSeq &value)=0
Sets a sequence of bool values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_char16_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_char16_value(wchar_t &value, MemberId id)=0
Retrieves an char16 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_descriptor
virtual FASTDDS_EXPORTED_API ReturnCode_t get_descriptor(traits< MemberDescriptor >::ref_type &value, MemberId id)=0
Retrieves the MemberDescriptor associated to a member.
eprosima::fastdds::dds::DynamicData::set_uint64_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint64_values(MemberId id, const UInt64Seq &value)=0
Sets a sequence of uint64 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_boolean_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_boolean_values(BooleanSeq &value, MemberId id)=0
Retrieves a sequence of bool values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_float32_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_float32_values(Float32Seq &value, MemberId id)=0
Retrieves a sequence of float32 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_wstring_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_wstring_values(WstringSeq &value, MemberId id)=0
Retrieves a sequence of wstring values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_byte_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_byte_value(eprosima::fastdds::rtps::octet &value, MemberId id)=0
Retrieves an byte value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_boolean_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_boolean_value(bool &value, MemberId id)=0
Retrieves an bool value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_item_count
virtual FASTDDS_EXPORTED_API uint32_t get_item_count()=0
Provides the item count of the data and depends on the type of object:
eprosima::fastdds::dds::DynamicData::set_uint16_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint16_value(MemberId id, uint16_t value)=0
Sets an uint16 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_float64_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_float64_value(double &value, MemberId id)=0
Retrieves an float64 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_uint8_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint8_value(MemberId id, uint8_t value)=0
Sets an uint8 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_int16_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int16_value(int16_t &value, MemberId id)=0
Retrieves an int16 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_wstring_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_wstring_value(MemberId id, const std::wstring &value)=0
Sets an wstring value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_int16_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int16_value(MemberId id, int16_t value)=0
Sets an int16 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_char8_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_char8_value(char &value, MemberId id)=0
Retrieves an char8 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_float128_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_float128_values(Float128Seq &value, MemberId id)=0
Retrieves a sequence of float128 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_uint8_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint8_values(UInt8Seq &value, MemberId id)=0
Retrieves a sequence of uint8 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_int16_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int16_values(MemberId id, const Int16Seq &value)=0
Sets a sequence of int16 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_char16_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_char16_values(WcharSeq &value, MemberId id)=0
Retrieves a sequence of char16 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_float128_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_float128_values(MemberId id, const Float128Seq &value)=0
Sets a sequence of float128 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_string_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_string_value(std::string &value, MemberId id)=0
Retrieves an string value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_int8_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int8_value(MemberId id, int8_t value)=0
Sets an int8 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_int64_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int64_values(MemberId id, const Int64Seq &value)=0
Sets a sequence of int64 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_int8_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int8_values(Int8Seq &value, MemberId id)=0
Retrieves a sequence of int8 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::clear_value
virtual FASTDDS_EXPORTED_API ReturnCode_t clear_value(MemberId id)=0
Clear a member.
eprosima::fastdds::dds::DynamicData::set_uint32_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint32_values(MemberId id, const UInt32Seq &value)=0
Sets a sequence of uint32 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_float64_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_float64_values(MemberId id, const Float64Seq &value)=0
Sets a sequence of float64 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_float128_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_float128_value(long double &value, MemberId id)=0
Retrieves an float128 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::equals
virtual FASTDDS_EXPORTED_API bool equals(traits< DynamicData >::ref_type other)=0
Compares two DynamicData, equality requires:
eprosima::fastdds::dds::DynamicData::set_int64_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int64_value(MemberId id, int64_t value)=0
Sets an int64 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_float64_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_float64_values(Float64Seq &value, MemberId id)=0
Retrieves a sequence of float64 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_byte_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_byte_values(ByteSeq &value, MemberId id)=0
Retrieves a sequence of byte values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_char8_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_char8_values(MemberId id, const CharSeq &value)=0
Sets a sequence of char8 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_wstring_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_wstring_value(std::wstring &value, MemberId id)=0
Retrieves an wstring value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_char16_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_char16_values(MemberId id, const WcharSeq &value)=0
Sets a sequence of char16 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::return_loaned_value
virtual FASTDDS_EXPORTED_API ReturnCode_t return_loaned_value(traits< DynamicData >::ref_type value)=0
Returns a loan retrieved using loan_value.
eprosima::fastdds::dds::DynamicData::set_byte_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_byte_value(MemberId id, eprosima::fastdds::rtps::octet value)=0
Sets an byte value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_int32_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int32_value(MemberId id, int32_t value)=0
Sets an int32 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_int8_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int8_values(MemberId id, const Int8Seq &value)=0
Sets a sequence of int8 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_uint8_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint8_values(MemberId id, const UInt8Seq &value)=0
Sets a sequence of uint8 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_wstring_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_wstring_values(MemberId id, const WstringSeq &value)=0
Sets a sequence of wstring values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_int32_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int32_value(int32_t &value, MemberId id)=0
Retrieves an int32 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_float32_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_float32_value(MemberId id, float value)=0
Sets an float32 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_member_id_by_name
virtual FASTDDS_EXPORTED_API MemberId get_member_id_by_name(const ObjectName &name)=0
Queries MemberId by name.
eprosima::fastdds::dds::DynamicData::get_float32_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_float32_value(float &value, MemberId id)=0
Retrieves an float32 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::~DynamicData
virtual ~DynamicData()=default
eprosima::fastdds::dds::DynamicData::loan_value
virtual FASTDDS_EXPORTED_API traits< DynamicData >::ref_type loan_value(MemberId id)=0
Loans a DynamicData reference within the sample
eprosima::fastdds::dds::DynamicData::get_uint32_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint32_values(UInt32Seq &value, MemberId id)=0
Retrieves a sequence of uint32 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::clear_all_values
virtual FASTDDS_EXPORTED_API ReturnCode_t clear_all_values()=0
Clear all members associated to the object.
eprosima::fastdds::dds::DynamicData::set_float64_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_float64_value(MemberId id, double value)=0
Sets an float64 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_byte_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_byte_values(MemberId id, const ByteSeq &value)=0
Sets a sequence of byte values associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_string_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_string_value(MemberId id, const std::string &value)=0
Sets an string value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_member_id_at_index
virtual FASTDDS_EXPORTED_API MemberId get_member_id_at_index(uint32_t index)=0
Queries MemberId by index The query result depends on the type of the sample.
eprosima::fastdds::dds::DynamicData::get_uint64_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint64_values(UInt64Seq &value, MemberId id)=0
Retrieves a sequence of uint64 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_uint16_values
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint16_values(UInt16Seq &value, MemberId id)=0
Retrieves a sequence of uint16 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::type
virtual FASTDDS_EXPORTED_API traits< DynamicType >::ref_type type()=0
Retrieve the DynamicType reference associated to this DynamicData.
eprosima::fastdds::dds::DynamicData::get_uint16_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint16_value(uint16_t &value, MemberId id)=0
Retrieves an uint16 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_uint8_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_uint8_value(uint8_t &value, MemberId id)=0
Retrieves an uint8 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_int32_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_int32_values(MemberId id, const Int32Seq &value)=0
Sets a sequence of int32 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::_this
traits< DynamicData >::ref_type _this()
eprosima::fastdds::dds::DynamicData::set_char8_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_char8_value(MemberId id, char value)=0
Sets an char8 value associated to an identifier.
eprosima::fastdds::dds::DynamicData::DynamicData
DynamicData()=default
eprosima::fastdds::dds::DynamicData::set_complex_value
virtual FASTDDS_EXPORTED_API ReturnCode_t set_complex_value(MemberId id, traits< DynamicData >::ref_type value)=0
Sets a complex value associated to an identifier.
eprosima::fastdds::dds::DynamicData::set_uint16_values
virtual FASTDDS_EXPORTED_API ReturnCode_t set_uint16_values(MemberId id, const UInt16Seq &value)=0
Sets a sequence of uint16 values associated to an identifier.
eprosima::fastdds::dds::DynamicData::get_int64_value
virtual FASTDDS_EXPORTED_API ReturnCode_t get_int64_value(int64_t &value, MemberId id)=0
Retrieves an int64 value associated to an identifier.
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::MemberId
uint32_t MemberId
Definition dynamic_language_binding.hpp:122
eprosima::fastdds::dds::UInt8Seq
std::vector< uint8_t > UInt8Seq
Definition dynamic_language_binding.hpp:132
eprosima::fastdds::dds::UInt16Seq
std::vector< uint16_t > UInt16Seq
Definition dynamic_language_binding.hpp:136
eprosima::fastdds::dds::CharSeq
std::vector< char > CharSeq
Definition dynamic_language_binding.hpp:148
eprosima::fastdds::dds::Float128Seq
std::vector< long double > Float128Seq
Definition dynamic_language_binding.hpp:146
eprosima::fastdds::dds::Int64Seq
std::vector< int64_t > Int64Seq
Definition dynamic_language_binding.hpp:138
eprosima::fastdds::dds::Float32Seq
std::vector< float > Float32Seq
Definition dynamic_language_binding.hpp:142
eprosima::fastdds::dds::Float64Seq
std::vector< double > Float64Seq
Definition dynamic_language_binding.hpp:144
eprosima::fastdds::dds::StringSeq
std::vector< std::string > StringSeq
Definition dynamic_language_binding.hpp:156
eprosima::fastdds::dds::WcharSeq
std::vector< wchar_t > WcharSeq
Definition dynamic_language_binding.hpp:150
eprosima::fastdds::dds::UInt32Seq
std::vector< uint32_t > UInt32Seq
Definition dynamic_language_binding.hpp:128
eprosima::fastdds::dds::BooleanSeq
std::vector< bool > BooleanSeq
Definition dynamic_language_binding.hpp:152
eprosima::fastdds::dds::Int32Seq
std::vector< int32_t > Int32Seq
Definition dynamic_language_binding.hpp:126
eprosima::fastdds::dds::ByteSeq
std::vector< uint8_t > ByteSeq
Definition dynamic_language_binding.hpp:154
eprosima::fastdds::dds::ReturnCode_t
int32_t ReturnCode_t
Definition DDSReturnCode.hpp:59
eprosima::fastdds::dds::UInt64Seq
std::vector< uint64_t > UInt64Seq
Definition dynamic_language_binding.hpp:140
eprosima::fastdds::dds::ObjectName
eprosima::fastcdr::fixed_string< 256 > ObjectName
Definition dynamic_language_binding.hpp:66
eprosima::fastdds::dds::Int16Seq
std::vector< int16_t > Int16Seq
Definition dynamic_language_binding.hpp:134
eprosima::fastdds::dds::WstringSeq
std::vector< std::wstring > WstringSeq
Definition dynamic_language_binding.hpp:158
eprosima::fastdds::dds::Int8Seq
std::vector< int8_t > Int8Seq
Definition dynamic_language_binding.hpp:130
eprosima::fastdds::rtps::octet
unsigned char octet
Definition Types.hpp:83
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::dds::traits::ref_type
typename ::std::shared_ptr< T > ref_type
Definition type_traits.hpp:29