2323#define _FAST_DDS_GENERATED_TEST_COMPLETE_HPP_
2424
2525#include < array>
26- #include < bitset>
2726#include < cstdint>
28- #include < map>
2927#include < string>
3028#include < utility>
3129#include < vector>
3230
3331#include < fastcdr/cdr/fixed_size_string.hpp>
34- #include < fastcdr/xcdr/external.hpp>
3532#include < fastcdr/xcdr/optional.hpp>
36- #include < fastcdr/exceptions/BadParamException.h>
37-
3833#include " test_included_modules.hpp"
3934
4035#if defined(_WIN32)
6560 * @brief This class represents the enumeration Color defined by the user in the IDL file.
6661 * @ingroup test_complete
6762 */
68- enum Color : uint32_t
63+ enum class Color : uint32_t
6964{
7065 RED ,
7166 GREEN ,
@@ -77,16 +72,14 @@ enum Color : uint32_t
7772 * @brief This class represents the enumeration Material defined by the user in the IDL file.
7873 * @ingroup test_complete
7974 */
80- enum Material : uint32_t
75+ enum class Material : uint32_t
8176{
8277 WOOD ,
8378 PLASTIC ,
8479 METAL ,
8580 CONCRETE ,
8681 STONE
8782};
88-
89-
9083/* !
9184 * @brief This class represents the structure StructType defined by the user in the IDL file.
9285 * @ingroup test_complete
@@ -743,15 +736,13 @@ class StructType
743736 double m_double_field{0.0 };
744737 bool m_bool_field{false };
745738 std::string m_string_field;
746- Color m_enum_field{::RED };
747- Material m_enum2_field{::WOOD };
739+ Color m_enum_field{Color ::RED };
740+ Material m_enum2_field{Material ::WOOD };
748741 eprosima::test2::StructType2 m_included_module_struct;
749742
750743};
751744const uint32_t max_array_size = 3 ;
752745const uint32_t max_seq_size = 5 ;
753-
754-
755746/* !
756747 * @brief This class represents the structure CompleteTestType defined by the user in the IDL file.
757748 * @ingroup test_complete
@@ -4030,8 +4021,8 @@ class CompleteTestType
40304021 double m_double_field{0.0 };
40314022 bool m_bool_field{false };
40324023 std::string m_string_field;
4033- Color m_enum_field{::RED };
4034- Material m_enum2_field{::WOOD };
4024+ Color m_enum_field{Color ::RED };
4025+ Material m_enum2_field{Material ::WOOD };
40354026 StructType m_struct_field;
40364027 eprosima::fastcdr::optional<char > m_char_opt_field;
40374028 eprosima::fastcdr::optional<uint8_t > m_uint8_opt_field;
@@ -4059,8 +4050,8 @@ class CompleteTestType
40594050 std::array<float , max_array_size> m_array_float_field{0.0 };
40604051 std::array<double , max_array_size> m_array_double_field{0.0 };
40614052 std::array<bool , max_array_size> m_array_bool_field{false };
4062- std::array<Color, max_array_size> m_array_enum_field{::RED };
4063- std::array<Material, max_array_size> m_array_enum2_field{::WOOD };
4053+ std::array<Color, max_array_size> m_array_enum_field{Color ::RED };
4054+ std::array<Material, max_array_size> m_array_enum2_field{Material ::WOOD };
40644055 std::array<StructType, max_array_size> m_array_struct_field;
40654056 std::vector<char > m_bounded_sequence_char_field;
40664057 std::vector<uint8_t > m_bounded_sequence_uint8_field;
@@ -4092,8 +4083,6 @@ class CompleteTestType
40924083 std::vector<StructType> m_unbounded_sequence_struct_field;
40934084
40944085};
4095-
4096-
40974086/* !
40984087 * @brief This class represents the structure KeyedCompleteTestType defined by the user in the IDL file.
40994088 * @ingroup test_complete
@@ -7409,8 +7398,8 @@ class KeyedCompleteTestType
74097398 double m_double_field{0.0 };
74107399 bool m_bool_field{false };
74117400 std::string m_string_field;
7412- Color m_enum_field{::RED };
7413- Material m_enum2_field{::WOOD };
7401+ Color m_enum_field{Color ::RED };
7402+ Material m_enum2_field{Material ::WOOD };
74147403 StructType m_struct_field;
74157404 eprosima::fastcdr::optional<char > m_char_opt_field;
74167405 eprosima::fastcdr::optional<uint8_t > m_uint8_opt_field;
@@ -7438,8 +7427,8 @@ class KeyedCompleteTestType
74387427 std::array<float , max_array_size> m_array_float_field{0.0 };
74397428 std::array<double , max_array_size> m_array_double_field{0.0 };
74407429 std::array<bool , max_array_size> m_array_bool_field{false };
7441- std::array<Color, max_array_size> m_array_enum_field{::RED };
7442- std::array<Material, max_array_size> m_array_enum2_field{::WOOD };
7430+ std::array<Color, max_array_size> m_array_enum_field{Color ::RED };
7431+ std::array<Material, max_array_size> m_array_enum2_field{Material ::WOOD };
74437432 std::array<StructType, max_array_size> m_array_struct_field;
74447433 std::vector<char > m_bounded_sequence_char_field;
74457434 std::vector<uint8_t > m_bounded_sequence_uint8_field;
0 commit comments