diff --git a/dsl/schema.xml b/dsl/schema.xml index b7f7891..2c8b985 100644 --- a/dsl/schema.xml +++ b/dsl/schema.xml @@ -1,5 +1,5 @@ - + @@ -42,17 +42,16 @@ - - + - + @@ -224,6 +223,11 @@ + + + + + @@ -239,14 +243,7 @@ - - - - - - - - + @@ -257,7 +254,7 @@ - + @@ -274,31 +271,31 @@ - + - + - + - + - + @@ -333,7 +330,7 @@ - + @@ -356,17 +353,9 @@ - - - - - - - - - + - + @@ -377,15 +366,7 @@ - - - - - - - - - + @@ -407,7 +388,7 @@ - + @@ -482,13 +463,7 @@ - - - - - - - + diff --git a/src/protocol/include/cc_mqtt5/field/IdAndFlagsField.h.value b/src/protocol/include/cc_mqtt5/field/IdAndFlagsField.h.value new file mode 100644 index 0000000..6d8ffb0 --- /dev/null +++ b/src/protocol/include/cc_mqtt5/field/IdAndFlagsField.h.value @@ -0,0 +1,10 @@ +typename Field_id::ValueType getValue() const +{ + return field_id().getValue(); +} + +template +void setValue(T&& val) +{ + field_id().setValue(std::forward(val)); +} \ No newline at end of file diff --git a/src/protocol/include/cc_mqtt5/field/ProtocolName.h.valid b/src/protocol/include/cc_mqtt5/field/ProtocolName.h.valid deleted file mode 100644 index 0ddacd2..0000000 --- a/src/protocol/include/cc_mqtt5/field/ProtocolName.h.valid +++ /dev/null @@ -1,5 +0,0 @@ -/// @brief Custom validity check -bool valid() const -{ - return Base::value() == ProtocolName().value(); -}