Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add latest C++ headers generated with nnvg 2.3.1 #265

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
440 changes: 220 additions & 220 deletions src/DSDL_Types.h.impl

Large diffs are not rendered by default.

20 changes: 14 additions & 6 deletions src/nunavut/support/serialization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
// enable_serialization_asserts: False
// enable_override_variable_array_capacity: False
// std: c++17
// variable_array_type_template:
// variable_array_type_include:
// cast_format: static_cast<{type}>({value})
// enable_allocator_support: False
// variable_array_type_include: <vector>
// variable_array_type_template: std::vector<{TYPE}>
// variable_array_type_constructor_args:
// allocator_include:
// allocator_type:
// allocator_is_default_constructible: True
// ctor_convention: default

#ifndef NUNAVUT_SUPPORT_SERIALIZATION_HPP_INCLUDED
#define NUNAVUT_SUPPORT_SERIALIZATION_HPP_INCLUDED
Expand Down Expand Up @@ -186,10 +190,14 @@ constexpr std::uint32_t omit_float_serialization_support = 0;
constexpr std::uint32_t enable_serialization_asserts = 0;
constexpr std::uint32_t enable_override_variable_array_capacity = 0;
constexpr std::uint32_t std = 628873475;
constexpr std::uint32_t variable_array_type_template = 0;
constexpr std::uint32_t variable_array_type_include = 0;
constexpr std::uint32_t cast_format = 1407868567;
constexpr std::uint32_t enable_allocator_support = 0;
constexpr std::uint32_t variable_array_type_include = 3320664631;
constexpr std::uint32_t variable_array_type_template = 4227611599;
constexpr std::uint32_t variable_array_type_constructor_args = 0;
constexpr std::uint32_t allocator_include = 0;
constexpr std::uint32_t allocator_type = 0;
constexpr std::uint32_t allocator_is_default_constructible = 1;
constexpr std::uint32_t ctor_convention = 3814588639;

} // end namespace options

Expand Down
57 changes: 41 additions & 16 deletions src/types/reg/udral/physics/acoustics/Note_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Checking this file under version control is not recommended since metadata in this header will change for each
// build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated.
//
// Generator: nunavut-2.0.9 (serialization was enabled)
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl
// Generated at: 2023-03-10 05:17:54.538242 UTC
// Generated at: 2024-01-12 03:09:36.167954 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.acoustics.Note
Expand All @@ -21,23 +21,27 @@
// version: (1, 0, 0)
// Platform
// python_implementation: CPython
// python_version: 3.10.6
// python_version: 3.10.12
// python_release_level: final
// python_build: ('main', 'Nov 14 2022 16:10:14')
// python_compiler: GCC 11.3.0
// python_build: ('main', 'Nov 20 2023 15:14:05')
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
// enable_serialization_asserts: False
// enable_override_variable_array_capacity: False
// std: c++17
// variable_array_type_template:
// variable_array_type_include:
// cast_format: static_cast<{type}>({value})
// enable_allocator_support: False
// variable_array_type_include: <vector>
// variable_array_type_template: std::vector<{TYPE}>
// variable_array_type_constructor_args:
// allocator_include:
// allocator_type:
// allocator_is_default_constructible: True
// ctor_convention: default
// Uses Language Features
// Uses std_variant:yes
#ifndef REG_UDRAL_PHYSICS_ACOUSTICS_NOTE_0_1_HPP_INCLUDED
Expand Down Expand Up @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475,
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::variable_array_type_template == 0,
static_assert( nunavut::support::options::cast_format == 1407868567,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::variable_array_type_include == 0,
static_assert( nunavut::support::options::variable_array_type_include == 3320664631,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::cast_format == 1407868567,
static_assert( nunavut::support::options::variable_array_type_template == 4227611599,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::variable_array_type_constructor_args == 0,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::allocator_include == 0,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::enable_allocator_support == 0,
static_assert( nunavut::support::options::allocator_type == 0,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::allocator_is_default_constructible == 1,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::ctor_convention == 3814588639,
"/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
Expand Down Expand Up @@ -142,6 +166,7 @@ struct Note_0_1 final
static constexpr std::size_t SerializationBufferSizeBytes = 12UL;
static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation");
static_assert(ExtentBytes < (std::numeric_limits<std::size_t>::max() / 8U), "This message is too large to be handled by the selected types");

struct TypeOf
{
TypeOf() = delete;
Expand All @@ -155,11 +180,11 @@ struct Note_0_1 final
// | FIELDS
// +----------------------------------------------------------------------+

_traits_::TypeOf::frequency frequency;
_traits_::TypeOf::frequency frequency{};

_traits_::TypeOf::duration duration;
_traits_::TypeOf::duration duration{};

_traits_::TypeOf::acoustic_power acoustic_power;
_traits_::TypeOf::acoustic_power acoustic_power{};
};

inline nunavut::support::SerializeResult serialize(const Note_0_1& obj,
Expand Down
55 changes: 40 additions & 15 deletions src/types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Checking this file under version control is not recommended since metadata in this header will change for each
// build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated.
//
// Generator: nunavut-2.0.9 (serialization was enabled)
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl
// Generated at: 2023-03-10 05:17:54.513707 UTC
// Generated at: 2024-01-12 03:09:36.040071 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.dynamics.rotation.PlanarTs
Expand All @@ -21,23 +21,27 @@
// version: (1, 0, 0)
// Platform
// python_implementation: CPython
// python_version: 3.10.6
// python_version: 3.10.12
// python_release_level: final
// python_build: ('main', 'Nov 14 2022 16:10:14')
// python_compiler: GCC 11.3.0
// python_build: ('main', 'Nov 20 2023 15:14:05')
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
// enable_serialization_asserts: False
// enable_override_variable_array_capacity: False
// std: c++17
// variable_array_type_template:
// variable_array_type_include:
// cast_format: static_cast<{type}>({value})
// enable_allocator_support: False
// variable_array_type_include: <vector>
// variable_array_type_template: std::vector<{TYPE}>
// variable_array_type_constructor_args:
// allocator_include:
// allocator_type:
// allocator_is_default_constructible: True
// ctor_convention: default
// Uses Language Features
// Uses std_variant:yes
#ifndef REG_UDRAL_PHYSICS_DYNAMICS_ROTATION_PLANAR_TS_0_1_HPP_INCLUDED
Expand Down Expand Up @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475,
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::variable_array_type_template == 0,
static_assert( nunavut::support::options::cast_format == 1407868567,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::variable_array_type_include == 0,
static_assert( nunavut::support::options::variable_array_type_include == 3320664631,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::cast_format == 1407868567,
static_assert( nunavut::support::options::variable_array_type_template == 4227611599,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::variable_array_type_constructor_args == 0,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::allocator_include == 0,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::enable_allocator_support == 0,
static_assert( nunavut::support::options::allocator_type == 0,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::allocator_is_default_constructible == 1,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
"allowed." );
static_assert( nunavut::support::options::ctor_convention == 3814588639,
"/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl "
"is trying to use a serialization library that was compiled with "
"different language options. This is dangerous and therefore not "
Expand Down Expand Up @@ -138,6 +162,7 @@ struct PlanarTs_0_1 final
static constexpr std::size_t SerializationBufferSizeBytes = 23UL;
static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation");
static_assert(ExtentBytes < (std::numeric_limits<std::size_t>::max() / 8U), "This message is too large to be handled by the selected types");

struct TypeOf
{
TypeOf() = delete;
Expand All @@ -150,9 +175,9 @@ struct PlanarTs_0_1 final
// | FIELDS
// +----------------------------------------------------------------------+

_traits_::TypeOf::timestamp timestamp;
_traits_::TypeOf::timestamp timestamp{};

_traits_::TypeOf::value value;
_traits_::TypeOf::value value{};
};

inline nunavut::support::SerializeResult serialize(const PlanarTs_0_1& obj,
Expand Down
Loading
Loading