From 7d92ab1223a6b7858b36111abfa5927a408ea64c Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Mon, 13 Jun 2022 08:41:36 +1000 Subject: [PATCH 01/12] Updated "tutorial4" to contian information about "availableLengthLimit" property. --- CMakeLists.txt | 4 +- howtos/howto1/include/howto1/Interface.h | 2 +- .../howto1/include/howto1/InterfaceCommon.h | 2 +- howtos/howto1/include/howto1/MsgId.h | 2 +- howtos/howto1/include/howto1/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto1/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto1/include/howto1/field/FieldBase.h | 2 +- .../include/howto1/field/InterfaceFlags.h | 2 +- .../howto1/field/InterfaceFlagsCommon.h | 2 +- howtos/howto1/include/howto1/field/MsgId.h | 4 +- .../howto1/include/howto1/field/MsgIdCommon.h | 2 +- howtos/howto1/include/howto1/frame/Frame.h | 2 +- .../howto1/include/howto1/frame/FrameCommon.h | 2 +- .../howto1/include/howto1/input/AllMessages.h | 2 +- .../howto1/input/ClientInputMessages.h | 2 +- .../howto1/input/ServerInputMessages.h | 2 +- howtos/howto1/include/howto1/message/Msg1.h | 2 +- .../include/howto1/message/Msg1Common.h | 2 +- howtos/howto1/include/howto1/message/Msg2.h | 4 +- .../include/howto1/message/Msg2Common.h | 2 +- .../howto1/options/BareMetalDefaultOptions.h | 2 +- .../howto1/options/ClientDefaultOptions.h | 2 +- .../howto1/options/DataViewDefaultOptions.h | 2 +- .../include/howto1/options/DefaultOptions.h | 2 +- .../howto1/options/ServerDefaultOptions.h | 2 +- howtos/howto10/include/howto10/Interface.h | 2 +- .../howto10/include/howto10/InterfaceCommon.h | 2 +- howtos/howto10/include/howto10/MsgId.h | 2 +- howtos/howto10/include/howto10/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../howto10/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto10/include/howto10/field/FieldBase.h | 2 +- howtos/howto10/include/howto10/field/Flags.h | 2 +- .../include/howto10/field/FlagsCommon.h | 2 +- howtos/howto10/include/howto10/field/MsgId.h | 4 +- .../include/howto10/field/MsgIdCommon.h | 2 +- howtos/howto10/include/howto10/frame/Frame.h | 2 +- .../include/howto10/frame/FrameCommon.h | 2 +- .../include/howto10/input/AllMessages.h | 2 +- .../howto10/input/ClientInputMessages.h | 2 +- .../howto10/input/ServerInputMessages.h | 2 +- howtos/howto10/include/howto10/message/Msg1.h | 2 +- .../include/howto10/message/Msg1Common.h | 2 +- howtos/howto10/include/howto10/message/Msg2.h | 2 +- .../include/howto10/message/Msg2Common.h | 2 +- howtos/howto10/include/howto10/message/Msg3.h | 2 +- .../include/howto10/message/Msg3Common.h | 2 +- .../howto10/options/BareMetalDefaultOptions.h | 2 +- .../howto10/options/ClientDefaultOptions.h | 2 +- .../howto10/options/DataViewDefaultOptions.h | 2 +- .../include/howto10/options/DefaultOptions.h | 2 +- .../howto10/options/ServerDefaultOptions.h | 2 +- howtos/howto2/include/howto2/Message.h | 2 +- howtos/howto2/include/howto2/MsgId.h | 2 +- howtos/howto2/include/howto2/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto2/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto2/include/howto2/field/FieldBase.h | 2 +- howtos/howto2/include/howto2/field/MsgId.h | 4 +- .../howto2/include/howto2/field/MsgIdCommon.h | 2 +- howtos/howto2/include/howto2/frame/Frame.h | 2 +- .../howto2/include/howto2/frame/FrameCommon.h | 2 +- .../howto2/include/howto2/input/AllMessages.h | 2 +- .../howto2/input/ClientInputMessages.h | 2 +- .../howto2/input/ServerInputMessages.h | 2 +- howtos/howto2/include/howto2/message/Msg1.h | 4 +- .../include/howto2/message/Msg1Common.h | 2 +- howtos/howto2/include/howto2/message/Msg2.h | 2 +- .../include/howto2/message/Msg2Common.h | 2 +- howtos/howto2/include/howto2/message/Msg3.h | 4 +- .../include/howto2/message/Msg3Common.h | 2 +- howtos/howto2/include/howto2/message/Msg4.h | 2 +- .../include/howto2/message/Msg4Common.h | 2 +- .../howto2/options/BareMetalDefaultOptions.h | 2 +- .../howto2/options/ClientDefaultOptions.h | 2 +- .../howto2/options/DataViewDefaultOptions.h | 2 +- .../include/howto2/options/DefaultOptions.h | 2 +- .../howto2/options/ServerDefaultOptions.h | 2 +- howtos/howto3/include/howto3/Message.h | 2 +- howtos/howto3/include/howto3/MsgId.h | 2 +- howtos/howto3/include/howto3/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto3/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto3/include/howto3/field/FieldBase.h | 2 +- howtos/howto3/include/howto3/field/MsgId.h | 4 +- .../howto3/include/howto3/field/MsgIdCommon.h | 2 +- howtos/howto3/include/howto3/frame/Frame.h | 2 +- .../howto3/include/howto3/input/AllMessages.h | 2 +- .../howto3/input/ClientInputMessages.h | 2 +- .../howto3/input/ServerInputMessages.h | 2 +- howtos/howto3/include/howto3/message/Msg1.h | 2 +- .../include/howto3/message/Msg1Common.h | 2 +- howtos/howto3/include/howto3/message/Msg2.h | 2 +- .../include/howto3/message/Msg2Common.h | 2 +- howtos/howto3/include/howto3/message/Msg3.h | 2 +- .../include/howto3/message/Msg3Common.h | 2 +- .../howto3/options/BareMetalDefaultOptions.h | 2 +- .../howto3/options/ClientDefaultOptions.h | 2 +- .../howto3/options/DataViewDefaultOptions.h | 2 +- .../include/howto3/options/DefaultOptions.h | 2 +- .../howto3/options/ServerDefaultOptions.h | 2 +- howtos/howto4/include/howto4/Message.h | 2 +- howtos/howto4/include/howto4/MsgId.h | 2 +- howtos/howto4/include/howto4/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto4/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto4/include/howto4/field/FieldBase.h | 2 +- howtos/howto4/include/howto4/field/TlvProp.h | 20 +- .../include/howto4/field/TlvPropCommon.h | 2 +- howtos/howto4/include/howto4/frame/Frame.h | 2 +- .../howto4/include/howto4/frame/FrameCommon.h | 2 +- .../howto4/include/howto4/input/AllMessages.h | 2 +- .../howto4/input/ClientInputMessages.h | 2 +- .../howto4/input/ServerInputMessages.h | 2 +- howtos/howto4/include/howto4/message/Msg.h | 2 +- .../howto4/include/howto4/message/MsgCommon.h | 2 +- .../howto4/options/BareMetalDefaultOptions.h | 2 +- .../howto4/options/ClientDefaultOptions.h | 2 +- .../howto4/options/DataViewDefaultOptions.h | 2 +- .../include/howto4/options/DefaultOptions.h | 2 +- .../howto4/options/ServerDefaultOptions.h | 2 +- howtos/howto5/include/howto5/Interface.h | 2 +- .../howto5/include/howto5/InterfaceCommon.h | 2 +- howtos/howto5/include/howto5/MsgId.h | 2 +- howtos/howto5/include/howto5/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto5/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto5/include/howto5/field/FieldBase.h | 2 +- .../include/howto5/field/InterfaceFlags.h | 2 +- .../howto5/field/InterfaceFlagsCommon.h | 2 +- howtos/howto5/include/howto5/field/MsgId.h | 4 +- .../howto5/include/howto5/field/MsgIdCommon.h | 2 +- howtos/howto5/include/howto5/field/Version.h | 2 +- .../include/howto5/field/VersionCommon.h | 2 +- .../include/howto5/field/VersionWithFlags.h | 2 +- .../howto5/field/VersionWithFlagsCommon.h | 2 +- howtos/howto5/include/howto5/frame/Frame.h | 2 +- .../howto5/include/howto5/frame/FrameCommon.h | 2 +- .../howto5/include/howto5/input/AllMessages.h | 2 +- .../howto5/input/ClientInputMessages.h | 2 +- .../howto5/input/ServerInputMessages.h | 2 +- howtos/howto5/include/howto5/message/Msg1.h | 2 +- .../include/howto5/message/Msg1Common.h | 2 +- howtos/howto5/include/howto5/message/Msg2.h | 4 +- .../include/howto5/message/Msg2Common.h | 2 +- .../howto5/options/BareMetalDefaultOptions.h | 2 +- .../howto5/options/ClientDefaultOptions.h | 2 +- .../howto5/options/DataViewDefaultOptions.h | 2 +- .../include/howto5/options/DefaultOptions.h | 2 +- .../howto5/options/ServerDefaultOptions.h | 2 +- howtos/howto6/include/howto6/Interface.h | 2 +- .../howto6/include/howto6/InterfaceCommon.h | 2 +- howtos/howto6/include/howto6/MsgId.h | 2 +- howtos/howto6/include/howto6/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto6/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/howto6/field/ChecksumType.h | 4 +- .../include/howto6/field/ChecksumTypeCommon.h | 2 +- .../howto6/include/howto6/field/FieldBase.h | 2 +- howtos/howto6/include/howto6/field/MsgId.h | 4 +- .../howto6/include/howto6/field/MsgIdCommon.h | 2 +- howtos/howto6/include/howto6/frame/Frame.h | 2 +- .../howto6/include/howto6/frame/FrameCommon.h | 2 +- .../howto6/include/howto6/input/AllMessages.h | 2 +- .../howto6/input/ClientInputMessages.h | 2 +- .../howto6/input/ServerInputMessages.h | 2 +- howtos/howto6/include/howto6/message/Msg1.h | 2 +- .../include/howto6/message/Msg1Common.h | 2 +- howtos/howto6/include/howto6/message/Msg2.h | 2 +- .../include/howto6/message/Msg2Common.h | 2 +- howtos/howto6/include/howto6/message/Msg3.h | 2 +- .../include/howto6/message/Msg3Common.h | 2 +- .../howto6/options/BareMetalDefaultOptions.h | 2 +- .../howto6/options/ClientDefaultOptions.h | 2 +- .../howto6/options/DataViewDefaultOptions.h | 2 +- .../include/howto6/options/DefaultOptions.h | 2 +- .../howto6/options/ServerDefaultOptions.h | 2 +- howtos/howto7/include/howto7/Message.h | 2 +- howtos/howto7/include/howto7/MsgId.h | 2 +- howtos/howto7/include/howto7/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto7/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto7/include/howto7/field/FieldBase.h | 2 +- howtos/howto7/include/howto7/field/MsgId.h | 4 +- .../howto7/include/howto7/field/MsgIdCommon.h | 2 +- howtos/howto7/include/howto7/frame/Frame.h | 2 +- .../howto7/include/howto7/frame/FrameCommon.h | 2 +- .../howto7/include/howto7/input/AllMessages.h | 2 +- .../howto7/input/ClientInputMessages.h | 2 +- .../howto7/input/ServerInputMessages.h | 2 +- howtos/howto7/include/howto7/message/Msg1.h | 2 +- .../include/howto7/message/Msg1Common.h | 2 +- howtos/howto7/include/howto7/message/Msg2.h | 2 +- .../include/howto7/message/Msg2Common.h | 2 +- howtos/howto7/include/howto7/message/Msg3.h | 2 +- .../include/howto7/message/Msg3Common.h | 2 +- .../howto7/options/BareMetalDefaultOptions.h | 2 +- .../howto7/options/ClientDefaultOptions.h | 2 +- .../howto7/options/DataViewDefaultOptions.h | 2 +- .../include/howto7/options/DefaultOptions.h | 2 +- .../howto7/options/ServerDefaultOptions.h | 2 +- howtos/howto8/include/howto8/Interface.h | 2 +- .../howto8/include/howto8/InterfaceCommon.h | 2 +- howtos/howto8/include/howto8/MsgId.h | 2 +- howtos/howto8/include/howto8/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto8/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto8/include/howto8/field/FieldBase.h | 2 +- howtos/howto8/include/howto8/field/Flags.h | 2 +- .../howto8/include/howto8/field/FlagsCommon.h | 2 +- howtos/howto8/include/howto8/field/MsgId.h | 4 +- .../howto8/include/howto8/field/MsgIdCommon.h | 2 +- howtos/howto8/include/howto8/frame/Frame.h | 2 +- .../howto8/include/howto8/frame/FrameCommon.h | 2 +- .../howto8/include/howto8/input/AllMessages.h | 2 +- .../howto8/input/ClientInputMessages.h | 2 +- .../howto8/input/ServerInputMessages.h | 2 +- howtos/howto8/include/howto8/message/Msg1.h | 2 +- .../include/howto8/message/Msg1Common.h | 2 +- howtos/howto8/include/howto8/message/Msg2.h | 2 +- .../include/howto8/message/Msg2Common.h | 2 +- .../howto8/options/BareMetalDefaultOptions.h | 2 +- .../howto8/options/ClientDefaultOptions.h | 2 +- .../howto8/options/DataViewDefaultOptions.h | 2 +- .../include/howto8/options/DefaultOptions.h | 2 +- .../howto8/options/ServerDefaultOptions.h | 2 +- howtos/howto9/include/howto9/Message.h | 2 +- howtos/howto9/include/howto9/MsgId.h | 2 +- howtos/howto9/include/howto9/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../include/howto9/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../howto9/include/howto9/field/FieldBase.h | 2 +- howtos/howto9/include/howto9/field/MsgId.h | 4 +- .../howto9/include/howto9/field/MsgIdCommon.h | 2 +- .../howto9/include/howto9/field/SizeField.h | 2 +- .../include/howto9/field/SizeFieldCommon.h | 2 +- .../howto9/include/howto9/field/SyncField.h | 2 +- .../include/howto9/field/SyncFieldCommon.h | 2 +- howtos/howto9/include/howto9/frame/Frame.h | 2 +- .../howto9/include/howto9/frame/FrameCommon.h | 2 +- .../howto9/include/howto9/input/AllMessages.h | 2 +- .../howto9/input/ClientInputMessages.h | 2 +- .../howto9/input/ServerInputMessages.h | 2 +- howtos/howto9/include/howto9/message/Msg1.h | 2 +- .../include/howto9/message/Msg1Common.h | 2 +- howtos/howto9/include/howto9/message/Msg2.h | 2 +- .../include/howto9/message/Msg2Common.h | 2 +- howtos/howto9/include/howto9/message/Msg3.h | 2 +- .../include/howto9/message/Msg3Common.h | 2 +- .../howto9/options/BareMetalDefaultOptions.h | 2 +- .../howto9/options/ClientDefaultOptions.h | 2 +- .../howto9/options/DataViewDefaultOptions.h | 2 +- .../include/howto9/options/DefaultOptions.h | 2 +- .../howto9/options/ServerDefaultOptions.h | 2 +- .../tutorial1/include/tutorial1/Message.h | 2 +- tutorials/tutorial1/include/tutorial1/MsgId.h | 2 +- .../tutorial1/include/tutorial1/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial1/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial1/field/FieldBase.h | 2 +- .../tutorial1/include/tutorial1/field/MsgId.h | 4 +- .../include/tutorial1/field/MsgIdCommon.h | 2 +- .../tutorial1/include/tutorial1/frame/Frame.h | 2 +- .../include/tutorial1/frame/FrameCommon.h | 2 +- .../include/tutorial1/input/AllMessages.h | 2 +- .../tutorial1/input/ClientInputMessages.h | 2 +- .../tutorial1/input/ServerInputMessages.h | 2 +- .../include/tutorial1/message/Msg1.h | 2 +- .../include/tutorial1/message/Msg1Common.h | 2 +- .../include/tutorial1/message/Msg2.h | 2 +- .../include/tutorial1/message/Msg2Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial1/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial1/options/DefaultOptions.h | 2 +- .../tutorial1/options/ServerDefaultOptions.h | 2 +- .../tutorial10/include/tutorial10/Message.h | 2 +- .../tutorial10/include/tutorial10/MsgId.h | 2 +- .../tutorial10/include/tutorial10/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial10/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial10/field/FieldBase.h | 2 +- .../include/tutorial10/field/MsgId.h | 4 +- .../include/tutorial10/field/MsgIdCommon.h | 2 +- .../include/tutorial10/frame/Frame.h | 2 +- .../include/tutorial10/frame/FrameCommon.h | 2 +- .../include/tutorial10/input/AllMessages.h | 2 +- .../tutorial10/input/ClientInputMessages.h | 2 +- .../tutorial10/input/ServerInputMessages.h | 2 +- .../include/tutorial10/message/Msg1.h | 2 +- .../include/tutorial10/message/Msg1Common.h | 2 +- .../include/tutorial10/message/Msg2.h | 2 +- .../include/tutorial10/message/Msg2Common.h | 2 +- .../include/tutorial10/message/Msg3.h | 2 +- .../include/tutorial10/message/Msg3Common.h | 2 +- .../include/tutorial10/message/Msg4.h | 2 +- .../include/tutorial10/message/Msg4Common.h | 2 +- .../include/tutorial10/message/Msg5.h | 2 +- .../include/tutorial10/message/Msg5Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial10/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial10/options/DefaultOptions.h | 2 +- .../tutorial10/options/ServerDefaultOptions.h | 2 +- .../tutorial11/include/tutorial11/Message.h | 2 +- .../tutorial11/include/tutorial11/MsgId.h | 2 +- .../tutorial11/include/tutorial11/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial11/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial11/field/FieldBase.h | 2 +- .../include/tutorial11/field/MsgId.h | 4 +- .../include/tutorial11/field/MsgIdCommon.h | 2 +- .../include/tutorial11/frame/Frame.h | 2 +- .../include/tutorial11/frame/FrameCommon.h | 2 +- .../include/tutorial11/input/AllMessages.h | 2 +- .../tutorial11/input/ClientInputMessages.h | 2 +- .../tutorial11/input/ServerInputMessages.h | 2 +- .../include/tutorial11/message/Msg1.h | 2 +- .../include/tutorial11/message/Msg1Common.h | 2 +- .../include/tutorial11/message/Msg2.h | 2 +- .../include/tutorial11/message/Msg2Common.h | 2 +- .../include/tutorial11/message/Msg3.h | 2 +- .../include/tutorial11/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial11/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial11/options/DefaultOptions.h | 2 +- .../tutorial11/options/ServerDefaultOptions.h | 2 +- .../tutorial12/include/tutorial12/Message.h | 2 +- .../tutorial12/include/tutorial12/MsgId.h | 2 +- .../tutorial12/include/tutorial12/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial12/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial12/field/FieldBase.h | 2 +- .../include/tutorial12/field/Length.h | 2 +- .../include/tutorial12/field/LengthCommon.h | 2 +- .../include/tutorial12/field/MsgId.h | 4 +- .../include/tutorial12/field/MsgIdCommon.h | 2 +- .../include/tutorial12/frame/Frame.h | 2 +- .../include/tutorial12/frame/FrameCommon.h | 2 +- .../include/tutorial12/input/AllMessages.h | 2 +- .../tutorial12/input/ClientInputMessages.h | 2 +- .../tutorial12/input/ServerInputMessages.h | 2 +- .../include/tutorial12/message/Msg1.h | 4 +- .../include/tutorial12/message/Msg1Common.h | 2 +- .../include/tutorial12/message/Msg2.h | 2 +- .../include/tutorial12/message/Msg2Common.h | 2 +- .../include/tutorial12/message/Msg3.h | 2 +- .../include/tutorial12/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial12/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial12/options/DefaultOptions.h | 2 +- .../tutorial12/options/ServerDefaultOptions.h | 2 +- .../tutorial13/include/tutorial13/Message.h | 2 +- .../tutorial13/include/tutorial13/MsgId.h | 2 +- .../tutorial13/include/tutorial13/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial13/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial13/field/FieldBase.h | 2 +- .../include/tutorial13/field/MsgId.h | 4 +- .../include/tutorial13/field/MsgIdCommon.h | 2 +- .../include/tutorial13/frame/Frame.h | 2 +- .../include/tutorial13/frame/FrameCommon.h | 2 +- .../include/tutorial13/input/AllMessages.h | 2 +- .../tutorial13/input/ClientInputMessages.h | 2 +- .../tutorial13/input/ServerInputMessages.h | 2 +- .../include/tutorial13/message/Msg1_1.h | 2 +- .../include/tutorial13/message/Msg1_1Common.h | 2 +- .../include/tutorial13/message/Msg1_2.h | 2 +- .../include/tutorial13/message/Msg1_2Common.h | 2 +- .../include/tutorial13/message/Msg1_3.h | 2 +- .../include/tutorial13/message/Msg1_3Common.h | 2 +- .../include/tutorial13/message/Msg2_1.h | 4 +- .../include/tutorial13/message/Msg2_1Common.h | 2 +- .../include/tutorial13/message/Msg2_2.h | 4 +- .../include/tutorial13/message/Msg2_2Common.h | 2 +- .../include/tutorial13/message/Msg2_3.h | 4 +- .../include/tutorial13/message/Msg2_3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial13/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial13/options/DefaultOptions.h | 2 +- .../tutorial13/options/ServerDefaultOptions.h | 2 +- .../tutorial14/include/tutorial14/Message.h | 2 +- .../tutorial14/include/tutorial14/MsgId.h | 2 +- .../tutorial14/include/tutorial14/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial14/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial14/field/FieldBase.h | 2 +- .../include/tutorial14/field/MsgId.h | 4 +- .../include/tutorial14/field/MsgIdCommon.h | 2 +- .../include/tutorial14/frame/Frame.h | 2 +- .../include/tutorial14/frame/FrameCommon.h | 2 +- .../include/tutorial14/input/AllMessages.h | 2 +- .../tutorial14/input/ClientInputMessages.h | 2 +- .../tutorial14/input/ServerInputMessages.h | 2 +- .../include/tutorial14/message/Msg1.h | 2 +- .../include/tutorial14/message/Msg1Common.h | 2 +- .../include/tutorial14/message/Msg2.h | 2 +- .../include/tutorial14/message/Msg2Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial14/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial14/options/DefaultOptions.h | 2 +- .../tutorial14/options/ServerDefaultOptions.h | 2 +- .../tutorial15/include/tutorial15/Message.h | 2 +- .../tutorial15/include/tutorial15/MsgId.h | 2 +- .../tutorial15/include/tutorial15/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial15/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial15/field/FieldBase.h | 2 +- .../include/tutorial15/field/MsgId.h | 4 +- .../include/tutorial15/field/MsgIdCommon.h | 2 +- .../include/tutorial15/frame/Frame.h | 2 +- .../include/tutorial15/frame/FrameCommon.h | 2 +- .../include/tutorial15/input/AllMessages.h | 2 +- .../tutorial15/input/ClientInputMessages.h | 2 +- .../tutorial15/input/ServerInputMessages.h | 2 +- .../include/tutorial15/message/Msg1.h | 2 +- .../include/tutorial15/message/Msg1Common.h | 2 +- .../include/tutorial15/message/Msg2.h | 4 +- .../include/tutorial15/message/Msg2Common.h | 2 +- .../include/tutorial15/message/Msg3.h | 2 +- .../include/tutorial15/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial15/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial15/options/DefaultOptions.h | 2 +- .../tutorial15/options/ServerDefaultOptions.h | 2 +- .../tutorial16/include/tutorial16/Interface.h | 2 +- .../include/tutorial16/InterfaceCommon.h | 2 +- .../tutorial16/include/tutorial16/MsgId.h | 2 +- .../tutorial16/include/tutorial16/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial16/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial16/field/FieldBase.h | 2 +- .../include/tutorial16/field/InterfaceFlags.h | 2 +- .../tutorial16/field/InterfaceFlagsCommon.h | 2 +- .../include/tutorial16/field/MsgId.h | 4 +- .../include/tutorial16/field/MsgIdCommon.h | 2 +- .../include/tutorial16/frame/Frame.h | 2 +- .../include/tutorial16/frame/FrameCommon.h | 2 +- .../include/tutorial16/input/AllMessages.h | 2 +- .../tutorial16/input/ClientInputMessages.h | 2 +- .../tutorial16/input/ServerInputMessages.h | 2 +- .../include/tutorial16/message/Msg1.h | 2 +- .../include/tutorial16/message/Msg1Common.h | 2 +- .../include/tutorial16/message/Msg2.h | 4 +- .../include/tutorial16/message/Msg2Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial16/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial16/options/DefaultOptions.h | 2 +- .../tutorial16/options/ServerDefaultOptions.h | 2 +- .../tutorial17/include/tutorial17/Interface.h | 2 +- .../include/tutorial17/InterfaceCommon.h | 2 +- .../tutorial17/include/tutorial17/MsgId.h | 2 +- .../tutorial17/include/tutorial17/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial17/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial17/field/FieldBase.h | 2 +- .../include/tutorial17/field/MsgId.h | 4 +- .../include/tutorial17/field/MsgIdCommon.h | 2 +- .../include/tutorial17/frame/Frame.h | 2 +- .../include/tutorial17/frame/FrameCommon.h | 2 +- .../include/tutorial17/input/AllMessages.h | 2 +- .../tutorial17/input/ClientInputMessages.h | 2 +- .../tutorial17/input/ServerInputMessages.h | 2 +- .../include/tutorial17/message/Msg1.h | 2 +- .../include/tutorial17/message/Msg1Common.h | 2 +- .../include/tutorial17/message/Msg2.h | 4 +- .../include/tutorial17/message/Msg2Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial17/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial17/options/DefaultOptions.h | 2 +- .../tutorial17/options/ServerDefaultOptions.h | 2 +- .../tutorial18/include/tutorial18/Message.h | 2 +- .../tutorial18/include/tutorial18/MsgId.h | 2 +- .../tutorial18/include/tutorial18/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial18/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial18/field/FieldBase.h | 2 +- .../include/tutorial18/field/MsgId.h | 4 +- .../include/tutorial18/field/MsgIdCommon.h | 2 +- .../include/tutorial18/frame/Frame.h | 2 +- .../include/tutorial18/frame/FrameCommon.h | 2 +- .../include/tutorial18/input/AllMessages.h | 2 +- .../tutorial18/input/ClientInputMessages.h | 2 +- .../tutorial18/input/ServerInputMessages.h | 2 +- .../include/tutorial18/message/Msg1_1.h | 2 +- .../include/tutorial18/message/Msg1_1Common.h | 2 +- .../include/tutorial18/message/Msg1_2.h | 2 +- .../include/tutorial18/message/Msg1_2Common.h | 2 +- .../include/tutorial18/message/Msg1_3.h | 2 +- .../include/tutorial18/message/Msg1_3Common.h | 2 +- .../include/tutorial18/message/Msg2_1.h | 4 +- .../include/tutorial18/message/Msg2_1Common.h | 2 +- .../include/tutorial18/message/Msg2_2.h | 4 +- .../include/tutorial18/message/Msg2_2Common.h | 2 +- .../include/tutorial18/message/Msg2_3.h | 4 +- .../include/tutorial18/message/Msg2_3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial18/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial18/options/DefaultOptions.h | 2 +- .../tutorial18/options/ServerDefaultOptions.h | 2 +- .../tutorial19/include/tutorial19/Interface.h | 2 +- .../include/tutorial19/InterfaceCommon.h | 2 +- .../tutorial19/include/tutorial19/MsgId.h | 2 +- .../tutorial19/include/tutorial19/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial19/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial19/field/FieldBase.h | 2 +- .../include/tutorial19/field/MsgId.h | 4 +- .../include/tutorial19/field/MsgIdCommon.h | 2 +- .../include/tutorial19/frame/Frame.h | 2 +- .../include/tutorial19/frame/FrameCommon.h | 2 +- .../include/tutorial19/input/AllMessages.h | 2 +- .../tutorial19/input/ClientInputMessages.h | 2 +- .../tutorial19/input/ServerInputMessages.h | 2 +- .../include/tutorial19/message/Msg1.h | 2 +- .../include/tutorial19/message/Msg1Common.h | 2 +- .../include/tutorial19/message/Msg2.h | 12 +- .../include/tutorial19/message/Msg2Common.h | 2 +- .../include/tutorial19/message/Msg3.h | 2 +- .../include/tutorial19/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial19/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial19/options/DefaultOptions.h | 2 +- .../tutorial19/options/ServerDefaultOptions.h | 2 +- .../tutorial2/include/tutorial2/Message.h | 2 +- tutorials/tutorial2/include/tutorial2/MsgId.h | 2 +- .../tutorial2/include/tutorial2/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial2/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../tutorial2/include/tutorial2/field/B8_1.h | 4 +- .../include/tutorial2/field/B8_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/B8_2.h | 4 +- .../include/tutorial2/field/B8_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/B9_1.h | 4 +- .../include/tutorial2/field/B9_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/B9_2.h | 4 +- .../include/tutorial2/field/B9_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/D7_1.h | 2 +- .../include/tutorial2/field/D7_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/D7_2.h | 2 +- .../include/tutorial2/field/D7_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/E2_1.h | 4 +- .../include/tutorial2/field/E2_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/E2_2.h | 4 +- .../include/tutorial2/field/E2_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/F11_1.h | 2 +- .../include/tutorial2/field/F11_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/F11_2.h | 4 +- .../include/tutorial2/field/F11_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/F11_3.h | 2 +- .../include/tutorial2/field/F11_3Common.h | 2 +- .../tutorial2/include/tutorial2/field/F5_1.h | 2 +- .../include/tutorial2/field/F5_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/F5_2.h | 24 +- .../include/tutorial2/field/F5_2Common.h | 2 +- .../include/tutorial2/field/FieldBase.h | 2 +- .../tutorial2/include/tutorial2/field/I1.h | 2 +- .../include/tutorial2/field/I1Common.h | 2 +- .../tutorial2/include/tutorial2/field/I3_1.h | 2 +- .../include/tutorial2/field/I3_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/I3_2.h | 2 +- .../include/tutorial2/field/I3_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/I3_3.h | 2 +- .../include/tutorial2/field/I3_3Common.h | 2 +- .../tutorial2/include/tutorial2/field/I3_4.h | 10 +- .../include/tutorial2/field/I3_4Common.h | 2 +- .../tutorial2/include/tutorial2/field/I3_5.h | 2 +- .../include/tutorial2/field/I3_5Common.h | 2 +- .../tutorial2/include/tutorial2/field/L10_1.h | 2 +- .../include/tutorial2/field/L10_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/L10_2.h | 2 +- .../include/tutorial2/field/L10_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/L10_3.h | 2 +- .../include/tutorial2/field/L10_3Common.h | 2 +- .../tutorial2/include/tutorial2/field/L10_4.h | 4 +- .../include/tutorial2/field/L10_4Common.h | 2 +- .../tutorial2/include/tutorial2/field/L6_3.h | 2 +- .../include/tutorial2/field/L6_3Common.h | 2 +- .../tutorial2/include/tutorial2/field/MsgId.h | 4 +- .../include/tutorial2/field/MsgIdCommon.h | 2 +- .../tutorial2/include/tutorial2/field/S4_1.h | 2 +- .../include/tutorial2/field/S4_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/S4_2.h | 2 +- .../include/tutorial2/field/S4_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/S4_3.h | 2 +- .../include/tutorial2/field/S4_3Common.h | 2 +- .../tutorial2/include/tutorial2/field/S6_1.h | 2 +- .../include/tutorial2/field/S6_1Common.h | 2 +- .../tutorial2/include/tutorial2/field/S6_2.h | 4 +- .../include/tutorial2/field/S6_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/S6_3.h | 2 +- .../include/tutorial2/field/S6_3Common.h | 2 +- .../tutorial2/include/tutorial2/field/S6_4.h | 2 +- .../include/tutorial2/field/S6_4Common.h | 2 +- .../tutorial2/include/tutorial2/frame/Frame.h | 2 +- .../include/tutorial2/frame/FrameCommon.h | 2 +- .../include/tutorial2/input/AllMessages.h | 2 +- .../tutorial2/input/ClientInputMessages.h | 2 +- .../tutorial2/input/ServerInputMessages.h | 2 +- .../include/tutorial2/message/Msg1.h | 2 +- .../include/tutorial2/message/Msg10.h | 2 +- .../include/tutorial2/message/Msg10Common.h | 2 +- .../include/tutorial2/message/Msg11.h | 2 +- .../include/tutorial2/message/Msg11Common.h | 2 +- .../include/tutorial2/message/Msg12.h | 2 +- .../include/tutorial2/message/Msg12Common.h | 2 +- .../include/tutorial2/message/Msg13.h | 2 +- .../include/tutorial2/message/Msg13Common.h | 2 +- .../include/tutorial2/message/Msg14.h | 8 +- .../include/tutorial2/message/Msg14Common.h | 2 +- .../include/tutorial2/message/Msg15.h | 2 +- .../include/tutorial2/message/Msg15Common.h | 2 +- .../include/tutorial2/message/Msg16.h | 2 +- .../include/tutorial2/message/Msg16Common.h | 2 +- .../include/tutorial2/message/Msg1Common.h | 2 +- .../include/tutorial2/message/Msg2.h | 6 +- .../include/tutorial2/message/Msg2Common.h | 2 +- .../include/tutorial2/message/Msg3.h | 2 +- .../include/tutorial2/message/Msg3Common.h | 2 +- .../include/tutorial2/message/Msg4.h | 2 +- .../include/tutorial2/message/Msg4Common.h | 2 +- .../include/tutorial2/message/Msg5.h | 2 +- .../include/tutorial2/message/Msg5Common.h | 2 +- .../include/tutorial2/message/Msg6.h | 2 +- .../include/tutorial2/message/Msg6Common.h | 2 +- .../include/tutorial2/message/Msg7.h | 2 +- .../include/tutorial2/message/Msg7Common.h | 2 +- .../include/tutorial2/message/Msg8.h | 2 +- .../include/tutorial2/message/Msg8Common.h | 2 +- .../include/tutorial2/message/Msg9.h | 2 +- .../include/tutorial2/message/Msg9Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial2/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial2/options/DefaultOptions.h | 2 +- .../tutorial2/options/ServerDefaultOptions.h | 2 +- .../tutorial20/include/tutorial20/Interface.h | 2 +- .../include/tutorial20/InterfaceCommon.h | 2 +- .../tutorial20/include/tutorial20/MsgId.h | 2 +- .../tutorial20/include/tutorial20/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial20/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial20/field/FieldBase.h | 2 +- .../include/tutorial20/field/MsgId.h | 4 +- .../include/tutorial20/field/MsgIdCommon.h | 2 +- .../include/tutorial20/field/Version.h | 2 +- .../include/tutorial20/field/VersionCommon.h | 2 +- .../include/tutorial20/frame/Frame.h | 2 +- .../include/tutorial20/frame/FrameCommon.h | 2 +- .../include/tutorial20/input/AllMessages.h | 2 +- .../tutorial20/input/ClientInputMessages.h | 2 +- .../tutorial20/input/ServerInputMessages.h | 2 +- .../include/tutorial20/message/Connect.h | 2 +- .../tutorial20/message/ConnectCommon.h | 2 +- .../include/tutorial20/message/Msg1.h | 2 +- .../include/tutorial20/message/Msg1Common.h | 2 +- .../include/tutorial20/message/Msg2.h | 12 +- .../include/tutorial20/message/Msg2Common.h | 2 +- .../include/tutorial20/message/Msg3.h | 2 +- .../include/tutorial20/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial20/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial20/options/DefaultOptions.h | 2 +- .../tutorial20/options/ServerDefaultOptions.h | 2 +- .../tutorial21/include/tutorial21/Interface.h | 2 +- .../include/tutorial21/InterfaceCommon.h | 2 +- .../tutorial21/include/tutorial21/MsgId.h | 2 +- .../tutorial21/include/tutorial21/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial21/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial21/field/BasicFlags.h | 2 +- .../tutorial21/field/BasicFlagsCommon.h | 2 +- .../include/tutorial21/field/FieldBase.h | 2 +- .../include/tutorial21/field/Msg1Flags.h | 2 +- .../tutorial21/field/Msg1FlagsCommon.h | 2 +- .../include/tutorial21/field/Msg2Flags.h | 4 +- .../tutorial21/field/Msg2FlagsCommon.h | 2 +- .../include/tutorial21/field/MsgId.h | 4 +- .../include/tutorial21/field/MsgIdCommon.h | 2 +- .../include/tutorial21/frame/Frame.h | 2 +- .../include/tutorial21/frame/FrameCommon.h | 2 +- .../include/tutorial21/input/AllMessages.h | 2 +- .../tutorial21/input/ClientInputMessages.h | 2 +- .../tutorial21/input/ServerInputMessages.h | 2 +- .../include/tutorial21/message/Msg1.h | 2 +- .../include/tutorial21/message/Msg1Common.h | 2 +- .../include/tutorial21/message/Msg2.h | 2 +- .../include/tutorial21/message/Msg2Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial21/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial21/options/DefaultOptions.h | 2 +- .../tutorial21/options/ServerDefaultOptions.h | 2 +- .../tutorial3/include/tutorial3/Message.h | 2 +- tutorials/tutorial3/include/tutorial3/MsgId.h | 2 +- .../tutorial3/include/tutorial3/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial3/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial3/field/FieldBase.h | 2 +- .../tutorial3/include/tutorial3/field/MsgId.h | 4 +- .../include/tutorial3/field/MsgIdCommon.h | 2 +- .../tutorial3/include/tutorial3/frame/Frame.h | 2 +- .../include/tutorial3/frame/FrameCommon.h | 2 +- .../include/tutorial3/input/AllMessages.h | 2 +- .../tutorial3/input/ClientInputMessages.h | 2 +- .../tutorial3/input/ServerInputMessages.h | 2 +- .../include/tutorial3/message/Msg1.h | 2 +- .../include/tutorial3/message/Msg1Common.h | 2 +- .../include/tutorial3/message/Msg2.h | 2 +- .../include/tutorial3/message/Msg2Common.h | 2 +- .../include/tutorial3/message/Msg3.h | 2 +- .../include/tutorial3/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial3/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial3/options/DefaultOptions.h | 2 +- .../tutorial3/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial4/README.md | 20 +- tutorials/tutorial4/dsl/schema.xml | 7 + .../tutorial4/include/tutorial4/Message.h | 2 +- tutorials/tutorial4/include/tutorial4/MsgId.h | 2 +- .../tutorial4/include/tutorial4/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial4/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial4/field/FieldBase.h | 2 +- .../include/tutorial4/field/KeyValueProp.h | 18 +- .../tutorial4/field/KeyValuePropCommon.h | 2 +- .../tutorial4/include/tutorial4/field/MsgId.h | 4 +- .../include/tutorial4/field/MsgIdCommon.h | 2 +- .../include/tutorial4/field/TlvProp.h | 216 +++++++++++++++++- .../include/tutorial4/field/TlvPropCommon.h | 89 +++++++- .../tutorial4/include/tutorial4/frame/Frame.h | 2 +- .../include/tutorial4/frame/FrameCommon.h | 2 +- .../include/tutorial4/input/AllMessages.h | 2 +- .../tutorial4/input/ClientInputMessages.h | 2 +- .../tutorial4/input/ServerInputMessages.h | 2 +- .../include/tutorial4/message/Msg1.h | 2 +- .../include/tutorial4/message/Msg1Common.h | 2 +- .../include/tutorial4/message/Msg2.h | 2 +- .../include/tutorial4/message/Msg2Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial4/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial4/options/DefaultOptions.h | 2 +- .../tutorial4/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial4/src/ClientSession.cpp | 12 +- tutorials/tutorial4/src/ClientSession.h | 2 + .../tutorial5/include/tutorial5/Message.h | 2 +- tutorials/tutorial5/include/tutorial5/MsgId.h | 2 +- .../tutorial5/include/tutorial5/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial5/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial5/field/FieldBase.h | 2 +- .../tutorial5/include/tutorial5/field/MsgId.h | 4 +- .../include/tutorial5/field/MsgIdCommon.h | 2 +- .../tutorial5/frame/ClientToServerFrame.h | 2 +- .../frame/ClientToServerFrameCommon.h | 2 +- .../tutorial5/frame/ServerToClientFrame.h | 2 +- .../frame/ServerToClientFrameCommon.h | 2 +- .../include/tutorial5/input/AllMessages.h | 2 +- .../tutorial5/input/ClientInputMessages.h | 2 +- .../tutorial5/input/ServerInputMessages.h | 2 +- .../include/tutorial5/message/Msg1.h | 2 +- .../include/tutorial5/message/Msg1Common.h | 2 +- .../include/tutorial5/message/Msg2.h | 2 +- .../include/tutorial5/message/Msg2Common.h | 2 +- .../include/tutorial5/message/Msg3.h | 2 +- .../include/tutorial5/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial5/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial5/options/DefaultOptions.h | 2 +- .../tutorial5/options/ServerDefaultOptions.h | 2 +- .../tutorial6/include/tutorial6/Message.h | 2 +- tutorials/tutorial6/include/tutorial6/MsgId.h | 2 +- .../tutorial6/include/tutorial6/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial6/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial6/field/FieldBase.h | 2 +- .../tutorial6/include/tutorial6/field/MsgId.h | 4 +- .../include/tutorial6/field/MsgIdCommon.h | 2 +- .../tutorial6/include/tutorial6/frame/Frame.h | 2 +- .../include/tutorial6/frame/FrameCommon.h | 2 +- .../include/tutorial6/input/AllMessages.h | 2 +- .../tutorial6/input/ClientInputMessages.h | 2 +- .../tutorial6/input/ServerInputMessages.h | 2 +- .../include/tutorial6/message/Msg1.h | 2 +- .../include/tutorial6/message/Msg1Common.h | 2 +- .../include/tutorial6/message/Msg2.h | 2 +- .../include/tutorial6/message/Msg2Common.h | 2 +- .../include/tutorial6/message/Msg3.h | 2 +- .../include/tutorial6/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial6/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial6/options/DefaultOptions.h | 2 +- .../tutorial6/options/ServerDefaultOptions.h | 2 +- .../tutorial7/include/tutorial7/Message.h | 2 +- tutorials/tutorial7/include/tutorial7/MsgId.h | 2 +- .../tutorial7/include/tutorial7/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial7/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial7/field/FieldBase.h | 2 +- .../tutorial7/include/tutorial7/field/MsgId.h | 4 +- .../include/tutorial7/field/MsgIdCommon.h | 2 +- .../tutorial7/include/tutorial7/frame/Frame.h | 2 +- .../include/tutorial7/frame/FrameCommon.h | 2 +- .../include/tutorial7/input/AllMessages.h | 2 +- .../tutorial7/input/ClientInputMessages.h | 2 +- .../tutorial7/input/ServerInputMessages.h | 2 +- .../include/tutorial7/message/Msg1.h | 2 +- .../include/tutorial7/message/Msg1Common.h | 2 +- .../include/tutorial7/message/Msg2.h | 2 +- .../include/tutorial7/message/Msg2Common.h | 2 +- .../include/tutorial7/message/Msg3.h | 2 +- .../include/tutorial7/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial7/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial7/options/DefaultOptions.h | 2 +- .../tutorial7/options/ServerDefaultOptions.h | 2 +- .../tutorial8/include/tutorial8/Message.h | 2 +- tutorials/tutorial8/include/tutorial8/MsgId.h | 2 +- .../tutorial8/include/tutorial8/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial8/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial8/field/FieldBase.h | 2 +- .../tutorial8/include/tutorial8/field/MsgId.h | 4 +- .../include/tutorial8/field/MsgIdCommon.h | 2 +- .../tutorial8/include/tutorial8/frame/Frame.h | 2 +- .../include/tutorial8/frame/FrameCommon.h | 2 +- .../include/tutorial8/input/AllMessages.h | 2 +- .../tutorial8/input/ClientInputMessages.h | 2 +- .../tutorial8/input/ServerInputMessages.h | 2 +- .../include/tutorial8/message/Msg1.h | 2 +- .../include/tutorial8/message/Msg1Common.h | 2 +- .../include/tutorial8/message/Msg2.h | 2 +- .../include/tutorial8/message/Msg2Common.h | 2 +- .../include/tutorial8/message/Msg3.h | 2 +- .../include/tutorial8/message/Msg3Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial8/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial8/options/DefaultOptions.h | 2 +- .../tutorial8/options/ServerDefaultOptions.h | 2 +- .../tutorial9/include/tutorial9/Message.h | 2 +- tutorials/tutorial9/include/tutorial9/MsgId.h | 2 +- .../tutorial9/include/tutorial9/Version.h | 4 +- .../dispatch/DispatchClientInputMessage.h | 2 +- .../tutorial9/dispatch/DispatchMessage.h | 2 +- .../dispatch/DispatchServerInputMessage.h | 2 +- .../include/tutorial9/field/FieldBase.h | 2 +- .../tutorial9/include/tutorial9/field/MsgId.h | 4 +- .../include/tutorial9/field/MsgIdCommon.h | 2 +- .../tutorial9/include/tutorial9/frame/Frame.h | 2 +- .../include/tutorial9/frame/FrameCommon.h | 2 +- .../include/tutorial9/input/AllMessages.h | 2 +- .../tutorial9/input/ClientInputMessages.h | 2 +- .../tutorial9/input/ServerInputMessages.h | 2 +- .../include/tutorial9/message/Msg1.h | 2 +- .../include/tutorial9/message/Msg1Common.h | 2 +- .../include/tutorial9/message/Msg2.h | 2 +- .../include/tutorial9/message/Msg2Common.h | 2 +- .../include/tutorial9/message/Msg3.h | 2 +- .../include/tutorial9/message/Msg3Common.h | 2 +- .../include/tutorial9/message/Msg4.h | 2 +- .../include/tutorial9/message/Msg4Common.h | 2 +- .../options/BareMetalDefaultOptions.h | 2 +- .../tutorial9/options/ClientDefaultOptions.h | 2 +- .../options/DataViewDefaultOptions.h | 2 +- .../tutorial9/options/DefaultOptions.h | 2 +- .../tutorial9/options/ServerDefaultOptions.h | 2 +- 913 files changed, 1372 insertions(+), 1056 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbe7ca2b3..2852fe414 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,11 +16,11 @@ option (USE_SANITIZERS "Compile with sanitizers." OFF) # COMMSDSL_CXX_COMPILER - "C++" Compiler for commsdsl project if ("${COMMSDSL_TAG}" STREQUAL "") - set (COMMSDSL_TAG "v4.0") + set (COMMSDSL_TAG "develop") endif () if ("${CC_COMMS_TAG}" STREQUAL "") - set (CC_COMMS_TAG "v4.0") + set (CC_COMMS_TAG "develop") endif () if (NOT CMAKE_CXX_STANDARD) diff --git a/howtos/howto1/include/howto1/Interface.h b/howtos/howto1/include/howto1/Interface.h index 47991809d..786afef2c 100644 --- a/howtos/howto1/include/howto1/Interface.h +++ b/howtos/howto1/include/howto1/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto1/include/howto1/InterfaceCommon.h b/howtos/howto1/include/howto1/InterfaceCommon.h index 76137ed15..ddf91bcb6 100644 --- a/howtos/howto1/include/howto1/InterfaceCommon.h +++ b/howtos/howto1/include/howto1/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/MsgId.h b/howtos/howto1/include/howto1/MsgId.h index ff798548d..38b76130f 100644 --- a/howtos/howto1/include/howto1/MsgId.h +++ b/howtos/howto1/include/howto1/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto1/include/howto1/Version.h b/howtos/howto1/include/howto1/Version.h index 24500b979..96d9a3771 100644 --- a/howtos/howto1/include/howto1/Version.h +++ b/howtos/howto1/include/howto1/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto1 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h b/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h index 77144f668..2f0bb0efe 100644 --- a/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto1/include/howto1/dispatch/DispatchMessage.h b/howtos/howto1/include/howto1/dispatch/DispatchMessage.h index a0de0fe0a..12cade568 100644 --- a/howtos/howto1/include/howto1/dispatch/DispatchMessage.h +++ b/howtos/howto1/include/howto1/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h b/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h index 6f0dbfd04..e1a23f6e1 100644 --- a/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto1/include/howto1/field/FieldBase.h b/howtos/howto1/include/howto1/field/FieldBase.h index 528138f5a..2625049c0 100644 --- a/howtos/howto1/include/howto1/field/FieldBase.h +++ b/howtos/howto1/include/howto1/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto1/include/howto1/field/InterfaceFlags.h b/howtos/howto1/include/howto1/field/InterfaceFlags.h index 91e958bfc..52552debe 100644 --- a/howtos/howto1/include/howto1/field/InterfaceFlags.h +++ b/howtos/howto1/include/howto1/field/InterfaceFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "InterfaceFlags" field. diff --git a/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h b/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h index eb17b3255..2e05fcb3e 100644 --- a/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h +++ b/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/field/MsgId.h b/howtos/howto1/include/howto1/field/MsgId.h index b70c70a7f..e45a5d1b9 100644 --- a/howtos/howto1/include/howto1/field/MsgId.h +++ b/howtos/howto1/include/howto1/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto1/include/howto1/field/MsgIdCommon.h b/howtos/howto1/include/howto1/field/MsgIdCommon.h index 413519d7e..2eddc9e99 100644 --- a/howtos/howto1/include/howto1/field/MsgIdCommon.h +++ b/howtos/howto1/include/howto1/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/frame/Frame.h b/howtos/howto1/include/howto1/frame/Frame.h index 50cebb3ac..8793bae58 100644 --- a/howtos/howto1/include/howto1/frame/Frame.h +++ b/howtos/howto1/include/howto1/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto1/include/howto1/frame/FrameCommon.h b/howtos/howto1/include/howto1/frame/FrameCommon.h index a4d434497..25cf24358 100644 --- a/howtos/howto1/include/howto1/frame/FrameCommon.h +++ b/howtos/howto1/include/howto1/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/input/AllMessages.h b/howtos/howto1/include/howto1/input/AllMessages.h index 51fc7e5b9..141bdbaae 100644 --- a/howtos/howto1/include/howto1/input/AllMessages.h +++ b/howtos/howto1/include/howto1/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto1/include/howto1/input/ClientInputMessages.h b/howtos/howto1/include/howto1/input/ClientInputMessages.h index 87c89b405..cbb296d93 100644 --- a/howtos/howto1/include/howto1/input/ClientInputMessages.h +++ b/howtos/howto1/include/howto1/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto1/include/howto1/input/ServerInputMessages.h b/howtos/howto1/include/howto1/input/ServerInputMessages.h index 4e25ecc8c..fb33e6e96 100644 --- a/howtos/howto1/include/howto1/input/ServerInputMessages.h +++ b/howtos/howto1/include/howto1/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto1/include/howto1/message/Msg1.h b/howtos/howto1/include/howto1/message/Msg1.h index f2b87dd22..4556c8313 100644 --- a/howtos/howto1/include/howto1/message/Msg1.h +++ b/howtos/howto1/include/howto1/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto1/include/howto1/message/Msg1Common.h b/howtos/howto1/include/howto1/message/Msg1Common.h index f615f6cfd..826212ac8 100644 --- a/howtos/howto1/include/howto1/message/Msg1Common.h +++ b/howtos/howto1/include/howto1/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/message/Msg2.h b/howtos/howto1/include/howto1/message/Msg2.h index 40d7d53ca..ef86d1079 100644 --- a/howtos/howto1/include/howto1/message/Msg2.h +++ b/howtos/howto1/include/howto1/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -91,7 +91,7 @@ struct Msg2Fields { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/howtos/howto1/include/howto1/message/Msg2Common.h b/howtos/howto1/include/howto1/message/Msg2Common.h index a2a1e6b59..3ced33fdc 100644 --- a/howtos/howto1/include/howto1/message/Msg2Common.h +++ b/howtos/howto1/include/howto1/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h b/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h index 8ab8f40d7..67218d0e9 100644 --- a/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto1/include/howto1/options/ClientDefaultOptions.h b/howtos/howto1/include/howto1/options/ClientDefaultOptions.h index c1cb02bc5..475f66ad7 100644 --- a/howtos/howto1/include/howto1/options/ClientDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h b/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h index e5b557069..7dfe4ca7e 100644 --- a/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto1/include/howto1/options/DefaultOptions.h b/howtos/howto1/include/howto1/options/DefaultOptions.h index 72ef9042e..692ececb6 100644 --- a/howtos/howto1/include/howto1/options/DefaultOptions.h +++ b/howtos/howto1/include/howto1/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto1/include/howto1/options/ServerDefaultOptions.h b/howtos/howto1/include/howto1/options/ServerDefaultOptions.h index c5b094e88..6aeebc32b 100644 --- a/howtos/howto1/include/howto1/options/ServerDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto10/include/howto10/Interface.h b/howtos/howto10/include/howto10/Interface.h index dbd4ecf3a..a600b7e0e 100644 --- a/howtos/howto10/include/howto10/Interface.h +++ b/howtos/howto10/include/howto10/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto10/include/howto10/InterfaceCommon.h b/howtos/howto10/include/howto10/InterfaceCommon.h index 3e9eb5133..f576e9de8 100644 --- a/howtos/howto10/include/howto10/InterfaceCommon.h +++ b/howtos/howto10/include/howto10/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/MsgId.h b/howtos/howto10/include/howto10/MsgId.h index d8dd65261..b14c1494b 100644 --- a/howtos/howto10/include/howto10/MsgId.h +++ b/howtos/howto10/include/howto10/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto10/include/howto10/Version.h b/howtos/howto10/include/howto10/Version.h index 0b3076b40..218d93d56 100644 --- a/howtos/howto10/include/howto10/Version.h +++ b/howtos/howto10/include/howto10/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto10 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h b/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h index 1b868eef9..4bf078271 100644 --- a/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto10/include/howto10/dispatch/DispatchMessage.h b/howtos/howto10/include/howto10/dispatch/DispatchMessage.h index 13b731490..1405ebc7e 100644 --- a/howtos/howto10/include/howto10/dispatch/DispatchMessage.h +++ b/howtos/howto10/include/howto10/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h b/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h index 5034c2c93..4111d0f61 100644 --- a/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto10/include/howto10/field/FieldBase.h b/howtos/howto10/include/howto10/field/FieldBase.h index 9f811a4f6..75349d86f 100644 --- a/howtos/howto10/include/howto10/field/FieldBase.h +++ b/howtos/howto10/include/howto10/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto10/include/howto10/field/Flags.h b/howtos/howto10/include/howto10/field/Flags.h index 3e5fcc041..1a4562aca 100644 --- a/howtos/howto10/include/howto10/field/Flags.h +++ b/howtos/howto10/include/howto10/field/Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Flags" field. diff --git a/howtos/howto10/include/howto10/field/FlagsCommon.h b/howtos/howto10/include/howto10/field/FlagsCommon.h index 2a53eefc3..3cb65dfd4 100644 --- a/howtos/howto10/include/howto10/field/FlagsCommon.h +++ b/howtos/howto10/include/howto10/field/FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/field/MsgId.h b/howtos/howto10/include/howto10/field/MsgId.h index 80dc623d4..1cc6a2a04 100644 --- a/howtos/howto10/include/howto10/field/MsgId.h +++ b/howtos/howto10/include/howto10/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto10/include/howto10/field/MsgIdCommon.h b/howtos/howto10/include/howto10/field/MsgIdCommon.h index 094d11eb4..906a1e0a2 100644 --- a/howtos/howto10/include/howto10/field/MsgIdCommon.h +++ b/howtos/howto10/include/howto10/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/frame/Frame.h b/howtos/howto10/include/howto10/frame/Frame.h index ec5f59a16..e6d3edfe3 100644 --- a/howtos/howto10/include/howto10/frame/Frame.h +++ b/howtos/howto10/include/howto10/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto10/include/howto10/frame/FrameCommon.h b/howtos/howto10/include/howto10/frame/FrameCommon.h index 999b4d15d..cc5a8e7fb 100644 --- a/howtos/howto10/include/howto10/frame/FrameCommon.h +++ b/howtos/howto10/include/howto10/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/input/AllMessages.h b/howtos/howto10/include/howto10/input/AllMessages.h index f311a6d63..13315af12 100644 --- a/howtos/howto10/include/howto10/input/AllMessages.h +++ b/howtos/howto10/include/howto10/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto10/include/howto10/input/ClientInputMessages.h b/howtos/howto10/include/howto10/input/ClientInputMessages.h index 53d4eea2d..566071cb5 100644 --- a/howtos/howto10/include/howto10/input/ClientInputMessages.h +++ b/howtos/howto10/include/howto10/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto10/include/howto10/input/ServerInputMessages.h b/howtos/howto10/include/howto10/input/ServerInputMessages.h index f58c39159..64b868d27 100644 --- a/howtos/howto10/include/howto10/input/ServerInputMessages.h +++ b/howtos/howto10/include/howto10/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto10/include/howto10/message/Msg1.h b/howtos/howto10/include/howto10/message/Msg1.h index fb6515d25..3013fb5ed 100644 --- a/howtos/howto10/include/howto10/message/Msg1.h +++ b/howtos/howto10/include/howto10/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto10/include/howto10/message/Msg1Common.h b/howtos/howto10/include/howto10/message/Msg1Common.h index e16787132..fcbc6045a 100644 --- a/howtos/howto10/include/howto10/message/Msg1Common.h +++ b/howtos/howto10/include/howto10/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/message/Msg2.h b/howtos/howto10/include/howto10/message/Msg2.h index ec9b8d61a..39b40c78d 100644 --- a/howtos/howto10/include/howto10/message/Msg2.h +++ b/howtos/howto10/include/howto10/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto10/include/howto10/message/Msg2Common.h b/howtos/howto10/include/howto10/message/Msg2Common.h index d2ba9be51..7f040cc70 100644 --- a/howtos/howto10/include/howto10/message/Msg2Common.h +++ b/howtos/howto10/include/howto10/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/message/Msg3.h b/howtos/howto10/include/howto10/message/Msg3.h index 2bac4552e..99bd513de 100644 --- a/howtos/howto10/include/howto10/message/Msg3.h +++ b/howtos/howto10/include/howto10/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto10/include/howto10/message/Msg3Common.h b/howtos/howto10/include/howto10/message/Msg3Common.h index 0973b39c3..4190b9644 100644 --- a/howtos/howto10/include/howto10/message/Msg3Common.h +++ b/howtos/howto10/include/howto10/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h b/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h index 2bba9ae58..9dfafc480 100644 --- a/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto10/include/howto10/options/ClientDefaultOptions.h b/howtos/howto10/include/howto10/options/ClientDefaultOptions.h index 35a8e4e86..abf1127ab 100644 --- a/howtos/howto10/include/howto10/options/ClientDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h b/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h index dfa3362c0..e3f401f00 100644 --- a/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto10/include/howto10/options/DefaultOptions.h b/howtos/howto10/include/howto10/options/DefaultOptions.h index 78a9a51ae..666139a54 100644 --- a/howtos/howto10/include/howto10/options/DefaultOptions.h +++ b/howtos/howto10/include/howto10/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto10/include/howto10/options/ServerDefaultOptions.h b/howtos/howto10/include/howto10/options/ServerDefaultOptions.h index 4383ad5e4..091cb7365 100644 --- a/howtos/howto10/include/howto10/options/ServerDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto2/include/howto2/Message.h b/howtos/howto2/include/howto2/Message.h index 02d45b6e5..9ac52d829 100644 --- a/howtos/howto2/include/howto2/Message.h +++ b/howtos/howto2/include/howto2/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto2/include/howto2/MsgId.h b/howtos/howto2/include/howto2/MsgId.h index 6e4c66d14..4b60f6567 100644 --- a/howtos/howto2/include/howto2/MsgId.h +++ b/howtos/howto2/include/howto2/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto2/include/howto2/Version.h b/howtos/howto2/include/howto2/Version.h index 721933eac..34c4b199d 100644 --- a/howtos/howto2/include/howto2/Version.h +++ b/howtos/howto2/include/howto2/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto2 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h b/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h index f89ff4045..bf263092e 100644 --- a/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto2/include/howto2/dispatch/DispatchMessage.h b/howtos/howto2/include/howto2/dispatch/DispatchMessage.h index 45224bb8a..0b13a19fb 100644 --- a/howtos/howto2/include/howto2/dispatch/DispatchMessage.h +++ b/howtos/howto2/include/howto2/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h b/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h index 2d32396e2..6a7ee0837 100644 --- a/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto2/include/howto2/field/FieldBase.h b/howtos/howto2/include/howto2/field/FieldBase.h index 13bbb59ea..c226b29ef 100644 --- a/howtos/howto2/include/howto2/field/FieldBase.h +++ b/howtos/howto2/include/howto2/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto2/include/howto2/field/MsgId.h b/howtos/howto2/include/howto2/field/MsgId.h index be63ed493..62167c24d 100644 --- a/howtos/howto2/include/howto2/field/MsgId.h +++ b/howtos/howto2/include/howto2/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto2/include/howto2/field/MsgIdCommon.h b/howtos/howto2/include/howto2/field/MsgIdCommon.h index a74d00ac7..760f1bb75 100644 --- a/howtos/howto2/include/howto2/field/MsgIdCommon.h +++ b/howtos/howto2/include/howto2/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/frame/Frame.h b/howtos/howto2/include/howto2/frame/Frame.h index 27b8ca0c0..6ca3505b2 100644 --- a/howtos/howto2/include/howto2/frame/Frame.h +++ b/howtos/howto2/include/howto2/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto2/include/howto2/frame/FrameCommon.h b/howtos/howto2/include/howto2/frame/FrameCommon.h index 5da243fd9..8f027ee56 100644 --- a/howtos/howto2/include/howto2/frame/FrameCommon.h +++ b/howtos/howto2/include/howto2/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/input/AllMessages.h b/howtos/howto2/include/howto2/input/AllMessages.h index 26d66e921..e09c71c05 100644 --- a/howtos/howto2/include/howto2/input/AllMessages.h +++ b/howtos/howto2/include/howto2/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto2/include/howto2/input/ClientInputMessages.h b/howtos/howto2/include/howto2/input/ClientInputMessages.h index ef84770e7..a60146260 100644 --- a/howtos/howto2/include/howto2/input/ClientInputMessages.h +++ b/howtos/howto2/include/howto2/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto2/include/howto2/input/ServerInputMessages.h b/howtos/howto2/include/howto2/input/ServerInputMessages.h index 8f9fd135f..8b7b3c420 100644 --- a/howtos/howto2/include/howto2/input/ServerInputMessages.h +++ b/howtos/howto2/include/howto2/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto2/include/howto2/message/Msg1.h b/howtos/howto2/include/howto2/message/Msg1.h index a2f7d0d60..1095c4d42 100644 --- a/howtos/howto2/include/howto2/message/Msg1.h +++ b/howtos/howto2/include/howto2/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. @@ -47,7 +47,7 @@ struct Msg1Fields { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/howtos/howto2/include/howto2/message/Msg1Common.h b/howtos/howto2/include/howto2/message/Msg1Common.h index 4c4be4cf8..04978c012 100644 --- a/howtos/howto2/include/howto2/message/Msg1Common.h +++ b/howtos/howto2/include/howto2/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/message/Msg2.h b/howtos/howto2/include/howto2/message/Msg2.h index 9801cb1cc..7085f5a13 100644 --- a/howtos/howto2/include/howto2/message/Msg2.h +++ b/howtos/howto2/include/howto2/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto2/include/howto2/message/Msg2Common.h b/howtos/howto2/include/howto2/message/Msg2Common.h index cf393da75..ab919bc39 100644 --- a/howtos/howto2/include/howto2/message/Msg2Common.h +++ b/howtos/howto2/include/howto2/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/message/Msg3.h b/howtos/howto2/include/howto2/message/Msg3.h index 3f65ab2f8..926b093f2 100644 --- a/howtos/howto2/include/howto2/message/Msg3.h +++ b/howtos/howto2/include/howto2/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. @@ -47,7 +47,7 @@ struct Msg3Fields { static const char Str[] = "blabla"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/howtos/howto2/include/howto2/message/Msg3Common.h b/howtos/howto2/include/howto2/message/Msg3Common.h index f8789c34e..e1e4443b8 100644 --- a/howtos/howto2/include/howto2/message/Msg3Common.h +++ b/howtos/howto2/include/howto2/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/message/Msg4.h b/howtos/howto2/include/howto2/message/Msg4.h index c0b0e7c54..1eac52862 100644 --- a/howtos/howto2/include/howto2/message/Msg4.h +++ b/howtos/howto2/include/howto2/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/howtos/howto2/include/howto2/message/Msg4Common.h b/howtos/howto2/include/howto2/message/Msg4Common.h index 9fb7a865d..0e9c5c354 100644 --- a/howtos/howto2/include/howto2/message/Msg4Common.h +++ b/howtos/howto2/include/howto2/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h b/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h index d2a35d76e..e5b33c81e 100644 --- a/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto2/include/howto2/options/ClientDefaultOptions.h b/howtos/howto2/include/howto2/options/ClientDefaultOptions.h index 34938f7f8..d9027e4db 100644 --- a/howtos/howto2/include/howto2/options/ClientDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h b/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h index 3e8f0ad7d..ebc892647 100644 --- a/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto2/include/howto2/options/DefaultOptions.h b/howtos/howto2/include/howto2/options/DefaultOptions.h index 8bb6de111..bd84d986b 100644 --- a/howtos/howto2/include/howto2/options/DefaultOptions.h +++ b/howtos/howto2/include/howto2/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto2/include/howto2/options/ServerDefaultOptions.h b/howtos/howto2/include/howto2/options/ServerDefaultOptions.h index a961faee5..1ddd64b4f 100644 --- a/howtos/howto2/include/howto2/options/ServerDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto3/include/howto3/Message.h b/howtos/howto3/include/howto3/Message.h index 45bdb07a9..6133e8efe 100644 --- a/howtos/howto3/include/howto3/Message.h +++ b/howtos/howto3/include/howto3/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto3/include/howto3/MsgId.h b/howtos/howto3/include/howto3/MsgId.h index 2d9d535a3..0f9ab1b4a 100644 --- a/howtos/howto3/include/howto3/MsgId.h +++ b/howtos/howto3/include/howto3/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto3/include/howto3/Version.h b/howtos/howto3/include/howto3/Version.h index d33483bd7..f63727978 100644 --- a/howtos/howto3/include/howto3/Version.h +++ b/howtos/howto3/include/howto3/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto3 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h b/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h index 5d9d5c6fa..86100f5e1 100644 --- a/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto3/include/howto3/dispatch/DispatchMessage.h b/howtos/howto3/include/howto3/dispatch/DispatchMessage.h index 6d8ff7ef3..c18260a50 100644 --- a/howtos/howto3/include/howto3/dispatch/DispatchMessage.h +++ b/howtos/howto3/include/howto3/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h b/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h index 4db1b2cf8..aaf79ee83 100644 --- a/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto3/include/howto3/field/FieldBase.h b/howtos/howto3/include/howto3/field/FieldBase.h index c2d29abfd..023d9e004 100644 --- a/howtos/howto3/include/howto3/field/FieldBase.h +++ b/howtos/howto3/include/howto3/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto3/include/howto3/field/MsgId.h b/howtos/howto3/include/howto3/field/MsgId.h index 69b725eb8..a2765894f 100644 --- a/howtos/howto3/include/howto3/field/MsgId.h +++ b/howtos/howto3/include/howto3/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto3/include/howto3/field/MsgIdCommon.h b/howtos/howto3/include/howto3/field/MsgIdCommon.h index 298727ee7..8db9a1676 100644 --- a/howtos/howto3/include/howto3/field/MsgIdCommon.h +++ b/howtos/howto3/include/howto3/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/frame/Frame.h b/howtos/howto3/include/howto3/frame/Frame.h index cb5f5e0a5..8975e1ab4 100644 --- a/howtos/howto3/include/howto3/frame/Frame.h +++ b/howtos/howto3/include/howto3/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto3/include/howto3/input/AllMessages.h b/howtos/howto3/include/howto3/input/AllMessages.h index ce1c83007..b8f8319bd 100644 --- a/howtos/howto3/include/howto3/input/AllMessages.h +++ b/howtos/howto3/include/howto3/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto3/include/howto3/input/ClientInputMessages.h b/howtos/howto3/include/howto3/input/ClientInputMessages.h index a9d49c9aa..341f0f00f 100644 --- a/howtos/howto3/include/howto3/input/ClientInputMessages.h +++ b/howtos/howto3/include/howto3/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto3/include/howto3/input/ServerInputMessages.h b/howtos/howto3/include/howto3/input/ServerInputMessages.h index 67fe463f7..8e680a961 100644 --- a/howtos/howto3/include/howto3/input/ServerInputMessages.h +++ b/howtos/howto3/include/howto3/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto3/include/howto3/message/Msg1.h b/howtos/howto3/include/howto3/message/Msg1.h index 6ab1b974b..88dcb4ca6 100644 --- a/howtos/howto3/include/howto3/message/Msg1.h +++ b/howtos/howto3/include/howto3/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto3/include/howto3/message/Msg1Common.h b/howtos/howto3/include/howto3/message/Msg1Common.h index ccb1f4970..17b4baed8 100644 --- a/howtos/howto3/include/howto3/message/Msg1Common.h +++ b/howtos/howto3/include/howto3/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/message/Msg2.h b/howtos/howto3/include/howto3/message/Msg2.h index 24680385f..65f02dc40 100644 --- a/howtos/howto3/include/howto3/message/Msg2.h +++ b/howtos/howto3/include/howto3/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto3/include/howto3/message/Msg2Common.h b/howtos/howto3/include/howto3/message/Msg2Common.h index 41f9bb6d2..0868a8f56 100644 --- a/howtos/howto3/include/howto3/message/Msg2Common.h +++ b/howtos/howto3/include/howto3/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/message/Msg3.h b/howtos/howto3/include/howto3/message/Msg3.h index fd2782184..aa5cad55c 100644 --- a/howtos/howto3/include/howto3/message/Msg3.h +++ b/howtos/howto3/include/howto3/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto3/include/howto3/message/Msg3Common.h b/howtos/howto3/include/howto3/message/Msg3Common.h index 643d3d074..67918ba12 100644 --- a/howtos/howto3/include/howto3/message/Msg3Common.h +++ b/howtos/howto3/include/howto3/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h b/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h index af0d5293f..06cac180f 100644 --- a/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto3/include/howto3/options/ClientDefaultOptions.h b/howtos/howto3/include/howto3/options/ClientDefaultOptions.h index 808c2ede8..1071aff23 100644 --- a/howtos/howto3/include/howto3/options/ClientDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h b/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h index 74ead2a4c..cb69b6972 100644 --- a/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto3/include/howto3/options/DefaultOptions.h b/howtos/howto3/include/howto3/options/DefaultOptions.h index 59a432a6b..34680443e 100644 --- a/howtos/howto3/include/howto3/options/DefaultOptions.h +++ b/howtos/howto3/include/howto3/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto3/include/howto3/options/ServerDefaultOptions.h b/howtos/howto3/include/howto3/options/ServerDefaultOptions.h index 439df73a5..94b3c8c62 100644 --- a/howtos/howto3/include/howto3/options/ServerDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto4/include/howto4/Message.h b/howtos/howto4/include/howto4/Message.h index 62c8f2887..eed8b8522 100644 --- a/howtos/howto4/include/howto4/Message.h +++ b/howtos/howto4/include/howto4/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto4/include/howto4/MsgId.h b/howtos/howto4/include/howto4/MsgId.h index bad243a92..0907f408b 100644 --- a/howtos/howto4/include/howto4/MsgId.h +++ b/howtos/howto4/include/howto4/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto4/include/howto4/Version.h b/howtos/howto4/include/howto4/Version.h index 42352e6ec..a02cde9a0 100644 --- a/howtos/howto4/include/howto4/Version.h +++ b/howtos/howto4/include/howto4/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto4 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h b/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h index 60b37914b..e62e0e110 100644 --- a/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto4/include/howto4/dispatch/DispatchMessage.h b/howtos/howto4/include/howto4/dispatch/DispatchMessage.h index fee01a2c0..651c4a078 100644 --- a/howtos/howto4/include/howto4/dispatch/DispatchMessage.h +++ b/howtos/howto4/include/howto4/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h b/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h index 317b11f87..1bb059e6e 100644 --- a/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto4/include/howto4/field/FieldBase.h b/howtos/howto4/include/howto4/field/FieldBase.h index 7f70ad16e..1e5180990 100644 --- a/howtos/howto4/include/howto4/field/FieldBase.h +++ b/howtos/howto4/include/howto4/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto4/include/howto4/field/TlvProp.h b/howtos/howto4/include/howto4/field/TlvProp.h index f33a794df..804ad9838 100644 --- a/howtos/howto4/include/howto4/field/TlvProp.h +++ b/howtos/howto4/include/howto4/field/TlvProp.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "TlvProp" field. @@ -80,7 +80,7 @@ struct TlvPropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(0); + Base::setValue(0); return true; } @@ -257,7 +257,7 @@ struct TlvPropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(2); + Base::setValue(2); return true; } @@ -319,7 +319,7 @@ struct TlvPropMembers /// @brief Generated default constructor. Val() { - Base::value() = std::numeric_limits::infinity(); + Base::setValue(std::numeric_limits::infinity()); } /// @brief Compile time detection of special values presence. @@ -446,7 +446,7 @@ struct TlvPropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(5); + Base::setValue(5); return true; } @@ -856,27 +856,27 @@ class TlvProp : public COMMS_ASSERT(consumedLen <= len); len -= consumedLen; - switch (commonKeyField.value()) { + switch (commonKeyField.getValue()) { case 0U /* 0x00U */: { auto& field_prop1 = initField_prop1(); - COMMS_ASSERT(field_prop1.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop1.field_key().getValue() == commonKeyField.getValue()); return field_prop1.template readFrom<1>(iter, len); } case 2U /* 0x02U */: { auto& field_prop2 = initField_prop2(); - COMMS_ASSERT(field_prop2.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop2.field_key().getValue() == commonKeyField.getValue()); return field_prop2.template readFrom<1>(iter, len); } case 5U /* 0x05U */: { auto& field_prop3 = initField_prop3(); - COMMS_ASSERT(field_prop3.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop3.field_key().getValue() == commonKeyField.getValue()); return field_prop3.template readFrom<1>(iter, len); } default: - initField_any().field_key().value() = commonKeyField.value(); + initField_any().field_key().setValue(commonKeyField.getValue()); return accessField_any().template readFrom<1>(iter, len); }; diff --git a/howtos/howto4/include/howto4/field/TlvPropCommon.h b/howtos/howto4/include/howto4/field/TlvPropCommon.h index dffb50fef..462566863 100644 --- a/howtos/howto4/include/howto4/field/TlvPropCommon.h +++ b/howtos/howto4/include/howto4/field/TlvPropCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto4/include/howto4/frame/Frame.h b/howtos/howto4/include/howto4/frame/Frame.h index c7f5e5c98..e0f1c692c 100644 --- a/howtos/howto4/include/howto4/frame/Frame.h +++ b/howtos/howto4/include/howto4/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto4/include/howto4/frame/FrameCommon.h b/howtos/howto4/include/howto4/frame/FrameCommon.h index 19780af44..7ed5415b5 100644 --- a/howtos/howto4/include/howto4/frame/FrameCommon.h +++ b/howtos/howto4/include/howto4/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto4/include/howto4/input/AllMessages.h b/howtos/howto4/include/howto4/input/AllMessages.h index 3bda13800..ded1eb218 100644 --- a/howtos/howto4/include/howto4/input/AllMessages.h +++ b/howtos/howto4/include/howto4/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto4/include/howto4/input/ClientInputMessages.h b/howtos/howto4/include/howto4/input/ClientInputMessages.h index ff0ff3203..a3b98ba5b 100644 --- a/howtos/howto4/include/howto4/input/ClientInputMessages.h +++ b/howtos/howto4/include/howto4/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto4/include/howto4/input/ServerInputMessages.h b/howtos/howto4/include/howto4/input/ServerInputMessages.h index 71aaab9a4..f5795fa00 100644 --- a/howtos/howto4/include/howto4/input/ServerInputMessages.h +++ b/howtos/howto4/include/howto4/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto4/include/howto4/message/Msg.h b/howtos/howto4/include/howto4/message/Msg.h index c513a91df..2e62cc75f 100644 --- a/howtos/howto4/include/howto4/message/Msg.h +++ b/howtos/howto4/include/howto4/message/Msg.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" message and its fields. diff --git a/howtos/howto4/include/howto4/message/MsgCommon.h b/howtos/howto4/include/howto4/message/MsgCommon.h index 5235c8a53..138b46bd3 100644 --- a/howtos/howto4/include/howto4/message/MsgCommon.h +++ b/howtos/howto4/include/howto4/message/MsgCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h b/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h index 537ca0624..3aca66e99 100644 --- a/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto4/include/howto4/options/ClientDefaultOptions.h b/howtos/howto4/include/howto4/options/ClientDefaultOptions.h index 3efbdec04..f1e23a762 100644 --- a/howtos/howto4/include/howto4/options/ClientDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h b/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h index ef8bc424e..9e21b36ed 100644 --- a/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto4/include/howto4/options/DefaultOptions.h b/howtos/howto4/include/howto4/options/DefaultOptions.h index 0035717f8..1bb0d62d0 100644 --- a/howtos/howto4/include/howto4/options/DefaultOptions.h +++ b/howtos/howto4/include/howto4/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto4/include/howto4/options/ServerDefaultOptions.h b/howtos/howto4/include/howto4/options/ServerDefaultOptions.h index db5e270d9..9ed3563b8 100644 --- a/howtos/howto4/include/howto4/options/ServerDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto5/include/howto5/Interface.h b/howtos/howto5/include/howto5/Interface.h index 0f1ef742c..fc951a976 100644 --- a/howtos/howto5/include/howto5/Interface.h +++ b/howtos/howto5/include/howto5/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto5/include/howto5/InterfaceCommon.h b/howtos/howto5/include/howto5/InterfaceCommon.h index 2f8ba0aaa..1212ed349 100644 --- a/howtos/howto5/include/howto5/InterfaceCommon.h +++ b/howtos/howto5/include/howto5/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/MsgId.h b/howtos/howto5/include/howto5/MsgId.h index f6bb9bc1d..015a94caa 100644 --- a/howtos/howto5/include/howto5/MsgId.h +++ b/howtos/howto5/include/howto5/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto5/include/howto5/Version.h b/howtos/howto5/include/howto5/Version.h index cdf01cf7f..1344663e3 100644 --- a/howtos/howto5/include/howto5/Version.h +++ b/howtos/howto5/include/howto5/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto5 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h b/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h index 161727a46..ac892cf8c 100644 --- a/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto5/include/howto5/dispatch/DispatchMessage.h b/howtos/howto5/include/howto5/dispatch/DispatchMessage.h index 6271ce1e1..6d631cdd8 100644 --- a/howtos/howto5/include/howto5/dispatch/DispatchMessage.h +++ b/howtos/howto5/include/howto5/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h b/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h index ce96ddc16..eac22a150 100644 --- a/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto5/include/howto5/field/FieldBase.h b/howtos/howto5/include/howto5/field/FieldBase.h index aa75a1f0b..b57fbbf94 100644 --- a/howtos/howto5/include/howto5/field/FieldBase.h +++ b/howtos/howto5/include/howto5/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto5/include/howto5/field/InterfaceFlags.h b/howtos/howto5/include/howto5/field/InterfaceFlags.h index b71fbcb6e..0671275f2 100644 --- a/howtos/howto5/include/howto5/field/InterfaceFlags.h +++ b/howtos/howto5/include/howto5/field/InterfaceFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "InterfaceFlags" field. diff --git a/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h b/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h index 9ca97857c..037c0747f 100644 --- a/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h +++ b/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/field/MsgId.h b/howtos/howto5/include/howto5/field/MsgId.h index e0c624b4d..1a9ec36d8 100644 --- a/howtos/howto5/include/howto5/field/MsgId.h +++ b/howtos/howto5/include/howto5/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto5/include/howto5/field/MsgIdCommon.h b/howtos/howto5/include/howto5/field/MsgIdCommon.h index 4a947e6bc..a68f760e5 100644 --- a/howtos/howto5/include/howto5/field/MsgIdCommon.h +++ b/howtos/howto5/include/howto5/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/field/Version.h b/howtos/howto5/include/howto5/field/Version.h index 20002a82c..4d58f2c91 100644 --- a/howtos/howto5/include/howto5/field/Version.h +++ b/howtos/howto5/include/howto5/field/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Version" field. diff --git a/howtos/howto5/include/howto5/field/VersionCommon.h b/howtos/howto5/include/howto5/field/VersionCommon.h index 6263f24c9..7c4a0186a 100644 --- a/howtos/howto5/include/howto5/field/VersionCommon.h +++ b/howtos/howto5/include/howto5/field/VersionCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/field/VersionWithFlags.h b/howtos/howto5/include/howto5/field/VersionWithFlags.h index e7f9c6d94..05e0d8406 100644 --- a/howtos/howto5/include/howto5/field/VersionWithFlags.h +++ b/howtos/howto5/include/howto5/field/VersionWithFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "VersionWithFlags" field. diff --git a/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h b/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h index e5f407ea7..ed929386d 100644 --- a/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h +++ b/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/frame/Frame.h b/howtos/howto5/include/howto5/frame/Frame.h index 80cb20fb6..4d41268e3 100644 --- a/howtos/howto5/include/howto5/frame/Frame.h +++ b/howtos/howto5/include/howto5/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto5/include/howto5/frame/FrameCommon.h b/howtos/howto5/include/howto5/frame/FrameCommon.h index 85352cce8..9c0b7e027 100644 --- a/howtos/howto5/include/howto5/frame/FrameCommon.h +++ b/howtos/howto5/include/howto5/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/input/AllMessages.h b/howtos/howto5/include/howto5/input/AllMessages.h index 0e6c48264..6a48b6a00 100644 --- a/howtos/howto5/include/howto5/input/AllMessages.h +++ b/howtos/howto5/include/howto5/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto5/include/howto5/input/ClientInputMessages.h b/howtos/howto5/include/howto5/input/ClientInputMessages.h index 96e0c6869..6d471ebb9 100644 --- a/howtos/howto5/include/howto5/input/ClientInputMessages.h +++ b/howtos/howto5/include/howto5/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto5/include/howto5/input/ServerInputMessages.h b/howtos/howto5/include/howto5/input/ServerInputMessages.h index 6605e488d..9b07221e0 100644 --- a/howtos/howto5/include/howto5/input/ServerInputMessages.h +++ b/howtos/howto5/include/howto5/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto5/include/howto5/message/Msg1.h b/howtos/howto5/include/howto5/message/Msg1.h index 814861018..31d066bff 100644 --- a/howtos/howto5/include/howto5/message/Msg1.h +++ b/howtos/howto5/include/howto5/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto5/include/howto5/message/Msg1Common.h b/howtos/howto5/include/howto5/message/Msg1Common.h index 55fed5f8b..77abf402c 100644 --- a/howtos/howto5/include/howto5/message/Msg1Common.h +++ b/howtos/howto5/include/howto5/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/message/Msg2.h b/howtos/howto5/include/howto5/message/Msg2.h index 2b96429a9..9ca65fcf0 100644 --- a/howtos/howto5/include/howto5/message/Msg2.h +++ b/howtos/howto5/include/howto5/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -91,7 +91,7 @@ struct Msg2Fields { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/howtos/howto5/include/howto5/message/Msg2Common.h b/howtos/howto5/include/howto5/message/Msg2Common.h index 2954e269a..b20c4a262 100644 --- a/howtos/howto5/include/howto5/message/Msg2Common.h +++ b/howtos/howto5/include/howto5/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h b/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h index 103f37de9..a253a4e2c 100644 --- a/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto5/include/howto5/options/ClientDefaultOptions.h b/howtos/howto5/include/howto5/options/ClientDefaultOptions.h index 3298e8975..619878259 100644 --- a/howtos/howto5/include/howto5/options/ClientDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h b/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h index 15e273087..327d785b1 100644 --- a/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto5/include/howto5/options/DefaultOptions.h b/howtos/howto5/include/howto5/options/DefaultOptions.h index 02f38497f..48465bc40 100644 --- a/howtos/howto5/include/howto5/options/DefaultOptions.h +++ b/howtos/howto5/include/howto5/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto5/include/howto5/options/ServerDefaultOptions.h b/howtos/howto5/include/howto5/options/ServerDefaultOptions.h index ac51e2522..16e2505b7 100644 --- a/howtos/howto5/include/howto5/options/ServerDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto6/include/howto6/Interface.h b/howtos/howto6/include/howto6/Interface.h index fb71b31bf..691e78fdb 100644 --- a/howtos/howto6/include/howto6/Interface.h +++ b/howtos/howto6/include/howto6/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto6/include/howto6/InterfaceCommon.h b/howtos/howto6/include/howto6/InterfaceCommon.h index 2b0b56c38..d8ed8d41d 100644 --- a/howtos/howto6/include/howto6/InterfaceCommon.h +++ b/howtos/howto6/include/howto6/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/MsgId.h b/howtos/howto6/include/howto6/MsgId.h index 3f4527400..4678df6c6 100644 --- a/howtos/howto6/include/howto6/MsgId.h +++ b/howtos/howto6/include/howto6/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto6/include/howto6/Version.h b/howtos/howto6/include/howto6/Version.h index 17dc73f75..b114bb6ae 100644 --- a/howtos/howto6/include/howto6/Version.h +++ b/howtos/howto6/include/howto6/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto6 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h b/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h index 642074f2d..aae363177 100644 --- a/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto6/include/howto6/dispatch/DispatchMessage.h b/howtos/howto6/include/howto6/dispatch/DispatchMessage.h index 30117247a..e8255c491 100644 --- a/howtos/howto6/include/howto6/dispatch/DispatchMessage.h +++ b/howtos/howto6/include/howto6/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h b/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h index 3373a74f5..d7820d64d 100644 --- a/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto6/include/howto6/field/ChecksumType.h b/howtos/howto6/include/howto6/field/ChecksumType.h index 3265873fc..5c86161f6 100644 --- a/howtos/howto6/include/howto6/field/ChecksumType.h +++ b/howtos/howto6/include/howto6/field/ChecksumType.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "ChecksumType" field. @@ -59,7 +59,7 @@ class ChecksumType : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h b/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h index e1a68820f..b7ddacf7c 100644 --- a/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h +++ b/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/field/FieldBase.h b/howtos/howto6/include/howto6/field/FieldBase.h index 086999832..501a3aaa1 100644 --- a/howtos/howto6/include/howto6/field/FieldBase.h +++ b/howtos/howto6/include/howto6/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto6/include/howto6/field/MsgId.h b/howtos/howto6/include/howto6/field/MsgId.h index 83c4ce696..7d0bd32c9 100644 --- a/howtos/howto6/include/howto6/field/MsgId.h +++ b/howtos/howto6/include/howto6/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto6/include/howto6/field/MsgIdCommon.h b/howtos/howto6/include/howto6/field/MsgIdCommon.h index fa20b356f..a5754b605 100644 --- a/howtos/howto6/include/howto6/field/MsgIdCommon.h +++ b/howtos/howto6/include/howto6/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/frame/Frame.h b/howtos/howto6/include/howto6/frame/Frame.h index c0104ff0a..3b8e0a52c 100644 --- a/howtos/howto6/include/howto6/frame/Frame.h +++ b/howtos/howto6/include/howto6/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto6/include/howto6/frame/FrameCommon.h b/howtos/howto6/include/howto6/frame/FrameCommon.h index d24840876..7c551f296 100644 --- a/howtos/howto6/include/howto6/frame/FrameCommon.h +++ b/howtos/howto6/include/howto6/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/input/AllMessages.h b/howtos/howto6/include/howto6/input/AllMessages.h index 97b24611b..69455e944 100644 --- a/howtos/howto6/include/howto6/input/AllMessages.h +++ b/howtos/howto6/include/howto6/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto6/include/howto6/input/ClientInputMessages.h b/howtos/howto6/include/howto6/input/ClientInputMessages.h index cfadebfcd..61c527719 100644 --- a/howtos/howto6/include/howto6/input/ClientInputMessages.h +++ b/howtos/howto6/include/howto6/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto6/include/howto6/input/ServerInputMessages.h b/howtos/howto6/include/howto6/input/ServerInputMessages.h index f01285bfa..7b6086ed3 100644 --- a/howtos/howto6/include/howto6/input/ServerInputMessages.h +++ b/howtos/howto6/include/howto6/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto6/include/howto6/message/Msg1.h b/howtos/howto6/include/howto6/message/Msg1.h index 274221e5f..7a4ded7b6 100644 --- a/howtos/howto6/include/howto6/message/Msg1.h +++ b/howtos/howto6/include/howto6/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto6/include/howto6/message/Msg1Common.h b/howtos/howto6/include/howto6/message/Msg1Common.h index c5e3ea4bb..a572f49a2 100644 --- a/howtos/howto6/include/howto6/message/Msg1Common.h +++ b/howtos/howto6/include/howto6/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/message/Msg2.h b/howtos/howto6/include/howto6/message/Msg2.h index fe99ebfd1..39b756446 100644 --- a/howtos/howto6/include/howto6/message/Msg2.h +++ b/howtos/howto6/include/howto6/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto6/include/howto6/message/Msg2Common.h b/howtos/howto6/include/howto6/message/Msg2Common.h index a66b65329..ee2d73103 100644 --- a/howtos/howto6/include/howto6/message/Msg2Common.h +++ b/howtos/howto6/include/howto6/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/message/Msg3.h b/howtos/howto6/include/howto6/message/Msg3.h index 64daa9bfd..3f704ecea 100644 --- a/howtos/howto6/include/howto6/message/Msg3.h +++ b/howtos/howto6/include/howto6/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto6/include/howto6/message/Msg3Common.h b/howtos/howto6/include/howto6/message/Msg3Common.h index 2a58f5994..34ed767ec 100644 --- a/howtos/howto6/include/howto6/message/Msg3Common.h +++ b/howtos/howto6/include/howto6/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h b/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h index 33cac6e41..1aa1171ba 100644 --- a/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto6/include/howto6/options/ClientDefaultOptions.h b/howtos/howto6/include/howto6/options/ClientDefaultOptions.h index 08f978c2d..6400c144f 100644 --- a/howtos/howto6/include/howto6/options/ClientDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h b/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h index c1229b522..3dda7c2e0 100644 --- a/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto6/include/howto6/options/DefaultOptions.h b/howtos/howto6/include/howto6/options/DefaultOptions.h index 5e5ba920d..c80f763c0 100644 --- a/howtos/howto6/include/howto6/options/DefaultOptions.h +++ b/howtos/howto6/include/howto6/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto6/include/howto6/options/ServerDefaultOptions.h b/howtos/howto6/include/howto6/options/ServerDefaultOptions.h index b1014d5b1..af3ecd09c 100644 --- a/howtos/howto6/include/howto6/options/ServerDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto7/include/howto7/Message.h b/howtos/howto7/include/howto7/Message.h index 97efd083f..10f073945 100644 --- a/howtos/howto7/include/howto7/Message.h +++ b/howtos/howto7/include/howto7/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto7/include/howto7/MsgId.h b/howtos/howto7/include/howto7/MsgId.h index d0206ede2..de1167521 100644 --- a/howtos/howto7/include/howto7/MsgId.h +++ b/howtos/howto7/include/howto7/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto7/include/howto7/Version.h b/howtos/howto7/include/howto7/Version.h index 35277d54b..e2c7bb47e 100644 --- a/howtos/howto7/include/howto7/Version.h +++ b/howtos/howto7/include/howto7/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto7 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h b/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h index 294b56bf0..10ef86ea3 100644 --- a/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto7/include/howto7/dispatch/DispatchMessage.h b/howtos/howto7/include/howto7/dispatch/DispatchMessage.h index f50e2e52e..706bbf8d4 100644 --- a/howtos/howto7/include/howto7/dispatch/DispatchMessage.h +++ b/howtos/howto7/include/howto7/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h b/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h index ae3ad39d1..d5baf1ade 100644 --- a/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto7/include/howto7/field/FieldBase.h b/howtos/howto7/include/howto7/field/FieldBase.h index 0cef36864..fa841fe5e 100644 --- a/howtos/howto7/include/howto7/field/FieldBase.h +++ b/howtos/howto7/include/howto7/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto7/include/howto7/field/MsgId.h b/howtos/howto7/include/howto7/field/MsgId.h index 290fded23..e67c21fef 100644 --- a/howtos/howto7/include/howto7/field/MsgId.h +++ b/howtos/howto7/include/howto7/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto7/include/howto7/field/MsgIdCommon.h b/howtos/howto7/include/howto7/field/MsgIdCommon.h index 0e84a03f1..f87d5ebf9 100644 --- a/howtos/howto7/include/howto7/field/MsgIdCommon.h +++ b/howtos/howto7/include/howto7/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/frame/Frame.h b/howtos/howto7/include/howto7/frame/Frame.h index 2305a5ddd..bd7cc619a 100644 --- a/howtos/howto7/include/howto7/frame/Frame.h +++ b/howtos/howto7/include/howto7/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto7/include/howto7/frame/FrameCommon.h b/howtos/howto7/include/howto7/frame/FrameCommon.h index c4f65800c..d84f25780 100644 --- a/howtos/howto7/include/howto7/frame/FrameCommon.h +++ b/howtos/howto7/include/howto7/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/input/AllMessages.h b/howtos/howto7/include/howto7/input/AllMessages.h index 634ef3c9d..91a159f3d 100644 --- a/howtos/howto7/include/howto7/input/AllMessages.h +++ b/howtos/howto7/include/howto7/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto7/include/howto7/input/ClientInputMessages.h b/howtos/howto7/include/howto7/input/ClientInputMessages.h index bc7bbb227..e056536b3 100644 --- a/howtos/howto7/include/howto7/input/ClientInputMessages.h +++ b/howtos/howto7/include/howto7/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto7/include/howto7/input/ServerInputMessages.h b/howtos/howto7/include/howto7/input/ServerInputMessages.h index 91d89a50e..7b968a8d2 100644 --- a/howtos/howto7/include/howto7/input/ServerInputMessages.h +++ b/howtos/howto7/include/howto7/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto7/include/howto7/message/Msg1.h b/howtos/howto7/include/howto7/message/Msg1.h index ad06fc634..022289acd 100644 --- a/howtos/howto7/include/howto7/message/Msg1.h +++ b/howtos/howto7/include/howto7/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto7/include/howto7/message/Msg1Common.h b/howtos/howto7/include/howto7/message/Msg1Common.h index 90964ff9f..442289ba8 100644 --- a/howtos/howto7/include/howto7/message/Msg1Common.h +++ b/howtos/howto7/include/howto7/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/message/Msg2.h b/howtos/howto7/include/howto7/message/Msg2.h index 5439b29e9..fd5a38bab 100644 --- a/howtos/howto7/include/howto7/message/Msg2.h +++ b/howtos/howto7/include/howto7/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto7/include/howto7/message/Msg2Common.h b/howtos/howto7/include/howto7/message/Msg2Common.h index ba99d92da..807c19ec9 100644 --- a/howtos/howto7/include/howto7/message/Msg2Common.h +++ b/howtos/howto7/include/howto7/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/message/Msg3.h b/howtos/howto7/include/howto7/message/Msg3.h index 44ea6533c..bf9ed57a0 100644 --- a/howtos/howto7/include/howto7/message/Msg3.h +++ b/howtos/howto7/include/howto7/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto7/include/howto7/message/Msg3Common.h b/howtos/howto7/include/howto7/message/Msg3Common.h index 76b0b24b2..62075877d 100644 --- a/howtos/howto7/include/howto7/message/Msg3Common.h +++ b/howtos/howto7/include/howto7/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h b/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h index 1b138be36..2daacfd0c 100644 --- a/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto7/include/howto7/options/ClientDefaultOptions.h b/howtos/howto7/include/howto7/options/ClientDefaultOptions.h index 52708ef57..9b314fec8 100644 --- a/howtos/howto7/include/howto7/options/ClientDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h b/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h index 9b60cd378..70f6e09f1 100644 --- a/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto7/include/howto7/options/DefaultOptions.h b/howtos/howto7/include/howto7/options/DefaultOptions.h index 831b4fa82..14f512d15 100644 --- a/howtos/howto7/include/howto7/options/DefaultOptions.h +++ b/howtos/howto7/include/howto7/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto7/include/howto7/options/ServerDefaultOptions.h b/howtos/howto7/include/howto7/options/ServerDefaultOptions.h index c1fb28ea4..38b420a06 100644 --- a/howtos/howto7/include/howto7/options/ServerDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto8/include/howto8/Interface.h b/howtos/howto8/include/howto8/Interface.h index 4bcedf790..09d678fc6 100644 --- a/howtos/howto8/include/howto8/Interface.h +++ b/howtos/howto8/include/howto8/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto8/include/howto8/InterfaceCommon.h b/howtos/howto8/include/howto8/InterfaceCommon.h index 90bfd999d..74f3d89ae 100644 --- a/howtos/howto8/include/howto8/InterfaceCommon.h +++ b/howtos/howto8/include/howto8/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/MsgId.h b/howtos/howto8/include/howto8/MsgId.h index c5b31c11e..3bee375f9 100644 --- a/howtos/howto8/include/howto8/MsgId.h +++ b/howtos/howto8/include/howto8/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto8/include/howto8/Version.h b/howtos/howto8/include/howto8/Version.h index 141a907e3..0747d8f17 100644 --- a/howtos/howto8/include/howto8/Version.h +++ b/howtos/howto8/include/howto8/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto8 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h b/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h index 227b2b5d3..89218622e 100644 --- a/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto8/include/howto8/dispatch/DispatchMessage.h b/howtos/howto8/include/howto8/dispatch/DispatchMessage.h index f205c3925..d6d45fa53 100644 --- a/howtos/howto8/include/howto8/dispatch/DispatchMessage.h +++ b/howtos/howto8/include/howto8/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h b/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h index ed6bd2cf3..7fe315b11 100644 --- a/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto8/include/howto8/field/FieldBase.h b/howtos/howto8/include/howto8/field/FieldBase.h index 2b3296ca3..40109443b 100644 --- a/howtos/howto8/include/howto8/field/FieldBase.h +++ b/howtos/howto8/include/howto8/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto8/include/howto8/field/Flags.h b/howtos/howto8/include/howto8/field/Flags.h index 8bd46a864..3fb7c48f9 100644 --- a/howtos/howto8/include/howto8/field/Flags.h +++ b/howtos/howto8/include/howto8/field/Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Flags" field. diff --git a/howtos/howto8/include/howto8/field/FlagsCommon.h b/howtos/howto8/include/howto8/field/FlagsCommon.h index dab5e276b..f50d39644 100644 --- a/howtos/howto8/include/howto8/field/FlagsCommon.h +++ b/howtos/howto8/include/howto8/field/FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/field/MsgId.h b/howtos/howto8/include/howto8/field/MsgId.h index 22fedbb4b..9abf2d38d 100644 --- a/howtos/howto8/include/howto8/field/MsgId.h +++ b/howtos/howto8/include/howto8/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto8/include/howto8/field/MsgIdCommon.h b/howtos/howto8/include/howto8/field/MsgIdCommon.h index b5c90e479..e24d7d7ea 100644 --- a/howtos/howto8/include/howto8/field/MsgIdCommon.h +++ b/howtos/howto8/include/howto8/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/frame/Frame.h b/howtos/howto8/include/howto8/frame/Frame.h index 20717bf5e..1d3b89ce1 100644 --- a/howtos/howto8/include/howto8/frame/Frame.h +++ b/howtos/howto8/include/howto8/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto8/include/howto8/frame/FrameCommon.h b/howtos/howto8/include/howto8/frame/FrameCommon.h index 3c8577d6b..88ed1e443 100644 --- a/howtos/howto8/include/howto8/frame/FrameCommon.h +++ b/howtos/howto8/include/howto8/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/input/AllMessages.h b/howtos/howto8/include/howto8/input/AllMessages.h index 14156bdfc..b44ad1531 100644 --- a/howtos/howto8/include/howto8/input/AllMessages.h +++ b/howtos/howto8/include/howto8/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto8/include/howto8/input/ClientInputMessages.h b/howtos/howto8/include/howto8/input/ClientInputMessages.h index 8d36e550d..c4a7d39f0 100644 --- a/howtos/howto8/include/howto8/input/ClientInputMessages.h +++ b/howtos/howto8/include/howto8/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto8/include/howto8/input/ServerInputMessages.h b/howtos/howto8/include/howto8/input/ServerInputMessages.h index 9a488258d..c67829837 100644 --- a/howtos/howto8/include/howto8/input/ServerInputMessages.h +++ b/howtos/howto8/include/howto8/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto8/include/howto8/message/Msg1.h b/howtos/howto8/include/howto8/message/Msg1.h index ba4611a50..96aa9a8de 100644 --- a/howtos/howto8/include/howto8/message/Msg1.h +++ b/howtos/howto8/include/howto8/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto8/include/howto8/message/Msg1Common.h b/howtos/howto8/include/howto8/message/Msg1Common.h index fec7d0ee3..83327d839 100644 --- a/howtos/howto8/include/howto8/message/Msg1Common.h +++ b/howtos/howto8/include/howto8/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/message/Msg2.h b/howtos/howto8/include/howto8/message/Msg2.h index bff0383d6..240cd44ed 100644 --- a/howtos/howto8/include/howto8/message/Msg2.h +++ b/howtos/howto8/include/howto8/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto8/include/howto8/message/Msg2Common.h b/howtos/howto8/include/howto8/message/Msg2Common.h index 010f0b0a6..c7227626a 100644 --- a/howtos/howto8/include/howto8/message/Msg2Common.h +++ b/howtos/howto8/include/howto8/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h b/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h index 533877887..a38b30e28 100644 --- a/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto8/include/howto8/options/ClientDefaultOptions.h b/howtos/howto8/include/howto8/options/ClientDefaultOptions.h index 489b98fbe..7e60dceb2 100644 --- a/howtos/howto8/include/howto8/options/ClientDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h b/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h index d6fb6d03d..cfba360c1 100644 --- a/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto8/include/howto8/options/DefaultOptions.h b/howtos/howto8/include/howto8/options/DefaultOptions.h index d5d57dc59..9de7d3216 100644 --- a/howtos/howto8/include/howto8/options/DefaultOptions.h +++ b/howtos/howto8/include/howto8/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto8/include/howto8/options/ServerDefaultOptions.h b/howtos/howto8/include/howto8/options/ServerDefaultOptions.h index a693cf097..00248044a 100644 --- a/howtos/howto8/include/howto8/options/ServerDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto9/include/howto9/Message.h b/howtos/howto9/include/howto9/Message.h index 33e738ae1..954abaff2 100644 --- a/howtos/howto9/include/howto9/Message.h +++ b/howtos/howto9/include/howto9/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto9/include/howto9/MsgId.h b/howtos/howto9/include/howto9/MsgId.h index 4e234d676..559b1f4d6 100644 --- a/howtos/howto9/include/howto9/MsgId.h +++ b/howtos/howto9/include/howto9/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto9/include/howto9/Version.h b/howtos/howto9/include/howto9/Version.h index 48212f16f..d8891fbb4 100644 --- a/howtos/howto9/include/howto9/Version.h +++ b/howtos/howto9/include/howto9/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto9 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h b/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h index 46d8af2c8..22cead2cb 100644 --- a/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto9/include/howto9/dispatch/DispatchMessage.h b/howtos/howto9/include/howto9/dispatch/DispatchMessage.h index 19f1306cf..affab5a0e 100644 --- a/howtos/howto9/include/howto9/dispatch/DispatchMessage.h +++ b/howtos/howto9/include/howto9/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h b/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h index b98b72b35..45640aee9 100644 --- a/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/howtos/howto9/include/howto9/field/FieldBase.h b/howtos/howto9/include/howto9/field/FieldBase.h index 158765862..b6e7a08d4 100644 --- a/howtos/howto9/include/howto9/field/FieldBase.h +++ b/howtos/howto9/include/howto9/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto9/include/howto9/field/MsgId.h b/howtos/howto9/include/howto9/field/MsgId.h index 622f12ddf..d03cf5ec3 100644 --- a/howtos/howto9/include/howto9/field/MsgId.h +++ b/howtos/howto9/include/howto9/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/howtos/howto9/include/howto9/field/MsgIdCommon.h b/howtos/howto9/include/howto9/field/MsgIdCommon.h index 8739544b8..aea4870c6 100644 --- a/howtos/howto9/include/howto9/field/MsgIdCommon.h +++ b/howtos/howto9/include/howto9/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/field/SizeField.h b/howtos/howto9/include/howto9/field/SizeField.h index 7f0100463..e1b75ef91 100644 --- a/howtos/howto9/include/howto9/field/SizeField.h +++ b/howtos/howto9/include/howto9/field/SizeField.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "SizeField" field. diff --git a/howtos/howto9/include/howto9/field/SizeFieldCommon.h b/howtos/howto9/include/howto9/field/SizeFieldCommon.h index 0cfb7ce10..04d140e28 100644 --- a/howtos/howto9/include/howto9/field/SizeFieldCommon.h +++ b/howtos/howto9/include/howto9/field/SizeFieldCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/field/SyncField.h b/howtos/howto9/include/howto9/field/SyncField.h index c686888db..6e1a18e7d 100644 --- a/howtos/howto9/include/howto9/field/SyncField.h +++ b/howtos/howto9/include/howto9/field/SyncField.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "SyncField" field. diff --git a/howtos/howto9/include/howto9/field/SyncFieldCommon.h b/howtos/howto9/include/howto9/field/SyncFieldCommon.h index b4d71bd81..8c5a4dcbf 100644 --- a/howtos/howto9/include/howto9/field/SyncFieldCommon.h +++ b/howtos/howto9/include/howto9/field/SyncFieldCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/frame/Frame.h b/howtos/howto9/include/howto9/frame/Frame.h index fc09a71c9..7eeb53458 100644 --- a/howtos/howto9/include/howto9/frame/Frame.h +++ b/howtos/howto9/include/howto9/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto9/include/howto9/frame/FrameCommon.h b/howtos/howto9/include/howto9/frame/FrameCommon.h index bc1b1c198..bfe1b309e 100644 --- a/howtos/howto9/include/howto9/frame/FrameCommon.h +++ b/howtos/howto9/include/howto9/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/input/AllMessages.h b/howtos/howto9/include/howto9/input/AllMessages.h index 6da0ae7af..b8dee8dd9 100644 --- a/howtos/howto9/include/howto9/input/AllMessages.h +++ b/howtos/howto9/include/howto9/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto9/include/howto9/input/ClientInputMessages.h b/howtos/howto9/include/howto9/input/ClientInputMessages.h index 878d6baad..2016b2dea 100644 --- a/howtos/howto9/include/howto9/input/ClientInputMessages.h +++ b/howtos/howto9/include/howto9/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto9/include/howto9/input/ServerInputMessages.h b/howtos/howto9/include/howto9/input/ServerInputMessages.h index ac20c92ae..23a932d6e 100644 --- a/howtos/howto9/include/howto9/input/ServerInputMessages.h +++ b/howtos/howto9/include/howto9/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto9/include/howto9/message/Msg1.h b/howtos/howto9/include/howto9/message/Msg1.h index 442194a21..6e31cf218 100644 --- a/howtos/howto9/include/howto9/message/Msg1.h +++ b/howtos/howto9/include/howto9/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto9/include/howto9/message/Msg1Common.h b/howtos/howto9/include/howto9/message/Msg1Common.h index 96bd59282..a18932d61 100644 --- a/howtos/howto9/include/howto9/message/Msg1Common.h +++ b/howtos/howto9/include/howto9/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/message/Msg2.h b/howtos/howto9/include/howto9/message/Msg2.h index 6675eb1aa..5fbd7a836 100644 --- a/howtos/howto9/include/howto9/message/Msg2.h +++ b/howtos/howto9/include/howto9/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto9/include/howto9/message/Msg2Common.h b/howtos/howto9/include/howto9/message/Msg2Common.h index 5ff3c0868..a440fb9fe 100644 --- a/howtos/howto9/include/howto9/message/Msg2Common.h +++ b/howtos/howto9/include/howto9/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/message/Msg3.h b/howtos/howto9/include/howto9/message/Msg3.h index 81b332190..4d2f86551 100644 --- a/howtos/howto9/include/howto9/message/Msg3.h +++ b/howtos/howto9/include/howto9/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto9/include/howto9/message/Msg3Common.h b/howtos/howto9/include/howto9/message/Msg3Common.h index 0dae744d3..010fd44bd 100644 --- a/howtos/howto9/include/howto9/message/Msg3Common.h +++ b/howtos/howto9/include/howto9/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h b/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h index 3b6e4ace4..1ae0ccadd 100644 --- a/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto9/include/howto9/options/ClientDefaultOptions.h b/howtos/howto9/include/howto9/options/ClientDefaultOptions.h index 3286fc62c..b5127abdb 100644 --- a/howtos/howto9/include/howto9/options/ClientDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h b/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h index fd4ded0ec..677b07bb5 100644 --- a/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto9/include/howto9/options/DefaultOptions.h b/howtos/howto9/include/howto9/options/DefaultOptions.h index a4d20e8e4..46e565aaa 100644 --- a/howtos/howto9/include/howto9/options/DefaultOptions.h +++ b/howtos/howto9/include/howto9/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/howtos/howto9/include/howto9/options/ServerDefaultOptions.h b/howtos/howto9/include/howto9/options/ServerDefaultOptions.h index 8712481dc..ca9785d5d 100644 --- a/howtos/howto9/include/howto9/options/ServerDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial1/include/tutorial1/Message.h b/tutorials/tutorial1/include/tutorial1/Message.h index 9c45b4065..417bfb92b 100644 --- a/tutorials/tutorial1/include/tutorial1/Message.h +++ b/tutorials/tutorial1/include/tutorial1/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial1/include/tutorial1/MsgId.h b/tutorials/tutorial1/include/tutorial1/MsgId.h index 2e3af4fa0..e61c8eb6a 100644 --- a/tutorials/tutorial1/include/tutorial1/MsgId.h +++ b/tutorials/tutorial1/include/tutorial1/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial1/include/tutorial1/Version.h b/tutorials/tutorial1/include/tutorial1/Version.h index 258d4516c..f15485dc9 100644 --- a/tutorials/tutorial1/include/tutorial1/Version.h +++ b/tutorials/tutorial1/include/tutorial1/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial1 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h index ccc1658be..92f2b4da0 100644 --- a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h index dafba6437..59f3aa1dd 100644 --- a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h +++ b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h index f078d282a..5cd424d20 100644 --- a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial1/include/tutorial1/field/FieldBase.h b/tutorials/tutorial1/include/tutorial1/field/FieldBase.h index b798ef421..640b104cb 100644 --- a/tutorials/tutorial1/include/tutorial1/field/FieldBase.h +++ b/tutorials/tutorial1/include/tutorial1/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial1/include/tutorial1/field/MsgId.h b/tutorials/tutorial1/include/tutorial1/field/MsgId.h index c2052d296..dd5c53f7b 100644 --- a/tutorials/tutorial1/include/tutorial1/field/MsgId.h +++ b/tutorials/tutorial1/include/tutorial1/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h b/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h index 862a01a73..4e1231acd 100644 --- a/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h +++ b/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/frame/Frame.h b/tutorials/tutorial1/include/tutorial1/frame/Frame.h index 95b6ccc34..42416d418 100644 --- a/tutorials/tutorial1/include/tutorial1/frame/Frame.h +++ b/tutorials/tutorial1/include/tutorial1/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h b/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h index e31b215c7..b62ab5ee7 100644 --- a/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h +++ b/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/input/AllMessages.h b/tutorials/tutorial1/include/tutorial1/input/AllMessages.h index df512432e..1f26d5e2b 100644 --- a/tutorials/tutorial1/include/tutorial1/input/AllMessages.h +++ b/tutorials/tutorial1/include/tutorial1/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h b/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h index bd1f67ffc..c86882214 100644 --- a/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h +++ b/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h b/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h index c69bc8e86..9366481ea 100644 --- a/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h +++ b/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg1.h b/tutorials/tutorial1/include/tutorial1/message/Msg1.h index f399dc264..5d5afeffd 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg1.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h b/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h index af9883f9f..064e5398f 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg2.h b/tutorials/tutorial1/include/tutorial1/message/Msg2.h index a6c8925f0..90f2ebbbe 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg2.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h b/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h index 6daf8c532..554cb3d9f 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h index dc909faaa..648ed97dc 100644 --- a/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h index c4d5537b8..6961fb9eb 100644 --- a/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h index d3a90ade3..0b4a64dc0 100644 --- a/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h index 37169250e..01f1aa495 100644 --- a/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h index 1e973d1be..b8e620e38 100644 --- a/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial10/include/tutorial10/Message.h b/tutorials/tutorial10/include/tutorial10/Message.h index dfee513cf..d2bdace9d 100644 --- a/tutorials/tutorial10/include/tutorial10/Message.h +++ b/tutorials/tutorial10/include/tutorial10/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial10/include/tutorial10/MsgId.h b/tutorials/tutorial10/include/tutorial10/MsgId.h index 41896ea34..e875ac710 100644 --- a/tutorials/tutorial10/include/tutorial10/MsgId.h +++ b/tutorials/tutorial10/include/tutorial10/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial10/include/tutorial10/Version.h b/tutorials/tutorial10/include/tutorial10/Version.h index b8694db71..065e909ed 100644 --- a/tutorials/tutorial10/include/tutorial10/Version.h +++ b/tutorials/tutorial10/include/tutorial10/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial10 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h index 5eb5ddd65..30a8042ef 100644 --- a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h index 77f99674a..1ca5f5116 100644 --- a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h +++ b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h index cfe3bb311..a04697851 100644 --- a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial10/include/tutorial10/field/FieldBase.h b/tutorials/tutorial10/include/tutorial10/field/FieldBase.h index a36edfa37..6a87729e0 100644 --- a/tutorials/tutorial10/include/tutorial10/field/FieldBase.h +++ b/tutorials/tutorial10/include/tutorial10/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial10/include/tutorial10/field/MsgId.h b/tutorials/tutorial10/include/tutorial10/field/MsgId.h index 4c5283ce9..ef6b7479e 100644 --- a/tutorials/tutorial10/include/tutorial10/field/MsgId.h +++ b/tutorials/tutorial10/include/tutorial10/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h b/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h index 8fb90ee88..51db6ee9b 100644 --- a/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h +++ b/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/frame/Frame.h b/tutorials/tutorial10/include/tutorial10/frame/Frame.h index a72535a9d..7b24f8c10 100644 --- a/tutorials/tutorial10/include/tutorial10/frame/Frame.h +++ b/tutorials/tutorial10/include/tutorial10/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h b/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h index bb1402f96..03df539c5 100644 --- a/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h +++ b/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/input/AllMessages.h b/tutorials/tutorial10/include/tutorial10/input/AllMessages.h index e3054f0d8..027943218 100644 --- a/tutorials/tutorial10/include/tutorial10/input/AllMessages.h +++ b/tutorials/tutorial10/include/tutorial10/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h b/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h index 63d300340..8e1c12015 100644 --- a/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h +++ b/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h b/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h index fc3bab2a8..a8527000a 100644 --- a/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h +++ b/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg1.h b/tutorials/tutorial10/include/tutorial10/message/Msg1.h index a6047eb9c..7bcb576e2 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg1.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h index fc02ee361..0e88bd673 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg2.h b/tutorials/tutorial10/include/tutorial10/message/Msg2.h index 6cae589cb..95cf11b01 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg2.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h index 71c3ef47a..b32f0c88b 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg3.h b/tutorials/tutorial10/include/tutorial10/message/Msg3.h index 4aa85324d..dc971adbd 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg3.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h index 50c91c93f..39984d622 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg4.h b/tutorials/tutorial10/include/tutorial10/message/Msg4.h index 23638f388..e134ce398 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg4.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h index 0137aab51..ca602777a 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg5.h b/tutorials/tutorial10/include/tutorial10/message/Msg5.h index 10b980ac8..f01af5ab7 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg5.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg5.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 5" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h index 9a595d968..cc62f7728 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h index bd6304513..88250357d 100644 --- a/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h index b43912c34..33580e1af 100644 --- a/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h index 97b287832..eb4be288f 100644 --- a/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h index 70fccc547..5563bd400 100644 --- a/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h index dff603401..8d45e5933 100644 --- a/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial11/include/tutorial11/Message.h b/tutorials/tutorial11/include/tutorial11/Message.h index c06a3f3a8..4b072bde7 100644 --- a/tutorials/tutorial11/include/tutorial11/Message.h +++ b/tutorials/tutorial11/include/tutorial11/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial11/include/tutorial11/MsgId.h b/tutorials/tutorial11/include/tutorial11/MsgId.h index cb1c7fdca..4edbb636a 100644 --- a/tutorials/tutorial11/include/tutorial11/MsgId.h +++ b/tutorials/tutorial11/include/tutorial11/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial11/include/tutorial11/Version.h b/tutorials/tutorial11/include/tutorial11/Version.h index 1a1d2b147..d943308e0 100644 --- a/tutorials/tutorial11/include/tutorial11/Version.h +++ b/tutorials/tutorial11/include/tutorial11/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial11 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h index 510c98453..a2fa75b4c 100644 --- a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h index fa027d60a..633b38c74 100644 --- a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h +++ b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h index ea1d03caf..130fd0165 100644 --- a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial11/include/tutorial11/field/FieldBase.h b/tutorials/tutorial11/include/tutorial11/field/FieldBase.h index 6af760c28..0374a8767 100644 --- a/tutorials/tutorial11/include/tutorial11/field/FieldBase.h +++ b/tutorials/tutorial11/include/tutorial11/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial11/include/tutorial11/field/MsgId.h b/tutorials/tutorial11/include/tutorial11/field/MsgId.h index c91faef15..a545c1934 100644 --- a/tutorials/tutorial11/include/tutorial11/field/MsgId.h +++ b/tutorials/tutorial11/include/tutorial11/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h b/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h index 3bf966864..8e5f14a68 100644 --- a/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h +++ b/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/frame/Frame.h b/tutorials/tutorial11/include/tutorial11/frame/Frame.h index e51338ff5..fbb6b8872 100644 --- a/tutorials/tutorial11/include/tutorial11/frame/Frame.h +++ b/tutorials/tutorial11/include/tutorial11/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h b/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h index 24e1520de..a6c234a3d 100644 --- a/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h +++ b/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/input/AllMessages.h b/tutorials/tutorial11/include/tutorial11/input/AllMessages.h index 53893a0be..0facdd660 100644 --- a/tutorials/tutorial11/include/tutorial11/input/AllMessages.h +++ b/tutorials/tutorial11/include/tutorial11/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h b/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h index f3f43a7b7..7b81dc4d3 100644 --- a/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h +++ b/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h b/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h index b2dd0620d..b2edba48e 100644 --- a/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h +++ b/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg1.h b/tutorials/tutorial11/include/tutorial11/message/Msg1.h index 1c68c9b47..f8dfdc613 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg1.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h b/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h index d01c33375..00c71596a 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg2.h b/tutorials/tutorial11/include/tutorial11/message/Msg2.h index e521d5444..b2e0d971a 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg2.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h b/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h index 40fa8762e..8288cbbd3 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg3.h b/tutorials/tutorial11/include/tutorial11/message/Msg3.h index 0fcb2ab17..81cfa0a4b 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg3.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h b/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h index 6aa45c983..7655579a3 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h index 34e95d800..664f617e9 100644 --- a/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h index 4384f3e33..20e7a8c48 100644 --- a/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h index 8a5c68947..3131037b7 100644 --- a/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h index 8a9539821..47313d6cc 100644 --- a/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h index 296212d78..1ba96bad6 100644 --- a/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial12/include/tutorial12/Message.h b/tutorials/tutorial12/include/tutorial12/Message.h index 84fe05bdf..610c969b4 100644 --- a/tutorials/tutorial12/include/tutorial12/Message.h +++ b/tutorials/tutorial12/include/tutorial12/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial12/include/tutorial12/MsgId.h b/tutorials/tutorial12/include/tutorial12/MsgId.h index 09b783993..6450c9325 100644 --- a/tutorials/tutorial12/include/tutorial12/MsgId.h +++ b/tutorials/tutorial12/include/tutorial12/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial12/include/tutorial12/Version.h b/tutorials/tutorial12/include/tutorial12/Version.h index b1e728dbd..d4fc7e35d 100644 --- a/tutorials/tutorial12/include/tutorial12/Version.h +++ b/tutorials/tutorial12/include/tutorial12/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial12 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h index 7bb8a7af5..64bbb141e 100644 --- a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h index 2bdb3b365..dbc7e5bc7 100644 --- a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h +++ b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h index d61665992..c55484fa1 100644 --- a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial12/include/tutorial12/field/FieldBase.h b/tutorials/tutorial12/include/tutorial12/field/FieldBase.h index c5bdbc31a..4f14f5fb5 100644 --- a/tutorials/tutorial12/include/tutorial12/field/FieldBase.h +++ b/tutorials/tutorial12/include/tutorial12/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial12/include/tutorial12/field/Length.h b/tutorials/tutorial12/include/tutorial12/field/Length.h index 172339bbf..6ad462ef5 100644 --- a/tutorials/tutorial12/include/tutorial12/field/Length.h +++ b/tutorials/tutorial12/include/tutorial12/field/Length.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Length" field. diff --git a/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h b/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h index b581dc526..a9700aff8 100644 --- a/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h +++ b/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/field/MsgId.h b/tutorials/tutorial12/include/tutorial12/field/MsgId.h index b0728a1e0..321a2aa80 100644 --- a/tutorials/tutorial12/include/tutorial12/field/MsgId.h +++ b/tutorials/tutorial12/include/tutorial12/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h b/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h index 1d0f2d788..cc153a0db 100644 --- a/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h +++ b/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/frame/Frame.h b/tutorials/tutorial12/include/tutorial12/frame/Frame.h index 37a2bfe6e..4ea47f94d 100644 --- a/tutorials/tutorial12/include/tutorial12/frame/Frame.h +++ b/tutorials/tutorial12/include/tutorial12/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h b/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h index afaeecdf8..6992ed68e 100644 --- a/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h +++ b/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/input/AllMessages.h b/tutorials/tutorial12/include/tutorial12/input/AllMessages.h index 3df3cb891..0536ed78e 100644 --- a/tutorials/tutorial12/include/tutorial12/input/AllMessages.h +++ b/tutorials/tutorial12/include/tutorial12/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h b/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h index cec23640a..9d0badf62 100644 --- a/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h +++ b/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h b/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h index e1beb7049..a4398f9e4 100644 --- a/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h +++ b/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg1.h b/tutorials/tutorial12/include/tutorial12/message/Msg1.h index 836a1e1f6..ab9a1504c 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg1.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. @@ -75,7 +75,7 @@ struct Msg1Fields { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h b/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h index fa6054f23..b2248a75a 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg2.h b/tutorials/tutorial12/include/tutorial12/message/Msg2.h index 19f1a4235..ad7004b79 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg2.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h b/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h index c278af7ec..bbc33317c 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg3.h b/tutorials/tutorial12/include/tutorial12/message/Msg3.h index df441a4bb..661d60307 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg3.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h b/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h index 81ec1eba5..f16b0b678 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h index 3a069dc2e..c0b73b59f 100644 --- a/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h index 4690d9269..959d834a2 100644 --- a/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h index ba2c2e04d..4746f4baf 100644 --- a/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h index 12c0931ed..24938de6b 100644 --- a/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h index f0fe66ef0..f36352339 100644 --- a/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial13/include/tutorial13/Message.h b/tutorials/tutorial13/include/tutorial13/Message.h index 3ce7517ff..e64f5775b 100644 --- a/tutorials/tutorial13/include/tutorial13/Message.h +++ b/tutorials/tutorial13/include/tutorial13/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial13/include/tutorial13/MsgId.h b/tutorials/tutorial13/include/tutorial13/MsgId.h index bb169ddab..e2d3e98b3 100644 --- a/tutorials/tutorial13/include/tutorial13/MsgId.h +++ b/tutorials/tutorial13/include/tutorial13/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial13/include/tutorial13/Version.h b/tutorials/tutorial13/include/tutorial13/Version.h index 0f744768d..154c98129 100644 --- a/tutorials/tutorial13/include/tutorial13/Version.h +++ b/tutorials/tutorial13/include/tutorial13/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial13 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h index 7f2ee75ef..47407c95c 100644 --- a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h index 04bd1ef2e..94138dc5e 100644 --- a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h +++ b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h index b9950cbdd..9583387b9 100644 --- a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial13/include/tutorial13/field/FieldBase.h b/tutorials/tutorial13/include/tutorial13/field/FieldBase.h index 86d5c3bb9..8c15c7904 100644 --- a/tutorials/tutorial13/include/tutorial13/field/FieldBase.h +++ b/tutorials/tutorial13/include/tutorial13/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial13/include/tutorial13/field/MsgId.h b/tutorials/tutorial13/include/tutorial13/field/MsgId.h index e7089466c..fcc0d8732 100644 --- a/tutorials/tutorial13/include/tutorial13/field/MsgId.h +++ b/tutorials/tutorial13/include/tutorial13/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h b/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h index e50a2a9e4..cc6e8d4ed 100644 --- a/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h +++ b/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/frame/Frame.h b/tutorials/tutorial13/include/tutorial13/frame/Frame.h index 3d3a02cd7..e81e1671f 100644 --- a/tutorials/tutorial13/include/tutorial13/frame/Frame.h +++ b/tutorials/tutorial13/include/tutorial13/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h b/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h index 2b0062e83..eb8716aa3 100644 --- a/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h +++ b/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/input/AllMessages.h b/tutorials/tutorial13/include/tutorial13/input/AllMessages.h index 5d92ac104..b6869fcf3 100644 --- a/tutorials/tutorial13/include/tutorial13/input/AllMessages.h +++ b/tutorials/tutorial13/include/tutorial13/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h b/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h index 65af2686b..cf17c9d0a 100644 --- a/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h +++ b/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h b/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h index 96ce96298..cdb360b4e 100644 --- a/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h +++ b/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h index 4eb464c52..23f70f281 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1 (1)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h index 2a5d98796..8f21fbccd 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h index 81f9baf78..1986bd8c0 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1 (2)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h index 5f7c83639..7ed8d8c8d 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h index 26ed540ed..a294d8ac6 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1 (3)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h index 214c9b65d..8881f47b4 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h index 6e15098dd..df8b831d5 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2 (1)" message and its fields. @@ -74,7 +74,7 @@ struct Msg2_1Fields if (Base::valid()) { return updated; }; - Base::value() = static_cast(1); + Base::setValue(1); return true; } diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h index e42de867b..141397532 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h index c26830f97..d0339529b 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2 (2)" message and its fields. @@ -74,7 +74,7 @@ struct Msg2_2Fields if (Base::valid()) { return updated; }; - Base::value() = static_cast(2); + Base::setValue(2); return true; } diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h index 31cd7b77f..1b17eb4fa 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h index 91afdffcd..b41564219 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2 (3)" message and its fields. @@ -74,7 +74,7 @@ struct Msg2_3Fields if (Base::valid()) { return updated; }; - Base::value() = static_cast(3); + Base::setValue(3); return true; } diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h index ad1395a9b..8dffb2808 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h index b7b824498..30891fa82 100644 --- a/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h index fad2032e4..6268ecfc0 100644 --- a/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h index 53fc63ec1..02449d5e8 100644 --- a/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h index edbaeaa57..c0414172f 100644 --- a/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h index 4f58d4b51..3586871ad 100644 --- a/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial14/include/tutorial14/Message.h b/tutorials/tutorial14/include/tutorial14/Message.h index b5dccd2a2..2c0ba207f 100644 --- a/tutorials/tutorial14/include/tutorial14/Message.h +++ b/tutorials/tutorial14/include/tutorial14/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial14/include/tutorial14/MsgId.h b/tutorials/tutorial14/include/tutorial14/MsgId.h index a9d3311b6..b49f3c705 100644 --- a/tutorials/tutorial14/include/tutorial14/MsgId.h +++ b/tutorials/tutorial14/include/tutorial14/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial14/include/tutorial14/Version.h b/tutorials/tutorial14/include/tutorial14/Version.h index 27941794d..3c601b7e7 100644 --- a/tutorials/tutorial14/include/tutorial14/Version.h +++ b/tutorials/tutorial14/include/tutorial14/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial14 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h index 4fffb21b5..a36b72add 100644 --- a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h index fe78ea10b..7d724a073 100644 --- a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h +++ b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h index ccf6fa000..49a0ea8a5 100644 --- a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial14/include/tutorial14/field/FieldBase.h b/tutorials/tutorial14/include/tutorial14/field/FieldBase.h index ce915f321..99aee3df3 100644 --- a/tutorials/tutorial14/include/tutorial14/field/FieldBase.h +++ b/tutorials/tutorial14/include/tutorial14/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial14/include/tutorial14/field/MsgId.h b/tutorials/tutorial14/include/tutorial14/field/MsgId.h index a8f4d52bf..aae839e85 100644 --- a/tutorials/tutorial14/include/tutorial14/field/MsgId.h +++ b/tutorials/tutorial14/include/tutorial14/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h b/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h index 576cb7b01..82163e215 100644 --- a/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h +++ b/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial14/include/tutorial14/frame/Frame.h b/tutorials/tutorial14/include/tutorial14/frame/Frame.h index b138c1348..3867856a1 100644 --- a/tutorials/tutorial14/include/tutorial14/frame/Frame.h +++ b/tutorials/tutorial14/include/tutorial14/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h b/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h index 4e623d3e9..0cf30dd9a 100644 --- a/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h +++ b/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial14/include/tutorial14/input/AllMessages.h b/tutorials/tutorial14/include/tutorial14/input/AllMessages.h index 484d990ec..c8e8106f8 100644 --- a/tutorials/tutorial14/include/tutorial14/input/AllMessages.h +++ b/tutorials/tutorial14/include/tutorial14/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h b/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h index ddf9e090c..9c2e7041b 100644 --- a/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h +++ b/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h b/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h index 0817b61f7..c9dfd9746 100644 --- a/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h +++ b/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg1.h b/tutorials/tutorial14/include/tutorial14/message/Msg1.h index b22b84622..afa273597 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg1.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h b/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h index ba3ca21bd..20c7a7975 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg2.h b/tutorials/tutorial14/include/tutorial14/message/Msg2.h index 52828e75c..5e07dca51 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg2.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h b/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h index 7b9cfec9a..e4ddb7c64 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h index 219c5867c..9b9c7465a 100644 --- a/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h index 1c527dbaf..c2e99f58d 100644 --- a/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h index f820b15dc..8aabedae8 100644 --- a/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h index 2a3153a51..37780e4a1 100644 --- a/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h index a56e2e476..1916f5ca3 100644 --- a/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial15/include/tutorial15/Message.h b/tutorials/tutorial15/include/tutorial15/Message.h index 84364f809..0e38e8154 100644 --- a/tutorials/tutorial15/include/tutorial15/Message.h +++ b/tutorials/tutorial15/include/tutorial15/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial15/include/tutorial15/MsgId.h b/tutorials/tutorial15/include/tutorial15/MsgId.h index 833cbf018..3f1b9b66f 100644 --- a/tutorials/tutorial15/include/tutorial15/MsgId.h +++ b/tutorials/tutorial15/include/tutorial15/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial15/include/tutorial15/Version.h b/tutorials/tutorial15/include/tutorial15/Version.h index 98fd260e5..78f629517 100644 --- a/tutorials/tutorial15/include/tutorial15/Version.h +++ b/tutorials/tutorial15/include/tutorial15/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial15 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h index a0a9e1eda..33030a421 100644 --- a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h index f9ff31233..d67afd63d 100644 --- a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h +++ b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h index a3cbc0b88..3a312f853 100644 --- a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial15/include/tutorial15/field/FieldBase.h b/tutorials/tutorial15/include/tutorial15/field/FieldBase.h index c58e04547..2038fb627 100644 --- a/tutorials/tutorial15/include/tutorial15/field/FieldBase.h +++ b/tutorials/tutorial15/include/tutorial15/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial15/include/tutorial15/field/MsgId.h b/tutorials/tutorial15/include/tutorial15/field/MsgId.h index e334840f9..e35b756fe 100644 --- a/tutorials/tutorial15/include/tutorial15/field/MsgId.h +++ b/tutorials/tutorial15/include/tutorial15/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h b/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h index 6315c5392..2e85f1542 100644 --- a/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h +++ b/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/frame/Frame.h b/tutorials/tutorial15/include/tutorial15/frame/Frame.h index fc3ceb93d..ba286cf9a 100644 --- a/tutorials/tutorial15/include/tutorial15/frame/Frame.h +++ b/tutorials/tutorial15/include/tutorial15/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h b/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h index e339a1c5f..8fcde4ffc 100644 --- a/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h +++ b/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/input/AllMessages.h b/tutorials/tutorial15/include/tutorial15/input/AllMessages.h index 213de6501..850a59ffc 100644 --- a/tutorials/tutorial15/include/tutorial15/input/AllMessages.h +++ b/tutorials/tutorial15/include/tutorial15/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h b/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h index 94a02dbf6..e95d9d360 100644 --- a/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h +++ b/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h b/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h index fe1a7f8cd..1a8fa8c9d 100644 --- a/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h +++ b/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg1.h b/tutorials/tutorial15/include/tutorial15/message/Msg1.h index 2a1d7d1f9..51eae4408 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg1.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h b/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h index e6cab435d..44cc62abd 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg2.h b/tutorials/tutorial15/include/tutorial15/message/Msg2.h index 8346b29ad..479b528ba 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg2.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -90,7 +90,7 @@ struct Msg2Fields { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h b/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h index bee73f7c3..94ffb4b2f 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg3.h b/tutorials/tutorial15/include/tutorial15/message/Msg3.h index 02ca09b8b..30a98a585 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg3.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h b/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h index d5399d126..9e5f6b75a 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h index 1d66a639f..3641df08f 100644 --- a/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h index bf0332db3..6140be586 100644 --- a/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h index 4dce9f342..d03a177ff 100644 --- a/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h index 6a3c2998b..926509369 100644 --- a/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h index d4090960f..3d74c1fe0 100644 --- a/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial16/include/tutorial16/Interface.h b/tutorials/tutorial16/include/tutorial16/Interface.h index 70e221778..0094c93ef 100644 --- a/tutorials/tutorial16/include/tutorial16/Interface.h +++ b/tutorials/tutorial16/include/tutorial16/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h b/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h index 6d612e336..aa11e4f82 100644 --- a/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h +++ b/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/MsgId.h b/tutorials/tutorial16/include/tutorial16/MsgId.h index 1e31b4e42..e20c8f604 100644 --- a/tutorials/tutorial16/include/tutorial16/MsgId.h +++ b/tutorials/tutorial16/include/tutorial16/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial16/include/tutorial16/Version.h b/tutorials/tutorial16/include/tutorial16/Version.h index 765a81131..099d83778 100644 --- a/tutorials/tutorial16/include/tutorial16/Version.h +++ b/tutorials/tutorial16/include/tutorial16/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial16 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h index 6b4f46e7c..42fb1aeb3 100644 --- a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h index 9912e60b7..6441506a0 100644 --- a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h +++ b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h index a5ad149c3..9073dd58a 100644 --- a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial16/include/tutorial16/field/FieldBase.h b/tutorials/tutorial16/include/tutorial16/field/FieldBase.h index 13eb7fb66..652095fbb 100644 --- a/tutorials/tutorial16/include/tutorial16/field/FieldBase.h +++ b/tutorials/tutorial16/include/tutorial16/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h index 3485b1ffc..192c5582c 100644 --- a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h +++ b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "InterfaceFlags" field. diff --git a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h index dbbfd0d33..7bf00ebd1 100644 --- a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h +++ b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/field/MsgId.h b/tutorials/tutorial16/include/tutorial16/field/MsgId.h index 78bafbd3a..82a80980a 100644 --- a/tutorials/tutorial16/include/tutorial16/field/MsgId.h +++ b/tutorials/tutorial16/include/tutorial16/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h b/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h index 03c1351ff..312cd06fc 100644 --- a/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h +++ b/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/frame/Frame.h b/tutorials/tutorial16/include/tutorial16/frame/Frame.h index 93b1d66b3..db75792f3 100644 --- a/tutorials/tutorial16/include/tutorial16/frame/Frame.h +++ b/tutorials/tutorial16/include/tutorial16/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h b/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h index d64500a07..55635c0de 100644 --- a/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h +++ b/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/input/AllMessages.h b/tutorials/tutorial16/include/tutorial16/input/AllMessages.h index da2f56dde..3948a8992 100644 --- a/tutorials/tutorial16/include/tutorial16/input/AllMessages.h +++ b/tutorials/tutorial16/include/tutorial16/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h b/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h index 9378f82b8..d24af975e 100644 --- a/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h +++ b/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h b/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h index ac759805c..69c93355c 100644 --- a/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h +++ b/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg1.h b/tutorials/tutorial16/include/tutorial16/message/Msg1.h index 955154dc0..b0c220bc5 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg1.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h b/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h index 042baa8c5..966900740 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg2.h b/tutorials/tutorial16/include/tutorial16/message/Msg2.h index 691b9f399..27b05fceb 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg2.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -91,7 +91,7 @@ struct Msg2Fields { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h b/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h index 0e51d964e..48da836be 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h index a1ce6c4e8..51047cd21 100644 --- a/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h index caffc7aa4..504f61759 100644 --- a/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h index 45a566382..84f25489b 100644 --- a/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h index 9b56146d1..8c3418de2 100644 --- a/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h index 71b3bde05..e1d97454f 100644 --- a/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial17/include/tutorial17/Interface.h b/tutorials/tutorial17/include/tutorial17/Interface.h index de505c033..ef1c9e9f2 100644 --- a/tutorials/tutorial17/include/tutorial17/Interface.h +++ b/tutorials/tutorial17/include/tutorial17/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h b/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h index 8f53cc167..af79deb71 100644 --- a/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h +++ b/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/MsgId.h b/tutorials/tutorial17/include/tutorial17/MsgId.h index e06ab39b6..93a17429e 100644 --- a/tutorials/tutorial17/include/tutorial17/MsgId.h +++ b/tutorials/tutorial17/include/tutorial17/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial17/include/tutorial17/Version.h b/tutorials/tutorial17/include/tutorial17/Version.h index 25a5f3e13..3ca498825 100644 --- a/tutorials/tutorial17/include/tutorial17/Version.h +++ b/tutorials/tutorial17/include/tutorial17/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial17 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h index 95c869843..2b6c921ad 100644 --- a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h index 1892d5c67..6a2c3e9cc 100644 --- a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h +++ b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h index c9c9b185e..d87ae6f04 100644 --- a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial17/include/tutorial17/field/FieldBase.h b/tutorials/tutorial17/include/tutorial17/field/FieldBase.h index f8f553178..96d79797d 100644 --- a/tutorials/tutorial17/include/tutorial17/field/FieldBase.h +++ b/tutorials/tutorial17/include/tutorial17/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial17/include/tutorial17/field/MsgId.h b/tutorials/tutorial17/include/tutorial17/field/MsgId.h index f7f5f830b..d567d42f7 100644 --- a/tutorials/tutorial17/include/tutorial17/field/MsgId.h +++ b/tutorials/tutorial17/include/tutorial17/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h b/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h index 68bde8196..f231ef820 100644 --- a/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h +++ b/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/frame/Frame.h b/tutorials/tutorial17/include/tutorial17/frame/Frame.h index c76341200..8feb2c6ee 100644 --- a/tutorials/tutorial17/include/tutorial17/frame/Frame.h +++ b/tutorials/tutorial17/include/tutorial17/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h b/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h index cb859bebb..52b631774 100644 --- a/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h +++ b/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/input/AllMessages.h b/tutorials/tutorial17/include/tutorial17/input/AllMessages.h index 4c0bde527..16d51412f 100644 --- a/tutorials/tutorial17/include/tutorial17/input/AllMessages.h +++ b/tutorials/tutorial17/include/tutorial17/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h b/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h index 6c4252ba3..aee018836 100644 --- a/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h +++ b/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h b/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h index 108836bc8..18c65da17 100644 --- a/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h +++ b/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg1.h b/tutorials/tutorial17/include/tutorial17/message/Msg1.h index cbb3f9e27..ccea5d91e 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg1.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h b/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h index 732222b84..2de3285cb 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg2.h b/tutorials/tutorial17/include/tutorial17/message/Msg2.h index e04843db6..904e65ec5 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg2.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -91,7 +91,7 @@ struct Msg2Fields { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h b/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h index c07c4aa94..d4e5e81c1 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h index 2e5d48331..812111ec3 100644 --- a/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h index bdc3faa1e..73a35acac 100644 --- a/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h index 9b1ef7c21..725aab959 100644 --- a/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h index e7bc938b4..e623d8fa3 100644 --- a/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h index 62ebfd91a..c4940356a 100644 --- a/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial18/include/tutorial18/Message.h b/tutorials/tutorial18/include/tutorial18/Message.h index 4a97b98cd..9351bc02e 100644 --- a/tutorials/tutorial18/include/tutorial18/Message.h +++ b/tutorials/tutorial18/include/tutorial18/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial18/include/tutorial18/MsgId.h b/tutorials/tutorial18/include/tutorial18/MsgId.h index 2d85e6a57..9f6bcfe64 100644 --- a/tutorials/tutorial18/include/tutorial18/MsgId.h +++ b/tutorials/tutorial18/include/tutorial18/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial18/include/tutorial18/Version.h b/tutorials/tutorial18/include/tutorial18/Version.h index 8cbe3e84c..3ffdc28e2 100644 --- a/tutorials/tutorial18/include/tutorial18/Version.h +++ b/tutorials/tutorial18/include/tutorial18/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial18 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h index c4e9a9a4c..d5ee3b80c 100644 --- a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h index 388ec6b8c..885b28bed 100644 --- a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h +++ b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h index dc0813c82..e6379994d 100644 --- a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial18/include/tutorial18/field/FieldBase.h b/tutorials/tutorial18/include/tutorial18/field/FieldBase.h index b059c4abf..9d1a20b52 100644 --- a/tutorials/tutorial18/include/tutorial18/field/FieldBase.h +++ b/tutorials/tutorial18/include/tutorial18/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial18/include/tutorial18/field/MsgId.h b/tutorials/tutorial18/include/tutorial18/field/MsgId.h index d84ef8f7f..f7e431d75 100644 --- a/tutorials/tutorial18/include/tutorial18/field/MsgId.h +++ b/tutorials/tutorial18/include/tutorial18/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "ID" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h b/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h index caf1d5fb5..4d820a461 100644 --- a/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h +++ b/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/frame/Frame.h b/tutorials/tutorial18/include/tutorial18/frame/Frame.h index d26afb88e..4f7917583 100644 --- a/tutorials/tutorial18/include/tutorial18/frame/Frame.h +++ b/tutorials/tutorial18/include/tutorial18/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h b/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h index a59addb33..16cf1a860 100644 --- a/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h +++ b/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/input/AllMessages.h b/tutorials/tutorial18/include/tutorial18/input/AllMessages.h index 0b6d529eb..7c84539d6 100644 --- a/tutorials/tutorial18/include/tutorial18/input/AllMessages.h +++ b/tutorials/tutorial18/include/tutorial18/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h b/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h index 4105f3848..d89e88349 100644 --- a/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h +++ b/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h b/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h index bd411ae23..f0176281f 100644 --- a/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h +++ b/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h index 42c86e757..6c3496e22 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1 (1)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h index 94a60ef95..4bdfadd8b 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h index 7461095a7..c6c0d055e 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1 (2)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h index fad7e7f8d..a818162fe 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h index fe813e51b..4e9ba0344 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1 (3)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h index 005148bdc..c87f5384a 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h index 021f384e6..3009703b1 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2 (1)" message and its fields. @@ -74,7 +74,7 @@ struct Msg2_1Fields if (Base::valid()) { return updated; }; - Base::value() = static_cast(1); + Base::setValue(1); return true; } diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h index 863d28252..1937d2ce2 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h index d48048738..07219471f 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2 (2)" message and its fields. @@ -74,7 +74,7 @@ struct Msg2_2Fields if (Base::valid()) { return updated; }; - Base::value() = static_cast(2); + Base::setValue(2); return true; } diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h index b3c15399d..1514ffbeb 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h index 909f91561..11b65112b 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2 (3)" message and its fields. @@ -74,7 +74,7 @@ struct Msg2_3Fields if (Base::valid()) { return updated; }; - Base::value() = static_cast(3); + Base::setValue(3); return true; } diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h index 90cc0ea49..f6d0bb1ab 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h index 4dda5b325..56df34d75 100644 --- a/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h index aab6803ed..c55b7dfac 100644 --- a/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h index 0697379b1..397df3b82 100644 --- a/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h index dcbc7eade..0f3904e51 100644 --- a/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h index 63f388864..98a7bc39f 100644 --- a/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial19/include/tutorial19/Interface.h b/tutorials/tutorial19/include/tutorial19/Interface.h index 9a35e266f..d13a75699 100644 --- a/tutorials/tutorial19/include/tutorial19/Interface.h +++ b/tutorials/tutorial19/include/tutorial19/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h b/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h index 4ffbe8fe0..4d13cd22f 100644 --- a/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h +++ b/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/MsgId.h b/tutorials/tutorial19/include/tutorial19/MsgId.h index f71d97840..4b2779495 100644 --- a/tutorials/tutorial19/include/tutorial19/MsgId.h +++ b/tutorials/tutorial19/include/tutorial19/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial19/include/tutorial19/Version.h b/tutorials/tutorial19/include/tutorial19/Version.h index e340eb816..b98a6837e 100644 --- a/tutorials/tutorial19/include/tutorial19/Version.h +++ b/tutorials/tutorial19/include/tutorial19/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial19 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h index 3c5573a9e..22c087ee3 100644 --- a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h index f8623d5f2..018c60039 100644 --- a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h +++ b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h index a4dc23358..35bb3b8fe 100644 --- a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial19/include/tutorial19/field/FieldBase.h b/tutorials/tutorial19/include/tutorial19/field/FieldBase.h index 107f289cd..32d5c3e87 100644 --- a/tutorials/tutorial19/include/tutorial19/field/FieldBase.h +++ b/tutorials/tutorial19/include/tutorial19/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial19/include/tutorial19/field/MsgId.h b/tutorials/tutorial19/include/tutorial19/field/MsgId.h index b870a9afb..118ff3e88 100644 --- a/tutorials/tutorial19/include/tutorial19/field/MsgId.h +++ b/tutorials/tutorial19/include/tutorial19/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h b/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h index bb7dabb8e..943b7306b 100644 --- a/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h +++ b/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/frame/Frame.h b/tutorials/tutorial19/include/tutorial19/frame/Frame.h index 7a6894540..37eaa393e 100644 --- a/tutorials/tutorial19/include/tutorial19/frame/Frame.h +++ b/tutorials/tutorial19/include/tutorial19/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h b/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h index 4e5f0d0e0..b2b559e67 100644 --- a/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h +++ b/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/input/AllMessages.h b/tutorials/tutorial19/include/tutorial19/input/AllMessages.h index cb1eda633..904273423 100644 --- a/tutorials/tutorial19/include/tutorial19/input/AllMessages.h +++ b/tutorials/tutorial19/include/tutorial19/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h b/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h index bffd096d2..ff18ba1cc 100644 --- a/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h +++ b/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h b/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h index 1102970e3..26fdf2a1b 100644 --- a/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h +++ b/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg1.h b/tutorials/tutorial19/include/tutorial19/message/Msg1.h index d3887e981..e40a9bcd7 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg1.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h b/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h index 7cf3c1a84..428adeda3 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg2.h b/tutorials/tutorial19/include/tutorial19/message/Msg2.h index 460afff28..46c60dcdf 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg2.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -66,7 +66,7 @@ struct Msg2Fields /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. @@ -141,7 +141,7 @@ struct Msg2Fields /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. @@ -166,20 +166,20 @@ struct Msg2Fields } if (3U <= Base::getVersion()) { - if (Base::value() == static_cast(0)) { + if (Base::getValue() == static_cast(0)) { return true; } } if ((4U <= Base::getVersion()) && (Base::getVersion() < 5U)) { - if (Base::value() == static_cast(1)) { + if (Base::getValue() == static_cast(1)) { return true; } } if (5U <= Base::getVersion()) { - if (Base::value() == static_cast(2)) { + if (Base::getValue() == static_cast(2)) { return true; } } diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h b/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h index 37d2f56c2..65ab33899 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg3.h b/tutorials/tutorial19/include/tutorial19/message/Msg3.h index 9b7bda947..8a3faad26 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg3.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h b/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h index 320e49452..999eee93e 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h index ef25db662..ccfba3b5e 100644 --- a/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h index c149b96b3..488aee51c 100644 --- a/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h index 2fc5caca4..73fd98660 100644 --- a/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h index e6f506b05..81e8ff67f 100644 --- a/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h index 8f94cc716..d5bb088d8 100644 --- a/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial2/include/tutorial2/Message.h b/tutorials/tutorial2/include/tutorial2/Message.h index 7730acdd3..44b19e0f1 100644 --- a/tutorials/tutorial2/include/tutorial2/Message.h +++ b/tutorials/tutorial2/include/tutorial2/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial2/include/tutorial2/MsgId.h b/tutorials/tutorial2/include/tutorial2/MsgId.h index 9bcc95a6c..466c9272d 100644 --- a/tutorials/tutorial2/include/tutorial2/MsgId.h +++ b/tutorials/tutorial2/include/tutorial2/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial2/include/tutorial2/Version.h b/tutorials/tutorial2/include/tutorial2/Version.h index 15d261d70..fa2bfaa21 100644 --- a/tutorials/tutorial2/include/tutorial2/Version.h +++ b/tutorials/tutorial2/include/tutorial2/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial2 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h index 2f2072e04..b9475bd72 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h index 73547ca80..eee05c57a 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h index a5a7658ca..fb57b274b 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_1.h b/tutorials/tutorial2/include/tutorial2/field/B8_1.h index 390bc3edd..ff5a97e6b 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "B8_1" field. @@ -98,7 +98,7 @@ struct B8_1Members /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h b/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h index e46822fe8..b092a56d9 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_2.h b/tutorials/tutorial2/include/tutorial2/field/B8_2.h index 9233b95cc..1f256e9fe 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "B8_2" field. @@ -51,7 +51,7 @@ struct B8_2Members /// @brief Generated default constructor. M1() { - Base::value() = std::numeric_limits::quiet_NaN(); + Base::setValue(std::numeric_limits::quiet_NaN()); } /// @brief Compile time detection of special values presence. diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h b/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h index 815dec635..beb0dbc80 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_1.h b/tutorials/tutorial2/include/tutorial2/field/B9_1.h index a97e93eb9..b6e450284 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "B9_1" field. @@ -102,7 +102,7 @@ struct B9_1Members /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h b/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h index bc3d535d5..6676b80d1 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_2.h b/tutorials/tutorial2/include/tutorial2/field/B9_2.h index f1c3edca0..aade085ac 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "B9_2" field. @@ -108,7 +108,7 @@ struct B9_2Members /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h b/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h index e74e247d1..a1d851695 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_1.h b/tutorials/tutorial2/include/tutorial2/field/D7_1.h index 508eb156f..dc59402c7 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "D7_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h b/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h index 5870ed210..8416ee4e4 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_2.h b/tutorials/tutorial2/include/tutorial2/field/D7_2.h index ef798250e..df885f0aa 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "D7_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h b/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h index 411ada67d..9e8232c2d 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_1.h b/tutorials/tutorial2/include/tutorial2/field/E2_1.h index 7e1675e30..94526bff4 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "E2_1" field. @@ -59,7 +59,7 @@ class E2_1 : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h b/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h index 5da2ad3f3..7e467a7f6 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_2.h b/tutorials/tutorial2/include/tutorial2/field/E2_2.h index 1ccd5104a..afd574925 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "E2_2" field. @@ -65,7 +65,7 @@ class E2_2 : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h b/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h index 2af6724c2..a7e906a6b 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_1.h b/tutorials/tutorial2/include/tutorial2/field/F11_1.h index d868ad104..8728803aa 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Field 11_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h b/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h index f11fb3415..5630126ee 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_2.h b/tutorials/tutorial2/include/tutorial2/field/F11_2.h index 57dbba08e..0b916265b 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Field 11_2" field. @@ -59,7 +59,7 @@ class F11_2 : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h b/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h index 9d8819256..c788d237c 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_3.h b/tutorials/tutorial2/include/tutorial2/field/F11_3.h index 5a337e90b..a10be723e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "F11_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h b/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h index 328f840d5..76210bdc2 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_1.h b/tutorials/tutorial2/include/tutorial2/field/F5_1.h index 174edf1d9..492622288 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "F5_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h b/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h index 8eb5ea6f5..70e8a2182 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_2.h b/tutorials/tutorial2/include/tutorial2/field/F5_2.h index f2a9d4ea3..ee1ad62f5 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "F5_2" field. @@ -52,7 +52,7 @@ class F5_2 : public /// @brief Generated default constructor. F5_2() { - Base::value() = std::numeric_limits::quiet_NaN(); + Base::setValue(std::numeric_limits::quiet_NaN()); } /// @brief Compile time detection of special values presence. @@ -71,14 +71,14 @@ class F5_2 : public /// @brief Check the value is equal to special @ref valueS3(). bool isS3() const { - return ((Base::value() < 0) && - (std::isinf(Base::value()))); + return ((Base::getValue() < 0) && + (std::isinf(Base::getValue()))); } /// @brief Assign special value @ref valueS3() to the field. void setS3() { - Base::value() = valueS3(); + Base::setValue(valueS3()); } /// @brief Special value "S4". @@ -91,13 +91,13 @@ class F5_2 : public /// @brief Check the value is equal to special @ref valueS4(). bool isS4() const { - return (std::abs(Base::value() - static_cast(5.123000)) < std::numeric_limits::epsilon()); + return (std::abs(Base::getValue() - static_cast(5.123000)) < std::numeric_limits::epsilon()); } /// @brief Assign special value @ref valueS4() to the field. void setS4() { - Base::value() = valueS4(); + Base::setValue(valueS4()); } /// @brief Special value "S2". @@ -110,14 +110,14 @@ class F5_2 : public /// @brief Check the value is equal to special @ref valueS2(). bool isS2() const { - return ((0 < Base::value()) && - (std::isinf(Base::value()))); + return ((0 < Base::getValue()) && + (std::isinf(Base::getValue()))); } /// @brief Assign special value @ref valueS2() to the field. void setS2() { - Base::value() = valueS2(); + Base::setValue(valueS2()); } /// @brief Special value "S1". @@ -130,13 +130,13 @@ class F5_2 : public /// @brief Check the value is equal to special @ref valueS1(). bool isS1() const { - return (std::isnan(Base::value())); + return (std::isnan(Base::getValue())); } /// @brief Assign special value @ref valueS1() to the field. void setS1() { - Base::value() = valueS1(); + Base::setValue(valueS1()); } /// @brief Retrieve map of special value names diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h b/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h index d53ed2fdc..aa7fbbbce 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/FieldBase.h b/tutorials/tutorial2/include/tutorial2/field/FieldBase.h index 4f2377596..b1dc20dd8 100644 --- a/tutorials/tutorial2/include/tutorial2/field/FieldBase.h +++ b/tutorials/tutorial2/include/tutorial2/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial2/include/tutorial2/field/I1.h b/tutorials/tutorial2/include/tutorial2/field/I1.h index 8f29ee0f2..1ce89f44a 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I1.h +++ b/tutorials/tutorial2/include/tutorial2/field/I1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "I1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I1Common.h b/tutorials/tutorial2/include/tutorial2/field/I1Common.h index 50b0c4387..9ac0ca97b 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_1.h b/tutorials/tutorial2/include/tutorial2/field/I3_1.h index 8708ae7e1..a1bcb8b39 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "I3_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h index 84807ceb5..d5884233e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_2.h b/tutorials/tutorial2/include/tutorial2/field/I3_2.h index fac6519fc..e546808ec 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "I3_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h index 8274563c2..ed04a6828 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_3.h b/tutorials/tutorial2/include/tutorial2/field/I3_3.h index 56a3e9d32..e83554f6c 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "I3_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h index 6fec82810..c79d322f1 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_4.h b/tutorials/tutorial2/include/tutorial2/field/I3_4.h index 79f10ddb0..bfa0fadbb 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_4.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "I3_4" field. @@ -66,13 +66,13 @@ class I3_4 : public /// @brief Check the value is equal to special @ref valueS1(). bool isS1() const { - return Base::value() == valueS1(); + return Base::getValue() == valueS1(); } /// @brief Assign special value @ref valueS1() to the field. void setS1() { - Base::value() = valueS1(); + Base::setValue(valueS1()); } /// @brief Special value "S2". @@ -85,13 +85,13 @@ class I3_4 : public /// @brief Check the value is equal to special @ref valueS2(). bool isS2() const { - return Base::value() == valueS2(); + return Base::getValue() == valueS2(); } /// @brief Assign special value @ref valueS2() to the field. void setS2() { - Base::value() = valueS2(); + Base::setValue(valueS2()); } /// @brief Retrieve map of special value names diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h index 788dbbbda..508edf815 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_5.h b/tutorials/tutorial2/include/tutorial2/field/I3_5.h index 7bcc7d444..39f336fcf 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_5.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_5.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "I3_5" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h index c2c1dc667..e5b2f426a 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_1.h b/tutorials/tutorial2/include/tutorial2/field/L10_1.h index d7f538b29..5ef974aad 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "L10_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h index 2067ea63f..ee32c739e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_2.h b/tutorials/tutorial2/include/tutorial2/field/L10_2.h index 61c98ed0d..6cdaa8e32 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "L10_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h index 4f911c85c..4a86329de 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_3.h b/tutorials/tutorial2/include/tutorial2/field/L10_3.h index 56b57d5a9..22c329df7 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "L10_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h index c946dfcb6..af66dc649 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_4.h b/tutorials/tutorial2/include/tutorial2/field/L10_4.h index 3f354f81c..bbcf6b27d 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_4.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "L10_4" field. @@ -105,7 +105,7 @@ struct L10_4Members /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h index b820aa87e..e1a9ca607 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L6_3.h b/tutorials/tutorial2/include/tutorial2/field/L6_3.h index 582ad05d6..704678206 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L6_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/L6_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "L6_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h b/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h index 54942ffd3..01e9f8974 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/MsgId.h b/tutorials/tutorial2/include/tutorial2/field/MsgId.h index d2c9edb48..fca7c2e7e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/MsgId.h +++ b/tutorials/tutorial2/include/tutorial2/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h b/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h index 7539bb12c..0ebef25bc 100644 --- a/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h +++ b/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_1.h b/tutorials/tutorial2/include/tutorial2/field/S4_1.h index 4fa0972d8..25b4ba611 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "S4_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h b/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h index 30213b70c..a3fa239ea 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_2.h b/tutorials/tutorial2/include/tutorial2/field/S4_2.h index 81f965daf..2892f6f70 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "S4_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h b/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h index 076c5aec1..fde34c3fe 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_3.h b/tutorials/tutorial2/include/tutorial2/field/S4_3.h index 56ea69e32..6bba3efde 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "S4_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h b/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h index 3033976c4..00ac1ae28 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_1.h b/tutorials/tutorial2/include/tutorial2/field/S6_1.h index 1170225ad..e4068c4c6 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "S6_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h index 74d320e74..163c4d419 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_2.h b/tutorials/tutorial2/include/tutorial2/field/S6_2.h index 9658c41c1..9e5e2e73e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "S6_2" field. @@ -86,7 +86,7 @@ class S6_2 : public { static const char Str[] = "hello"; static const std::size_t StrSize = std::extent::value; - Base::value() = typename Base::ValueType(&Str[0], StrSize - 1); + Base::setValue(typename Base::ValueType(&Str[0], StrSize - 1)); } /// @brief Name of the field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h index 1681982a9..aeac91b5f 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_3.h b/tutorials/tutorial2/include/tutorial2/field/S6_3.h index ad2cde753..ea47d93b3 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "S6_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h index 1aa0a6010..c442427ba 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_4.h b/tutorials/tutorial2/include/tutorial2/field/S6_4.h index 41432cb0e..4d215e2f4 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_4.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "S6_4" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h index c11700289..0b3429b90 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/frame/Frame.h b/tutorials/tutorial2/include/tutorial2/frame/Frame.h index f0d910544..43cdb8f85 100644 --- a/tutorials/tutorial2/include/tutorial2/frame/Frame.h +++ b/tutorials/tutorial2/include/tutorial2/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h b/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h index b4c2f4775..2fa3c1648 100644 --- a/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h +++ b/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/input/AllMessages.h b/tutorials/tutorial2/include/tutorial2/input/AllMessages.h index 01fb552d9..78d652633 100644 --- a/tutorials/tutorial2/include/tutorial2/input/AllMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h b/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h index 7d4f403ef..e8429904e 100644 --- a/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h b/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h index e7acd9af0..58acac6cb 100644 --- a/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg1.h b/tutorials/tutorial2/include/tutorial2/message/Msg1.h index 49c46a7fd..20c20b2da 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg1.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg10.h b/tutorials/tutorial2/include/tutorial2/message/Msg10.h index 9980474a7..e8704579e 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg10.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg10.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 10" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h index 5f5a52331..e3e2a1c6a 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg11.h b/tutorials/tutorial2/include/tutorial2/message/Msg11.h index 3a2f889b0..8b1855d4e 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg11.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg11.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 11" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h index 5c0174c38..c9cfcee52 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg12.h b/tutorials/tutorial2/include/tutorial2/message/Msg12.h index cd5835a50..ecfd2eeac 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg12.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg12.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 12" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h index 712af44f8..b24ed0e10 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg13.h b/tutorials/tutorial2/include/tutorial2/message/Msg13.h index 615574aee..c9cd586dd 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg13.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg13.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 13" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h index 37cfee982..0f3c307ca 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg14.h b/tutorials/tutorial2/include/tutorial2/message/Msg14.h index 494cdc64a..92bd40f55 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg14.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg14.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 14" message and its fields. @@ -263,9 +263,9 @@ class Msg14 : public bool refresh_f3() { auto mode = comms::field::OptionalMode::Missing; - if ((field_f1().value() > 0) || - (((field_f1().value() == 0) && - (field_f2().value() != 0)))) { + if ((field_f1().getValue() > static_cast(0)) || + (((field_f1().getValue() == static_cast(0)) && + (field_f2().getValue() != static_cast(0))))) { mode = comms::field::OptionalMode::Exists; } diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h index f244bb339..fb19f15f2 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg15.h b/tutorials/tutorial2/include/tutorial2/message/Msg15.h index 260df8fc2..5ed38b17b 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg15.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg15.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 15" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h index e98089818..224281c56 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg16.h b/tutorials/tutorial2/include/tutorial2/message/Msg16.h index b38bc7317..27708f8db 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg16.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg16.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 16" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h index 79546ee51..24ea997db 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h index 946d04f8c..e6ceb01cd 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg2.h b/tutorials/tutorial2/include/tutorial2/message/Msg2.h index d2b77f870..ccd98b3f6 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg2.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -117,7 +117,7 @@ struct Msg2Fields /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. @@ -180,7 +180,7 @@ struct Msg2Fields /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h index f02459d07..c20b644f5 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg3.h b/tutorials/tutorial2/include/tutorial2/message/Msg3.h index 9c415a642..fc09df46d 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg3.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h index 4844942d7..01d228efb 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg4.h b/tutorials/tutorial2/include/tutorial2/message/Msg4.h index 1815d4385..71c8dd7ac 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg4.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h index e5ebaa9a7..c677cd488 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg5.h b/tutorials/tutorial2/include/tutorial2/message/Msg5.h index 55d52b18a..70ea7e6ea 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg5.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg5.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 5" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h index 4bfba274c..d58d9f48c 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg6.h b/tutorials/tutorial2/include/tutorial2/message/Msg6.h index 7b6e967ea..848066658 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg6.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg6.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 6" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h index a21b1d27b..f63943fc9 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg7.h b/tutorials/tutorial2/include/tutorial2/message/Msg7.h index b2c50a622..94adfa5b3 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg7.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg7.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 7" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h index 7d6816cfd..a2167c746 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg8.h b/tutorials/tutorial2/include/tutorial2/message/Msg8.h index d90ee72ee..966a6e54d 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg8.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg8.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 8" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h index 93f57a3da..181a92fac 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg9.h b/tutorials/tutorial2/include/tutorial2/message/Msg9.h index 7d26ca993..cce4db6d8 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg9.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg9.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 9" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h index 3473d17f3..9834b6a46 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h index dabba8e4c..17469fae8 100644 --- a/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h index 50fe95d34..e773e7964 100644 --- a/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h index 5fe66635d..54ca55133 100644 --- a/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h index 7ffceab38..9342a5e62 100644 --- a/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h index 03a2e8432..ca5f00d12 100644 --- a/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial20/include/tutorial20/Interface.h b/tutorials/tutorial20/include/tutorial20/Interface.h index a4743dc23..44e9a1ac8 100644 --- a/tutorials/tutorial20/include/tutorial20/Interface.h +++ b/tutorials/tutorial20/include/tutorial20/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h b/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h index 34926d359..0bf023b84 100644 --- a/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h +++ b/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/MsgId.h b/tutorials/tutorial20/include/tutorial20/MsgId.h index 402040d80..45d56d827 100644 --- a/tutorials/tutorial20/include/tutorial20/MsgId.h +++ b/tutorials/tutorial20/include/tutorial20/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial20/include/tutorial20/Version.h b/tutorials/tutorial20/include/tutorial20/Version.h index 21a3e7714..d3a47c62c 100644 --- a/tutorials/tutorial20/include/tutorial20/Version.h +++ b/tutorials/tutorial20/include/tutorial20/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial20 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h index 2461db2ff..ee7569373 100644 --- a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h index d58999c65..a2f2b2aac 100644 --- a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h +++ b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h index 7a93134fd..c509f72d8 100644 --- a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial20/include/tutorial20/field/FieldBase.h b/tutorials/tutorial20/include/tutorial20/field/FieldBase.h index 2902947c5..5025bf544 100644 --- a/tutorials/tutorial20/include/tutorial20/field/FieldBase.h +++ b/tutorials/tutorial20/include/tutorial20/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial20/include/tutorial20/field/MsgId.h b/tutorials/tutorial20/include/tutorial20/field/MsgId.h index 32e29f3f3..ff79cacd0 100644 --- a/tutorials/tutorial20/include/tutorial20/field/MsgId.h +++ b/tutorials/tutorial20/include/tutorial20/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h b/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h index dbf9ee666..03a49e0ac 100644 --- a/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h +++ b/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/field/Version.h b/tutorials/tutorial20/include/tutorial20/field/Version.h index 36df3dc1a..7bb3a8d8e 100644 --- a/tutorials/tutorial20/include/tutorial20/field/Version.h +++ b/tutorials/tutorial20/include/tutorial20/field/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Version" field. diff --git a/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h b/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h index 25e02bae8..a4fcc7259 100644 --- a/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h +++ b/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/frame/Frame.h b/tutorials/tutorial20/include/tutorial20/frame/Frame.h index 08b82a5a9..7f3b9205e 100644 --- a/tutorials/tutorial20/include/tutorial20/frame/Frame.h +++ b/tutorials/tutorial20/include/tutorial20/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h b/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h index 6d335f9f6..2db710a75 100644 --- a/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h +++ b/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/input/AllMessages.h b/tutorials/tutorial20/include/tutorial20/input/AllMessages.h index 6ef522a0c..f9f5dba3e 100644 --- a/tutorials/tutorial20/include/tutorial20/input/AllMessages.h +++ b/tutorials/tutorial20/include/tutorial20/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h b/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h index 01dac5734..b8954cd99 100644 --- a/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h +++ b/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h b/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h index 1c5ffb3a7..5ca317a18 100644 --- a/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h +++ b/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial20/include/tutorial20/message/Connect.h b/tutorials/tutorial20/include/tutorial20/message/Connect.h index 559832695..9e0a0341b 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Connect.h +++ b/tutorials/tutorial20/include/tutorial20/message/Connect.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Connect" message and its fields. diff --git a/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h b/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h index f79450ee3..897c1bf79 100644 --- a/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h +++ b/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg1.h b/tutorials/tutorial20/include/tutorial20/message/Msg1.h index 11854320c..00f21672f 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg1.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h b/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h index e8d709ba4..7894ea759 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg2.h b/tutorials/tutorial20/include/tutorial20/message/Msg2.h index adfc4ad9d..0895b6eba 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg2.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. @@ -66,7 +66,7 @@ struct Msg2Fields /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. @@ -141,7 +141,7 @@ struct Msg2Fields /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. @@ -166,20 +166,20 @@ struct Msg2Fields } if (3U <= Base::getVersion()) { - if (Base::value() == static_cast(0)) { + if (Base::getValue() == static_cast(0)) { return true; } } if ((4U <= Base::getVersion()) && (Base::getVersion() < 5U)) { - if (Base::value() == static_cast(1)) { + if (Base::getValue() == static_cast(1)) { return true; } } if (5U <= Base::getVersion()) { - if (Base::value() == static_cast(2)) { + if (Base::getValue() == static_cast(2)) { return true; } } diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h b/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h index 8a51b5099..d43222725 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg3.h b/tutorials/tutorial20/include/tutorial20/message/Msg3.h index b7c68c891..4520c0032 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg3.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h b/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h index 7660fc20c..e6afcd6dc 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h index 70fe824ed..60db95626 100644 --- a/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h index eade2f956..aaf75a188 100644 --- a/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h index 3fb5824ac..69053de1a 100644 --- a/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h index 6e55e78b1..bf0df2a0c 100644 --- a/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h index 2e12ac163..d984dec6e 100644 --- a/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial21/include/tutorial21/Interface.h b/tutorials/tutorial21/include/tutorial21/Interface.h index 7e7caad9f..aa0f83973 100644 --- a/tutorials/tutorial21/include/tutorial21/Interface.h +++ b/tutorials/tutorial21/include/tutorial21/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h b/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h index 583fb5787..d70db9580 100644 --- a/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h +++ b/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/MsgId.h b/tutorials/tutorial21/include/tutorial21/MsgId.h index 20f329473..ec633c248 100644 --- a/tutorials/tutorial21/include/tutorial21/MsgId.h +++ b/tutorials/tutorial21/include/tutorial21/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial21/include/tutorial21/Version.h b/tutorials/tutorial21/include/tutorial21/Version.h index 78685023b..c532057a5 100644 --- a/tutorials/tutorial21/include/tutorial21/Version.h +++ b/tutorials/tutorial21/include/tutorial21/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial21 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h index aba656600..b0ef2cd1c 100644 --- a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h index 3e2689439..659598407 100644 --- a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h +++ b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h index 921c54633..602ee0f98 100644 --- a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h b/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h index 026d3683d..01e3efa2e 100644 --- a/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h +++ b/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Flags" field. diff --git a/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h b/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h index 91ebee4b7..0105a0a69 100644 --- a/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/field/FieldBase.h b/tutorials/tutorial21/include/tutorial21/field/FieldBase.h index 3867aa183..460aab224 100644 --- a/tutorials/tutorial21/include/tutorial21/field/FieldBase.h +++ b/tutorials/tutorial21/include/tutorial21/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h b/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h index e624ed299..79a1be7ed 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Msg1Flags" field. diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h b/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h index 1b51c732d..ec3954400 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h b/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h index 76d86ceff..4cf8f068e 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Msg2Flags" field. @@ -66,7 +66,7 @@ struct Msg2FlagsMembers /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h b/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h index bb7450ce8..9f8f68074 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/field/MsgId.h b/tutorials/tutorial21/include/tutorial21/field/MsgId.h index d7b2c46d8..e7d4ac6b1 100644 --- a/tutorials/tutorial21/include/tutorial21/field/MsgId.h +++ b/tutorials/tutorial21/include/tutorial21/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h b/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h index 1d91505b1..35e919b5d 100644 --- a/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/frame/Frame.h b/tutorials/tutorial21/include/tutorial21/frame/Frame.h index a316e7c00..f1cfcd8e8 100644 --- a/tutorials/tutorial21/include/tutorial21/frame/Frame.h +++ b/tutorials/tutorial21/include/tutorial21/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h b/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h index 4e06e9049..7d898ee73 100644 --- a/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h +++ b/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/input/AllMessages.h b/tutorials/tutorial21/include/tutorial21/input/AllMessages.h index 808fee8f3..551e23862 100644 --- a/tutorials/tutorial21/include/tutorial21/input/AllMessages.h +++ b/tutorials/tutorial21/include/tutorial21/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h b/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h index e327736a8..daf072d2b 100644 --- a/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h +++ b/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h b/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h index 05500f307..cfea07fa9 100644 --- a/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h +++ b/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg1.h b/tutorials/tutorial21/include/tutorial21/message/Msg1.h index f8bfc4d17..6f6981401 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg1.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h b/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h index d6d965e23..4bcf80647 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg2.h b/tutorials/tutorial21/include/tutorial21/message/Msg2.h index 78444e3ec..60832b941 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg2.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h b/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h index bdbeb0e8d..054e18d2d 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h index 634be9cd2..d1c54ed19 100644 --- a/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h index ee58c5014..8c7dcc43e 100644 --- a/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h index 72279c9b0..3211c550b 100644 --- a/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h index d179e2e30..21a0ffa93 100644 --- a/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h index 561b05fc7..6003cf1f4 100644 --- a/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial3/include/tutorial3/Message.h b/tutorials/tutorial3/include/tutorial3/Message.h index 58b24d843..7fa2045b3 100644 --- a/tutorials/tutorial3/include/tutorial3/Message.h +++ b/tutorials/tutorial3/include/tutorial3/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial3/include/tutorial3/MsgId.h b/tutorials/tutorial3/include/tutorial3/MsgId.h index ee5c25dff..ba3798a5f 100644 --- a/tutorials/tutorial3/include/tutorial3/MsgId.h +++ b/tutorials/tutorial3/include/tutorial3/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial3/include/tutorial3/Version.h b/tutorials/tutorial3/include/tutorial3/Version.h index 6ae403576..a222706f2 100644 --- a/tutorials/tutorial3/include/tutorial3/Version.h +++ b/tutorials/tutorial3/include/tutorial3/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial3 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h index 96cd39278..c51a29f80 100644 --- a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h index 83af82be9..fff39a89f 100644 --- a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h +++ b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h index 35de562a6..90cf123f5 100644 --- a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial3/include/tutorial3/field/FieldBase.h b/tutorials/tutorial3/include/tutorial3/field/FieldBase.h index 0b7b1bd37..0e73b4f8c 100644 --- a/tutorials/tutorial3/include/tutorial3/field/FieldBase.h +++ b/tutorials/tutorial3/include/tutorial3/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial3/include/tutorial3/field/MsgId.h b/tutorials/tutorial3/include/tutorial3/field/MsgId.h index fee1c1ac2..56e546595 100644 --- a/tutorials/tutorial3/include/tutorial3/field/MsgId.h +++ b/tutorials/tutorial3/include/tutorial3/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h b/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h index 68ee0a501..770accf8e 100644 --- a/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h +++ b/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/frame/Frame.h b/tutorials/tutorial3/include/tutorial3/frame/Frame.h index 4ac33c543..91752955b 100644 --- a/tutorials/tutorial3/include/tutorial3/frame/Frame.h +++ b/tutorials/tutorial3/include/tutorial3/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h b/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h index 16d1df535..de602b64d 100644 --- a/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h +++ b/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/input/AllMessages.h b/tutorials/tutorial3/include/tutorial3/input/AllMessages.h index cdf5c3629..d5dff1555 100644 --- a/tutorials/tutorial3/include/tutorial3/input/AllMessages.h +++ b/tutorials/tutorial3/include/tutorial3/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h b/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h index f3fb5e151..150edf55f 100644 --- a/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h +++ b/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h b/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h index d14556d4c..5a6b486db 100644 --- a/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h +++ b/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg1.h b/tutorials/tutorial3/include/tutorial3/message/Msg1.h index 6754512e6..31b582a3b 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg1.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h b/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h index 9f8f02616..c2e21e70b 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg2.h b/tutorials/tutorial3/include/tutorial3/message/Msg2.h index 0bceecd06..60f4a11d0 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg2.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h b/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h index 250b51b0c..8c03e4a5b 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg3.h b/tutorials/tutorial3/include/tutorial3/message/Msg3.h index 4fadfeefc..d3e5ad361 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg3.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h b/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h index 5f0b67bab..28199f44c 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h index 98d0046dd..3e1a32a78 100644 --- a/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h index 675affe0b..4a60bbb05 100644 --- a/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h index fb0ba3a14..2c2c8eed7 100644 --- a/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h index e9570dd03..d13c65235 100644 --- a/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h index 7585bac5b..7999c09a5 100644 --- a/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial4/README.md b/tutorials/tutorial4/README.md index 45ec64560..693f379f7 100644 --- a/tutorials/tutorial4/README.md +++ b/tutorials/tutorial4/README.md @@ -144,7 +144,8 @@ might contain. For every such name **X** the following is defined: Note, that `ValueType` inner type defined by every field class is a variant of [std::aligned_storage](https://en.cppreference.com/w/cpp/types/aligned_storage) and should not be accessed directly via usual `.value()` member function. Instead, generated `initField_X()` and/or -`accessField_X()` member functions need to be used to access the storage cast to an appropriate type. +`accessField_X()` member functions need to be used to access the storage and perform the cast to +the appropriate type. Another thing to pay attention to at this stage is an existence of custom `read()` member function which overrides a default one provided by the [comms::field::Variant](https://commschamp.github.io/comms_doc/classcomms_1_1field_1_1Variant.html) @@ -417,6 +418,12 @@ this tutorial. + + + + + + @@ -464,10 +471,15 @@ when a message containing it is received. The client doesn't have any other choi of properties, the client has an information about received property length and can skip over and ignore unknown ones. -The example above allows ignore and skip over unknown properties by defining the **last** member (`Any`) with non-failing +The example above allows ignoring and skipping over unknown properties by defining the **last** member (`Any`) with non-failing read operation on the `Key`. The latter in the example above doesn't specify which values are considered to be valid (hence all possible ones are valid). The `Val` in such property is defined to be **<data>**. +Th **TLV** type of properties also allows reducing serialization length of some value types. The example of +is is the definition of `Prop7`. The default serialization length of its `Val` member value (of `uint64` type) is 8 bytes. +However, usage of **availableLengthLimit** property allows having less bytes when value is serialized if the +stored value allows. The length of such serialization is controlled by the preceding `Length` member. + The `Msg2` in this tutorial is defined to contain a list of **TLV** properties. ```xml @@ -490,15 +502,17 @@ void ClientSession::sendMsg2() Msg2 msg; auto& listOfProps = msg.field_f1().value(); // vector of variant fields - listOfProps.resize(3); + listOfProps.resize(4); assert(msg.doLength() == 0U); assert(!listOfProps[0].valid()); assert(!listOfProps[1].valid()); assert(!listOfProps[2].valid()); + assert(!listOfProps[3].valid()); listOfProps[0].initField_prop4().field_val().value() = 0xdeadbeef; listOfProps[1].initField_prop6().field_val().value() = "blabla"; listOfProps[2].initField_prop5().field_val().value() = 1.234; + listOfProps[3].initField_prop7().field_val().value() = 100; msg.doRefresh(); // Bring message to a consistent state sendMessage(msg); diff --git a/tutorials/tutorial4/dsl/schema.xml b/tutorials/tutorial4/dsl/schema.xml index 46ff59779..865c7c7bc 100644 --- a/tutorials/tutorial4/dsl/schema.xml +++ b/tutorials/tutorial4/dsl/schema.xml @@ -16,6 +16,7 @@ + @@ -63,6 +64,12 @@ + + + + + + diff --git a/tutorials/tutorial4/include/tutorial4/Message.h b/tutorials/tutorial4/include/tutorial4/Message.h index f1169c9f0..ddff3528d 100644 --- a/tutorials/tutorial4/include/tutorial4/Message.h +++ b/tutorials/tutorial4/include/tutorial4/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial4/include/tutorial4/MsgId.h b/tutorials/tutorial4/include/tutorial4/MsgId.h index 9e4f47383..55cfcd3b6 100644 --- a/tutorials/tutorial4/include/tutorial4/MsgId.h +++ b/tutorials/tutorial4/include/tutorial4/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial4/include/tutorial4/Version.h b/tutorials/tutorial4/include/tutorial4/Version.h index 88fa71a7f..deb51bd1e 100644 --- a/tutorials/tutorial4/include/tutorial4/Version.h +++ b/tutorials/tutorial4/include/tutorial4/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial4 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h index a23777eb3..84f64cab1 100644 --- a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h index e4d2e085c..3b0f6dbe3 100644 --- a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h +++ b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h index a62916b3f..ed7e1593b 100644 --- a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial4/include/tutorial4/field/FieldBase.h b/tutorials/tutorial4/include/tutorial4/field/FieldBase.h index 5f2d6b020..3ad2e8758 100644 --- a/tutorials/tutorial4/include/tutorial4/field/FieldBase.h +++ b/tutorials/tutorial4/include/tutorial4/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h b/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h index 7fd003562..511e18cb3 100644 --- a/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h +++ b/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "KeyValueProp" field. @@ -79,7 +79,7 @@ struct KeyValuePropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(0); + Base::setValue(0); return true; } @@ -217,7 +217,7 @@ struct KeyValuePropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(2); + Base::setValue(2); return true; } @@ -246,7 +246,7 @@ struct KeyValuePropMembers /// @brief Generated default constructor. Val() { - Base::value() = std::numeric_limits::quiet_NaN(); + Base::setValue(std::numeric_limits::quiet_NaN()); } /// @brief Compile time detection of special values presence. @@ -367,7 +367,7 @@ struct KeyValuePropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(5); + Base::setValue(5); return true; } @@ -616,21 +616,21 @@ class KeyValueProp : public COMMS_ASSERT(consumedLen <= len); len -= consumedLen; - switch (commonKeyField.value()) { + switch (commonKeyField.getValue()) { case 0U /* 0x00U */: { auto& field_prop1 = initField_prop1(); - COMMS_ASSERT(field_prop1.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop1.field_key().getValue() == commonKeyField.getValue()); return field_prop1.template readFrom<1>(iter, len); } case 2U /* 0x02U */: { auto& field_prop2 = initField_prop2(); - COMMS_ASSERT(field_prop2.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop2.field_key().getValue() == commonKeyField.getValue()); return field_prop2.template readFrom<1>(iter, len); } default: - initField_prop3().field_key().value() = commonKeyField.value(); + initField_prop3().field_key().setValue(commonKeyField.getValue()); return accessField_prop3().template readFrom<1>(iter, len); }; diff --git a/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h b/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h index f0fa6020a..e4d17281b 100644 --- a/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h +++ b/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/field/MsgId.h b/tutorials/tutorial4/include/tutorial4/field/MsgId.h index 22f47e058..89e6a5186 100644 --- a/tutorials/tutorial4/include/tutorial4/field/MsgId.h +++ b/tutorials/tutorial4/include/tutorial4/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h b/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h index 1b6a2ffcb..aab718a98 100644 --- a/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h +++ b/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/field/TlvProp.h b/tutorials/tutorial4/include/tutorial4/field/TlvProp.h index 84bf7cfdc..4fd07939b 100644 --- a/tutorials/tutorial4/include/tutorial4/field/TlvProp.h +++ b/tutorials/tutorial4/include/tutorial4/field/TlvProp.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "TlvProp" field. @@ -82,7 +82,7 @@ struct TlvPropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(10); + Base::setValue(10); return true; } @@ -259,7 +259,7 @@ struct TlvPropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(15); + Base::setValue(15); return true; } @@ -321,7 +321,7 @@ struct TlvPropMembers /// @brief Generated default constructor. Val() { - Base::value() = std::numeric_limits::infinity(); + Base::setValue(std::numeric_limits::infinity()); } /// @brief Compile time detection of special values presence. @@ -448,7 +448,7 @@ struct TlvPropMembers if (Base::valid()) { return updated; }; - Base::value() = static_cast(25); + Base::setValue(25); return true; } @@ -567,6 +567,185 @@ struct TlvPropMembers }; + /// @brief Scope for all the member fields of + /// @ref Prop7 field. + struct Prop7Members + { + /// @brief Definition of "Key" field. + class Key : public + comms::field::IntValue< + tutorial4::field::FieldBase<>, + std::uint8_t, + comms::option::def::FailOnInvalid<>, + comms::option::def::DefaultNumValue<30>, + comms::option::def::ValidNumValue<30>, + comms::option::def::HasCustomRefresh + > + { + using Base = + comms::field::IntValue< + tutorial4::field::FieldBase<>, + std::uint8_t, + comms::option::def::FailOnInvalid<>, + comms::option::def::DefaultNumValue<30>, + comms::option::def::ValidNumValue<30>, + comms::option::def::HasCustomRefresh + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial4::field::TlvPropMembersCommon::Prop7MembersCommon::KeyCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial4::field::TlvPropMembersCommon::Prop7MembersCommon::KeyCommon::name(); + } + + /// @brief Generated refresh functionality. + bool refresh() + { + bool updated = Base::refresh(); + if (Base::valid()) { + return updated; + }; + Base::setValue(30); + return true; + + } + + + + }; + + + /// @brief Definition of "Length" field. + class Length : public + comms::field::IntValue< + tutorial4::field::FieldBase<>, + std::uint8_t + > + { + using Base = + comms::field::IntValue< + tutorial4::field::FieldBase<>, + std::uint8_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial4::field::TlvPropMembersCommon::Prop7MembersCommon::LengthCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial4::field::TlvPropMembersCommon::Prop7MembersCommon::LengthCommon::name(); + } + + + }; + + + /// @brief Definition of "Val" field. + class Val : public + comms::field::IntValue< + tutorial4::field::FieldBase<>, + std::uint64_t, + comms::option::def::AvailableLengthLimit + > + { + using Base = + comms::field::IntValue< + tutorial4::field::FieldBase<>, + std::uint64_t, + comms::option::def::AvailableLengthLimit + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial4::field::TlvPropMembersCommon::Prop7MembersCommon::ValCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial4::field::TlvPropMembersCommon::Prop7MembersCommon::ValCommon::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + Key, + Length, + Val + >; + }; + + /// @brief Definition of "Prop7" field. + class Prop7 : public + comms::field::Bundle< + tutorial4::field::FieldBase<>, + typename Prop7Members::All, + comms::option::def::RemLengthMemberField<1U> + > + { + using Base = + comms::field::Bundle< + tutorial4::field::FieldBase<>, + typename Prop7Members::All, + comms::option::def::RemLengthMemberField<1U> + >; + public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_FIELD_MEMBERS_NAMES macro + /// related to @b comms::field::Bundle class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_key index, @b Field_key type and @b field_key() access function - + /// for tutorial4::field::TlvPropMembers::Prop7Members::Key member field. + /// @li @b FieldIdx_length index, @b Field_length type and @b field_length() access function - + /// for tutorial4::field::TlvPropMembers::Prop7Members::Length member field. + /// @li @b FieldIdx_val index, @b Field_val type and @b field_val() access function - + /// for tutorial4::field::TlvPropMembers::Prop7Members::Val member field. + COMMS_FIELD_MEMBERS_NAMES( + key, + length, + val + ); + + + /// @brief Name of the field. + static const char* name() + { + return tutorial4::field::TlvPropMembersCommon::Prop7Common::name(); + } + + + }; + + /// @brief Scope for all the member fields of /// @ref Any field. struct AnyMembers @@ -723,6 +902,7 @@ struct TlvPropMembers Prop4, Prop5, Prop6, + Prop7, Any >; }; @@ -764,6 +944,9 @@ class TlvProp : public /// @li @b FieldIdx_prop6 index, @b Field_prop6 type, /// @b initField_prop6() and @b accessField_prop6() access functions - /// for tutorial4::field::TlvPropMembers::Prop6 member field. + /// @li @b FieldIdx_prop7 index, @b Field_prop7 type, + /// @b initField_prop7() and @b accessField_prop7() access functions - + /// for tutorial4::field::TlvPropMembers::Prop7 member field. /// @li @b FieldIdx_any index, @b Field_any type, /// @b initField_any() and @b accessField_any() access functions - /// for tutorial4::field::TlvPropMembers::Any member field. @@ -771,6 +954,7 @@ class TlvProp : public prop4, prop5, prop6, + prop7, any ); @@ -790,6 +974,9 @@ class TlvProp : public case FieldIdx_prop6: memFieldDispatch(accessField_prop6(), std::forward(func)); break; + case FieldIdx_prop7: + memFieldDispatch(accessField_prop7(), std::forward(func)); + break; case FieldIdx_any: memFieldDispatch(accessField_any(), std::forward(func)); break; @@ -817,6 +1004,9 @@ class TlvProp : public case FieldIdx_prop6: memFieldDispatch(accessField_prop6(), std::forward(func)); break; + case FieldIdx_prop7: + memFieldDispatch(accessField_prop7(), std::forward(func)); + break; case FieldIdx_any: memFieldDispatch(accessField_any(), std::forward(func)); break; @@ -858,27 +1048,33 @@ class TlvProp : public COMMS_ASSERT(consumedLen <= len); len -= consumedLen; - switch (commonKeyField.value()) { + switch (commonKeyField.getValue()) { case 10U /* 0x0AU */: { auto& field_prop4 = initField_prop4(); - COMMS_ASSERT(field_prop4.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop4.field_key().getValue() == commonKeyField.getValue()); return field_prop4.template readFrom<1>(iter, len); } case 15U /* 0x0FU */: { auto& field_prop5 = initField_prop5(); - COMMS_ASSERT(field_prop5.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop5.field_key().getValue() == commonKeyField.getValue()); return field_prop5.template readFrom<1>(iter, len); } case 25U /* 0x19U */: { auto& field_prop6 = initField_prop6(); - COMMS_ASSERT(field_prop6.field_key().value() == commonKeyField.value()); + COMMS_ASSERT(field_prop6.field_key().getValue() == commonKeyField.getValue()); return field_prop6.template readFrom<1>(iter, len); } + case 30U /* 0x1EU */: + { + auto& field_prop7 = initField_prop7(); + COMMS_ASSERT(field_prop7.field_key().getValue() == commonKeyField.getValue()); + return field_prop7.template readFrom<1>(iter, len); + } default: - initField_any().field_key().value() = commonKeyField.value(); + initField_any().field_key().setValue(commonKeyField.getValue()); return accessField_any().template readFrom<1>(iter, len); }; diff --git a/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h b/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h index 2c3915a2d..b5b8e9a9b 100644 --- a/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h +++ b/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of @@ -269,6 +269,93 @@ struct TlvPropMembersCommon }; + /// @brief Scope for all the common definitions of the member fields of + /// @ref tutorial4::field::TlvPropMembers::Prop7 field. + struct Prop7MembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial4::field::TlvPropMembers::Prop7Members::Key field. + struct KeyCommon + { + /// @brief Re-definition of the value type used by + /// tutorial4::field::TlvPropMembers::Prop7Members::Key field. + using ValueType = std::uint8_t; + + /// @brief Name of the @ref tutorial4::field::TlvPropMembers::Prop7Members::Key field. + static const char* name() + { + return "Key"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common types and functions for + /// @ref tutorial4::field::TlvPropMembers::Prop7Members::Length field. + struct LengthCommon + { + /// @brief Re-definition of the value type used by + /// tutorial4::field::TlvPropMembers::Prop7Members::Length field. + using ValueType = std::uint8_t; + + /// @brief Name of the @ref tutorial4::field::TlvPropMembers::Prop7Members::Length field. + static const char* name() + { + return "Length"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common types and functions for + /// @ref tutorial4::field::TlvPropMembers::Prop7Members::Val field. + struct ValCommon + { + /// @brief Re-definition of the value type used by + /// tutorial4::field::TlvPropMembers::Prop7Members::Val field. + using ValueType = std::uint64_t; + + /// @brief Name of the @ref tutorial4::field::TlvPropMembers::Prop7Members::Val field. + static const char* name() + { + return "Val"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + }; + + /// @brief Common types and functions for + /// @ref tutorial4::field::TlvPropMembers::Prop7 field. + struct Prop7Common + { + /// @brief Name of the @ref tutorial4::field::TlvPropMembers::Prop7 field. + static const char* name() + { + return "Prop7"; + } + + }; + /// @brief Scope for all the common definitions of the member fields of /// @ref tutorial4::field::TlvPropMembers::Any field. struct AnyMembersCommon diff --git a/tutorials/tutorial4/include/tutorial4/frame/Frame.h b/tutorials/tutorial4/include/tutorial4/frame/Frame.h index 32cfbda26..4d5842dfa 100644 --- a/tutorials/tutorial4/include/tutorial4/frame/Frame.h +++ b/tutorials/tutorial4/include/tutorial4/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h b/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h index e3ff12f52..b4a26be61 100644 --- a/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h +++ b/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/input/AllMessages.h b/tutorials/tutorial4/include/tutorial4/input/AllMessages.h index 7b6a75689..3f8c87cd3 100644 --- a/tutorials/tutorial4/include/tutorial4/input/AllMessages.h +++ b/tutorials/tutorial4/include/tutorial4/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h b/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h index 2a30ed5b2..0f4463a04 100644 --- a/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h +++ b/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h b/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h index 00c56c476..ed0a8eef7 100644 --- a/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h +++ b/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg1.h b/tutorials/tutorial4/include/tutorial4/message/Msg1.h index c1aeb7c7d..2463525ff 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg1.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h b/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h index 293e426fa..e68192e84 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg2.h b/tutorials/tutorial4/include/tutorial4/message/Msg2.h index ed4d063e6..b9ae94a09 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg2.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h b/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h index f627177cb..1f151df31 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h index e28c59bd6..77f567289 100644 --- a/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h index 1edfb3943..769f04df6 100644 --- a/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h index bd19512e1..069d9653f 100644 --- a/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h index 3c5dcbda8..e40cb0616 100644 --- a/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h index bf91c2146..803fd6f57 100644 --- a/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial4/src/ClientSession.cpp b/tutorials/tutorial4/src/ClientSession.cpp index 1108c2183..74a524bec 100644 --- a/tutorials/tutorial4/src/ClientSession.cpp +++ b/tutorials/tutorial4/src/ClientSession.cpp @@ -133,6 +133,14 @@ void ClientSession::handleProp(const AnyProp& prop) std::cout << std::dec << '\n'; } +void ClientSession::handleProp(const Prop7& prop) +{ + std::cout << "\t\t" << prop.name() << ":\n" << + "\t\t\t" << prop.field_key().name() << " = " << (unsigned)prop.field_key().value() << '\n' << + "\t\t\t" << prop.field_length().name() << " = " << (unsigned)prop.field_length().value() << '\n' << + "\t\t\t" << prop.field_val().name() << " = " << prop.field_val().value() << '\n'; +} + bool ClientSession::startImpl() { doNextStage(); @@ -240,15 +248,17 @@ void ClientSession::sendMsg2() Msg2 msg; auto& listOfProps = msg.field_f1().value(); // vector of variant fields - listOfProps.resize(3); + listOfProps.resize(4); assert(msg.doLength() == 0U); assert(!listOfProps[0].valid()); assert(!listOfProps[1].valid()); assert(!listOfProps[2].valid()); + assert(!listOfProps[3].valid()); listOfProps[0].initField_prop4().field_val().value() = 0xdeadbeef; listOfProps[1].initField_prop6().field_val().value() = "blabla"; listOfProps[2].initField_prop5().field_val().value() = 1.234; + listOfProps[3].initField_prop7().field_val().value() = 100; msg.doRefresh(); // Bring message to a consistent state sendMessage(msg); diff --git a/tutorials/tutorial4/src/ClientSession.h b/tutorials/tutorial4/src/ClientSession.h index 260b1a7c2..4a66af9ec 100644 --- a/tutorials/tutorial4/src/ClientSession.h +++ b/tutorials/tutorial4/src/ClientSession.h @@ -43,6 +43,7 @@ class ClientSession : public Session using Prop4 = Msg2::Field_f1::ValueType::value_type::Field_prop4; using Prop5 = Msg2::Field_f1::ValueType::value_type::Field_prop5; using Prop6 = Msg2::Field_f1::ValueType::value_type::Field_prop6; + using Prop7 = Msg2::Field_f1::ValueType::value_type::Field_prop7; using AnyProp = Msg2::Field_f1::ValueType::value_type::Field_any; void handleProp(const Prop1& prop); @@ -51,6 +52,7 @@ class ClientSession : public Session void handleProp(const Prop4& prop); void handleProp(const Prop5& prop); void handleProp(const Prop6& prop); + void handleProp(const Prop7& prop); void handleProp(const AnyProp& prop); protected: diff --git a/tutorials/tutorial5/include/tutorial5/Message.h b/tutorials/tutorial5/include/tutorial5/Message.h index d1c19b4c2..bc80d9cdc 100644 --- a/tutorials/tutorial5/include/tutorial5/Message.h +++ b/tutorials/tutorial5/include/tutorial5/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial5/include/tutorial5/MsgId.h b/tutorials/tutorial5/include/tutorial5/MsgId.h index 8507c8d69..b6c42008c 100644 --- a/tutorials/tutorial5/include/tutorial5/MsgId.h +++ b/tutorials/tutorial5/include/tutorial5/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial5/include/tutorial5/Version.h b/tutorials/tutorial5/include/tutorial5/Version.h index 197e57684..72ce8dfee 100644 --- a/tutorials/tutorial5/include/tutorial5/Version.h +++ b/tutorials/tutorial5/include/tutorial5/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial5 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h index 3670d595e..0957d4062 100644 --- a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h index 8a8469d37..5d15da4ae 100644 --- a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h +++ b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h index a115a38cf..d9a8e24b1 100644 --- a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial5/include/tutorial5/field/FieldBase.h b/tutorials/tutorial5/include/tutorial5/field/FieldBase.h index c4e05dc23..5782ce2a6 100644 --- a/tutorials/tutorial5/include/tutorial5/field/FieldBase.h +++ b/tutorials/tutorial5/include/tutorial5/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial5/include/tutorial5/field/MsgId.h b/tutorials/tutorial5/include/tutorial5/field/MsgId.h index da478715d..4224b0316 100644 --- a/tutorials/tutorial5/include/tutorial5/field/MsgId.h +++ b/tutorials/tutorial5/include/tutorial5/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h b/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h index f53e9cf24..9625ebd6b 100644 --- a/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h +++ b/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h index baa4cdfa4..2f9573360 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "ClientToServerFrame" frame class. diff --git a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h index b29246868..510c9182f 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h index 19c0c4575..2c1e369e0 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "ServerToClientFrame" frame class. diff --git a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h index 1301d3a1c..fdfdae1d2 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/input/AllMessages.h b/tutorials/tutorial5/include/tutorial5/input/AllMessages.h index 5077eba2b..85cd02de9 100644 --- a/tutorials/tutorial5/include/tutorial5/input/AllMessages.h +++ b/tutorials/tutorial5/include/tutorial5/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h b/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h index 7b9f15f15..35d6b81a4 100644 --- a/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h +++ b/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h b/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h index 43663542f..803c78f02 100644 --- a/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h +++ b/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg1.h b/tutorials/tutorial5/include/tutorial5/message/Msg1.h index c6618285c..f304c7fa1 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg1.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h b/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h index 8c2fd2a00..091ed1196 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg2.h b/tutorials/tutorial5/include/tutorial5/message/Msg2.h index ddb2aad2e..f0b4734da 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg2.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h b/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h index 54f900037..2cc996365 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg3.h b/tutorials/tutorial5/include/tutorial5/message/Msg3.h index f00770b60..d51186c08 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg3.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h b/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h index f38bf4c0c..f5401e6b0 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h index 8a05c9002..eccb1dda5 100644 --- a/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h index 4beb0f8c8..0c48bdf27 100644 --- a/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h index 43c25b2f3..86644b2d5 100644 --- a/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h index a5e175f12..525f8d76e 100644 --- a/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h index 2fadfaae8..7eb83eefc 100644 --- a/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial6/include/tutorial6/Message.h b/tutorials/tutorial6/include/tutorial6/Message.h index bb411c5b8..dac2433dc 100644 --- a/tutorials/tutorial6/include/tutorial6/Message.h +++ b/tutorials/tutorial6/include/tutorial6/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial6/include/tutorial6/MsgId.h b/tutorials/tutorial6/include/tutorial6/MsgId.h index d7e60136f..cbfbee152 100644 --- a/tutorials/tutorial6/include/tutorial6/MsgId.h +++ b/tutorials/tutorial6/include/tutorial6/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial6/include/tutorial6/Version.h b/tutorials/tutorial6/include/tutorial6/Version.h index 693017551..2cf61f638 100644 --- a/tutorials/tutorial6/include/tutorial6/Version.h +++ b/tutorials/tutorial6/include/tutorial6/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial6 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h index 05cdbee56..4b7f62aea 100644 --- a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h index 669bb2866..b03d62d83 100644 --- a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h +++ b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h index 2506edcf2..9e51470b0 100644 --- a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial6/include/tutorial6/field/FieldBase.h b/tutorials/tutorial6/include/tutorial6/field/FieldBase.h index 2ad25782b..63381c5c0 100644 --- a/tutorials/tutorial6/include/tutorial6/field/FieldBase.h +++ b/tutorials/tutorial6/include/tutorial6/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial6/include/tutorial6/field/MsgId.h b/tutorials/tutorial6/include/tutorial6/field/MsgId.h index ebe539b4d..c788af314 100644 --- a/tutorials/tutorial6/include/tutorial6/field/MsgId.h +++ b/tutorials/tutorial6/include/tutorial6/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h b/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h index f8c169b8a..ceb6be106 100644 --- a/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h +++ b/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/frame/Frame.h b/tutorials/tutorial6/include/tutorial6/frame/Frame.h index f7b4e5e79..6674c3a46 100644 --- a/tutorials/tutorial6/include/tutorial6/frame/Frame.h +++ b/tutorials/tutorial6/include/tutorial6/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h b/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h index 915617254..6b798ca74 100644 --- a/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h +++ b/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/input/AllMessages.h b/tutorials/tutorial6/include/tutorial6/input/AllMessages.h index 43f2d553d..6abe36741 100644 --- a/tutorials/tutorial6/include/tutorial6/input/AllMessages.h +++ b/tutorials/tutorial6/include/tutorial6/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h b/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h index 1ac7c2402..f651043b5 100644 --- a/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h +++ b/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h b/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h index a92387fa2..0844a2dde 100644 --- a/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h +++ b/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg1.h b/tutorials/tutorial6/include/tutorial6/message/Msg1.h index d7fbf046e..a7cd9676d 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg1.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h b/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h index 05f949633..2596ed256 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg2.h b/tutorials/tutorial6/include/tutorial6/message/Msg2.h index 9e4c79bad..b86529db5 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg2.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h b/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h index be1d343b3..b3231326b 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg3.h b/tutorials/tutorial6/include/tutorial6/message/Msg3.h index 921fe658b..e2fce339b 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg3.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h b/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h index 11e74ef73..c9d9f7a7c 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h index 2dd9c6890..cc8210f5d 100644 --- a/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h index 201801cf2..22ce10e0f 100644 --- a/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h index 8b7b7c0bf..1b1fbd538 100644 --- a/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h index 40f79028a..ed209af6b 100644 --- a/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h index e356f724a..ac4e93948 100644 --- a/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial7/include/tutorial7/Message.h b/tutorials/tutorial7/include/tutorial7/Message.h index 36406d514..11f4bc6bb 100644 --- a/tutorials/tutorial7/include/tutorial7/Message.h +++ b/tutorials/tutorial7/include/tutorial7/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial7/include/tutorial7/MsgId.h b/tutorials/tutorial7/include/tutorial7/MsgId.h index b249a32d7..a02c9e146 100644 --- a/tutorials/tutorial7/include/tutorial7/MsgId.h +++ b/tutorials/tutorial7/include/tutorial7/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial7/include/tutorial7/Version.h b/tutorials/tutorial7/include/tutorial7/Version.h index ce53b6d21..6cabf46c4 100644 --- a/tutorials/tutorial7/include/tutorial7/Version.h +++ b/tutorials/tutorial7/include/tutorial7/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial7 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h index 9ff64b9de..d1324ad20 100644 --- a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h index f6bc89170..35ffc9069 100644 --- a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h +++ b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h index 0b3042b7d..d55a94aa4 100644 --- a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial7/include/tutorial7/field/FieldBase.h b/tutorials/tutorial7/include/tutorial7/field/FieldBase.h index 4442aa199..a6f26997a 100644 --- a/tutorials/tutorial7/include/tutorial7/field/FieldBase.h +++ b/tutorials/tutorial7/include/tutorial7/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial7/include/tutorial7/field/MsgId.h b/tutorials/tutorial7/include/tutorial7/field/MsgId.h index 30fe35be4..62b1ae7e8 100644 --- a/tutorials/tutorial7/include/tutorial7/field/MsgId.h +++ b/tutorials/tutorial7/include/tutorial7/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h b/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h index f9a4d5c89..14a868bbc 100644 --- a/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h +++ b/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/frame/Frame.h b/tutorials/tutorial7/include/tutorial7/frame/Frame.h index 1bb3efca6..0fef573e3 100644 --- a/tutorials/tutorial7/include/tutorial7/frame/Frame.h +++ b/tutorials/tutorial7/include/tutorial7/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h b/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h index a29578125..eacc70734 100644 --- a/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h +++ b/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/input/AllMessages.h b/tutorials/tutorial7/include/tutorial7/input/AllMessages.h index 2dea751e2..7c76116bf 100644 --- a/tutorials/tutorial7/include/tutorial7/input/AllMessages.h +++ b/tutorials/tutorial7/include/tutorial7/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h b/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h index 51f042930..838dba47a 100644 --- a/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h +++ b/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h b/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h index bb2a9cdda..0d8484e5e 100644 --- a/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h +++ b/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg1.h b/tutorials/tutorial7/include/tutorial7/message/Msg1.h index 12992ee0b..d111a9b6b 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg1.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h b/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h index b4adf80fd..ffa361aec 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg2.h b/tutorials/tutorial7/include/tutorial7/message/Msg2.h index df38e5daa..e6be7ac4c 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg2.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h b/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h index df84eef9b..7918a748a 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg3.h b/tutorials/tutorial7/include/tutorial7/message/Msg3.h index 52f86bc68..c679be9ae 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg3.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h b/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h index 27015f58c..0543f82e3 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h index 6fff811c7..ee7f2fd98 100644 --- a/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h index f3b92cfb5..c5ca636b0 100644 --- a/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h index a2ebd4aa1..fac262733 100644 --- a/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h index a84ea2817..c4a0e84ed 100644 --- a/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h index 97465ca53..7031a57b6 100644 --- a/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial8/include/tutorial8/Message.h b/tutorials/tutorial8/include/tutorial8/Message.h index 8611ec38d..1d1edf7ee 100644 --- a/tutorials/tutorial8/include/tutorial8/Message.h +++ b/tutorials/tutorial8/include/tutorial8/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial8/include/tutorial8/MsgId.h b/tutorials/tutorial8/include/tutorial8/MsgId.h index c418d88cf..b6c8fc373 100644 --- a/tutorials/tutorial8/include/tutorial8/MsgId.h +++ b/tutorials/tutorial8/include/tutorial8/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial8/include/tutorial8/Version.h b/tutorials/tutorial8/include/tutorial8/Version.h index 6636b8938..cbae64926 100644 --- a/tutorials/tutorial8/include/tutorial8/Version.h +++ b/tutorials/tutorial8/include/tutorial8/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial8 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h index 5c351368b..3cfc059cb 100644 --- a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h index 3f738b387..606a4897f 100644 --- a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h +++ b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h index 85afa62ca..8fc2f0532 100644 --- a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial8/include/tutorial8/field/FieldBase.h b/tutorials/tutorial8/include/tutorial8/field/FieldBase.h index e683cce45..7e11bb3e5 100644 --- a/tutorials/tutorial8/include/tutorial8/field/FieldBase.h +++ b/tutorials/tutorial8/include/tutorial8/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial8/include/tutorial8/field/MsgId.h b/tutorials/tutorial8/include/tutorial8/field/MsgId.h index e3c44b9e1..449650298 100644 --- a/tutorials/tutorial8/include/tutorial8/field/MsgId.h +++ b/tutorials/tutorial8/include/tutorial8/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h b/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h index d81a696c4..e12ec27cf 100644 --- a/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h +++ b/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/frame/Frame.h b/tutorials/tutorial8/include/tutorial8/frame/Frame.h index 48b705d8c..1e885b342 100644 --- a/tutorials/tutorial8/include/tutorial8/frame/Frame.h +++ b/tutorials/tutorial8/include/tutorial8/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h b/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h index d26777d66..f581b6091 100644 --- a/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h +++ b/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/input/AllMessages.h b/tutorials/tutorial8/include/tutorial8/input/AllMessages.h index 67630572f..d4f9a9bc7 100644 --- a/tutorials/tutorial8/include/tutorial8/input/AllMessages.h +++ b/tutorials/tutorial8/include/tutorial8/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h b/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h index 37b8d25be..8adfb0456 100644 --- a/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h +++ b/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h b/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h index 7585155b5..5c567b0fc 100644 --- a/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h +++ b/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg1.h b/tutorials/tutorial8/include/tutorial8/message/Msg1.h index 47f9977d9..e1395b1d9 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg1.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h b/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h index 8af1abf71..9007acbce 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg2.h b/tutorials/tutorial8/include/tutorial8/message/Msg2.h index 52cbeb718..47ff0885d 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg2.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h b/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h index 1d08ba5f2..56da63d93 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg3.h b/tutorials/tutorial8/include/tutorial8/message/Msg3.h index 4767ecf64..72f529da4 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg3.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h b/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h index c166ec4ff..563327250 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h index b423a624e..d1805e7a5 100644 --- a/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h index 1e36ad553..122fc6036 100644 --- a/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h index e313b1000..28267d8df 100644 --- a/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h index 65cecb291..2325a0f95 100644 --- a/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h index 9b47cc980..341cd7b7c 100644 --- a/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial9/include/tutorial9/Message.h b/tutorials/tutorial9/include/tutorial9/Message.h index 7e0a8ca20..7dcc87e53 100644 --- a/tutorials/tutorial9/include/tutorial9/Message.h +++ b/tutorials/tutorial9/include/tutorial9/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial9/include/tutorial9/MsgId.h b/tutorials/tutorial9/include/tutorial9/MsgId.h index 1ac1d448a..59213a2bf 100644 --- a/tutorials/tutorial9/include/tutorial9/MsgId.h +++ b/tutorials/tutorial9/include/tutorial9/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial9/include/tutorial9/Version.h b/tutorials/tutorial9/include/tutorial9/Version.h index d6a4a8b41..22755b9a4 100644 --- a/tutorials/tutorial9/include/tutorial9/Version.h +++ b/tutorials/tutorial9/include/tutorial9/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial9 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 0, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h index 6ba22cabd..4b578a47b 100644 --- a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h index eb606620d..f1adb55e0 100644 --- a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h +++ b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. diff --git a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h index 4487d6a5f..59c87fcba 100644 --- a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. diff --git a/tutorials/tutorial9/include/tutorial9/field/FieldBase.h b/tutorials/tutorial9/include/tutorial9/field/FieldBase.h index e7d874210..6563e7eb6 100644 --- a/tutorials/tutorial9/include/tutorial9/field/FieldBase.h +++ b/tutorials/tutorial9/include/tutorial9/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial9/include/tutorial9/field/MsgId.h b/tutorials/tutorial9/include/tutorial9/field/MsgId.h index 24c73134e..fa27f56cd 100644 --- a/tutorials/tutorial9/include/tutorial9/field/MsgId.h +++ b/tutorials/tutorial9/include/tutorial9/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "MsgId" field. @@ -59,7 +59,7 @@ class MsgId : public /// @brief Retrieve name of the @b current value const char* valueName() const { - return valueName(Base::value()); + return valueName(Base::getValue()); } /// @brief Retrieve map of enum value names. diff --git a/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h b/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h index a98dfb07c..9491ac927 100644 --- a/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h +++ b/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/frame/Frame.h b/tutorials/tutorial9/include/tutorial9/frame/Frame.h index 19fc233c2..cc0b142f4 100644 --- a/tutorials/tutorial9/include/tutorial9/frame/Frame.h +++ b/tutorials/tutorial9/include/tutorial9/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h b/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h index 7947a43ef..b3c2f47ba 100644 --- a/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h +++ b/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/input/AllMessages.h b/tutorials/tutorial9/include/tutorial9/input/AllMessages.h index a2b5b75f6..f75a0fe52 100644 --- a/tutorials/tutorial9/include/tutorial9/input/AllMessages.h +++ b/tutorials/tutorial9/include/tutorial9/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h b/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h index dd430f869..e4e240b22 100644 --- a/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h +++ b/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h b/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h index fb9f43694..bac9f8fb0 100644 --- a/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h +++ b/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg1.h b/tutorials/tutorial9/include/tutorial9/message/Msg1.h index c6d6f440c..97b7e5331 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg1.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h index fe4b8cf71..94446adc0 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg2.h b/tutorials/tutorial9/include/tutorial9/message/Msg2.h index fe1a36bf0..07fd999e9 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg2.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h index bae195fb9..ecd1afa3c 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg3.h b/tutorials/tutorial9/include/tutorial9/message/Msg3.h index 37216b317..db2c8004f 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg3.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h index ba69d32ac..bc6f80b17 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg4.h b/tutorials/tutorial9/include/tutorial9/message/Msg4.h index 9494fa95c..35796a420 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg4.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h index 3e73190ad..7a5bbeb60 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h index e054c5185..b0f30c5a9 100644 --- a/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h index 696f64f5d..dc08737f2 100644 --- a/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h index fe2def6ea..ac54f2c6c 100644 --- a/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h index 3a8da5381..7e7ea0b9b 100644 --- a/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol default options. diff --git a/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h index acdd46461..6e5dc4085 100644 --- a/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.0 +// Generated by commsdsl2comms v4.0.1 /// @file /// @brief Contains definition of protocol server default options. From 11723eced1d377061e6e212b1ff1eedb862b6b77 Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sat, 30 Jul 2022 17:44:44 +1000 Subject: [PATCH 02/12] Updating generated code. --- howtos/howto1/include/howto1/Interface.h | 2 +- howtos/howto1/include/howto1/InterfaceCommon.h | 2 +- howtos/howto1/include/howto1/MsgId.h | 2 +- howtos/howto1/include/howto1/Version.h | 4 ++-- .../howto1/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto1/include/howto1/dispatch/DispatchMessage.h | 4 ++-- .../howto1/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto1/include/howto1/field/FieldBase.h | 2 +- howtos/howto1/include/howto1/field/InterfaceFlags.h | 2 +- .../include/howto1/field/InterfaceFlagsCommon.h | 6 +++--- howtos/howto1/include/howto1/field/MsgId.h | 2 +- howtos/howto1/include/howto1/field/MsgIdCommon.h | 2 +- howtos/howto1/include/howto1/frame/Frame.h | 2 +- howtos/howto1/include/howto1/frame/FrameCommon.h | 2 +- howtos/howto1/include/howto1/input/AllMessages.h | 2 +- .../include/howto1/input/ClientInputMessages.h | 2 +- .../include/howto1/input/ServerInputMessages.h | 2 +- howtos/howto1/include/howto1/message/Msg1.h | 2 +- howtos/howto1/include/howto1/message/Msg1Common.h | 2 +- howtos/howto1/include/howto1/message/Msg2.h | 2 +- howtos/howto1/include/howto1/message/Msg2Common.h | 2 +- .../include/howto1/options/BareMetalDefaultOptions.h | 2 +- .../include/howto1/options/ClientDefaultOptions.h | 2 +- .../include/howto1/options/DataViewDefaultOptions.h | 2 +- .../howto1/include/howto1/options/DefaultOptions.h | 11 +++++++++-- .../include/howto1/options/ServerDefaultOptions.h | 2 +- howtos/howto10/include/howto10/Interface.h | 2 +- howtos/howto10/include/howto10/InterfaceCommon.h | 2 +- howtos/howto10/include/howto10/MsgId.h | 2 +- howtos/howto10/include/howto10/Version.h | 4 ++-- .../howto10/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/howto10/dispatch/DispatchMessage.h | 4 ++-- .../howto10/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto10/include/howto10/field/FieldBase.h | 2 +- howtos/howto10/include/howto10/field/Flags.h | 2 +- howtos/howto10/include/howto10/field/FlagsCommon.h | 6 +++--- howtos/howto10/include/howto10/field/MsgId.h | 2 +- howtos/howto10/include/howto10/field/MsgIdCommon.h | 2 +- howtos/howto10/include/howto10/frame/Frame.h | 2 +- howtos/howto10/include/howto10/frame/FrameCommon.h | 2 +- howtos/howto10/include/howto10/input/AllMessages.h | 2 +- .../include/howto10/input/ClientInputMessages.h | 2 +- .../include/howto10/input/ServerInputMessages.h | 2 +- howtos/howto10/include/howto10/message/Msg1.h | 2 +- howtos/howto10/include/howto10/message/Msg1Common.h | 2 +- howtos/howto10/include/howto10/message/Msg2.h | 2 +- howtos/howto10/include/howto10/message/Msg2Common.h | 2 +- howtos/howto10/include/howto10/message/Msg3.h | 2 +- howtos/howto10/include/howto10/message/Msg3Common.h | 2 +- .../howto10/options/BareMetalDefaultOptions.h | 2 +- .../include/howto10/options/ClientDefaultOptions.h | 2 +- .../include/howto10/options/DataViewDefaultOptions.h | 2 +- .../howto10/include/howto10/options/DefaultOptions.h | 11 +++++++++-- .../include/howto10/options/ServerDefaultOptions.h | 2 +- howtos/howto2/include/howto2/Message.h | 2 +- howtos/howto2/include/howto2/MsgId.h | 2 +- howtos/howto2/include/howto2/Version.h | 4 ++-- .../howto2/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto2/include/howto2/dispatch/DispatchMessage.h | 4 ++-- .../howto2/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto2/include/howto2/field/FieldBase.h | 2 +- howtos/howto2/include/howto2/field/MsgId.h | 2 +- howtos/howto2/include/howto2/field/MsgIdCommon.h | 2 +- howtos/howto2/include/howto2/frame/Frame.h | 2 +- howtos/howto2/include/howto2/frame/FrameCommon.h | 2 +- howtos/howto2/include/howto2/input/AllMessages.h | 2 +- .../include/howto2/input/ClientInputMessages.h | 2 +- .../include/howto2/input/ServerInputMessages.h | 2 +- howtos/howto2/include/howto2/message/Msg1.h | 2 +- howtos/howto2/include/howto2/message/Msg1Common.h | 2 +- howtos/howto2/include/howto2/message/Msg2.h | 2 +- howtos/howto2/include/howto2/message/Msg2Common.h | 2 +- howtos/howto2/include/howto2/message/Msg3.h | 2 +- howtos/howto2/include/howto2/message/Msg3Common.h | 2 +- howtos/howto2/include/howto2/message/Msg4.h | 2 +- howtos/howto2/include/howto2/message/Msg4Common.h | 2 +- .../include/howto2/options/BareMetalDefaultOptions.h | 2 +- .../include/howto2/options/ClientDefaultOptions.h | 2 +- .../include/howto2/options/DataViewDefaultOptions.h | 2 +- .../howto2/include/howto2/options/DefaultOptions.h | 11 +++++++++-- .../include/howto2/options/ServerDefaultOptions.h | 2 +- howtos/howto3/include/howto3/Message.h | 2 +- howtos/howto3/include/howto3/MsgId.h | 2 +- howtos/howto3/include/howto3/Version.h | 4 ++-- .../howto3/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto3/include/howto3/dispatch/DispatchMessage.h | 4 ++-- .../howto3/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto3/include/howto3/field/FieldBase.h | 2 +- howtos/howto3/include/howto3/field/MsgId.h | 2 +- howtos/howto3/include/howto3/field/MsgIdCommon.h | 2 +- howtos/howto3/include/howto3/frame/Frame.h | 2 +- howtos/howto3/include/howto3/input/AllMessages.h | 2 +- .../include/howto3/input/ClientInputMessages.h | 2 +- .../include/howto3/input/ServerInputMessages.h | 2 +- howtos/howto3/include/howto3/message/Msg1.h | 2 +- howtos/howto3/include/howto3/message/Msg1Common.h | 2 +- howtos/howto3/include/howto3/message/Msg2.h | 2 +- howtos/howto3/include/howto3/message/Msg2Common.h | 2 +- howtos/howto3/include/howto3/message/Msg3.h | 2 +- howtos/howto3/include/howto3/message/Msg3Common.h | 2 +- .../include/howto3/options/BareMetalDefaultOptions.h | 2 +- .../include/howto3/options/ClientDefaultOptions.h | 2 +- .../include/howto3/options/DataViewDefaultOptions.h | 2 +- .../howto3/include/howto3/options/DefaultOptions.h | 11 +++++++++-- .../include/howto3/options/ServerDefaultOptions.h | 2 +- howtos/howto4/include/howto4/Message.h | 2 +- howtos/howto4/include/howto4/MsgId.h | 2 +- howtos/howto4/include/howto4/Version.h | 4 ++-- .../howto4/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto4/include/howto4/dispatch/DispatchMessage.h | 4 ++-- .../howto4/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto4/include/howto4/field/FieldBase.h | 2 +- howtos/howto4/include/howto4/field/TlvProp.h | 3 ++- howtos/howto4/include/howto4/field/TlvPropCommon.h | 2 +- howtos/howto4/include/howto4/frame/Frame.h | 2 +- howtos/howto4/include/howto4/frame/FrameCommon.h | 2 +- howtos/howto4/include/howto4/input/AllMessages.h | 2 +- .../include/howto4/input/ClientInputMessages.h | 2 +- .../include/howto4/input/ServerInputMessages.h | 2 +- howtos/howto4/include/howto4/message/Msg.h | 2 +- howtos/howto4/include/howto4/message/MsgCommon.h | 2 +- .../include/howto4/options/BareMetalDefaultOptions.h | 2 +- .../include/howto4/options/ClientDefaultOptions.h | 2 +- .../include/howto4/options/DataViewDefaultOptions.h | 2 +- .../howto4/include/howto4/options/DefaultOptions.h | 11 +++++++++-- .../include/howto4/options/ServerDefaultOptions.h | 2 +- howtos/howto5/include/howto5/Interface.h | 2 +- howtos/howto5/include/howto5/InterfaceCommon.h | 2 +- howtos/howto5/include/howto5/MsgId.h | 2 +- howtos/howto5/include/howto5/Version.h | 4 ++-- .../howto5/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto5/include/howto5/dispatch/DispatchMessage.h | 4 ++-- .../howto5/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto5/include/howto5/field/FieldBase.h | 2 +- howtos/howto5/include/howto5/field/InterfaceFlags.h | 2 +- .../include/howto5/field/InterfaceFlagsCommon.h | 6 +++--- howtos/howto5/include/howto5/field/MsgId.h | 2 +- howtos/howto5/include/howto5/field/MsgIdCommon.h | 2 +- howtos/howto5/include/howto5/field/Version.h | 2 +- howtos/howto5/include/howto5/field/VersionCommon.h | 2 +- .../howto5/include/howto5/field/VersionWithFlags.h | 2 +- .../include/howto5/field/VersionWithFlagsCommon.h | 2 +- howtos/howto5/include/howto5/frame/Frame.h | 2 +- howtos/howto5/include/howto5/frame/FrameCommon.h | 2 +- howtos/howto5/include/howto5/input/AllMessages.h | 2 +- .../include/howto5/input/ClientInputMessages.h | 2 +- .../include/howto5/input/ServerInputMessages.h | 2 +- howtos/howto5/include/howto5/message/Msg1.h | 2 +- howtos/howto5/include/howto5/message/Msg1Common.h | 2 +- howtos/howto5/include/howto5/message/Msg2.h | 2 +- howtos/howto5/include/howto5/message/Msg2Common.h | 2 +- .../include/howto5/options/BareMetalDefaultOptions.h | 2 +- .../include/howto5/options/ClientDefaultOptions.h | 2 +- .../include/howto5/options/DataViewDefaultOptions.h | 2 +- .../howto5/include/howto5/options/DefaultOptions.h | 11 +++++++++-- .../include/howto5/options/ServerDefaultOptions.h | 2 +- howtos/howto6/include/howto6/Interface.h | 2 +- howtos/howto6/include/howto6/InterfaceCommon.h | 2 +- howtos/howto6/include/howto6/MsgId.h | 2 +- howtos/howto6/include/howto6/Version.h | 4 ++-- .../howto6/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto6/include/howto6/dispatch/DispatchMessage.h | 4 ++-- .../howto6/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto6/include/howto6/field/ChecksumType.h | 2 +- .../howto6/include/howto6/field/ChecksumTypeCommon.h | 2 +- howtos/howto6/include/howto6/field/FieldBase.h | 2 +- howtos/howto6/include/howto6/field/MsgId.h | 2 +- howtos/howto6/include/howto6/field/MsgIdCommon.h | 2 +- howtos/howto6/include/howto6/frame/Frame.h | 2 +- howtos/howto6/include/howto6/frame/FrameCommon.h | 2 +- howtos/howto6/include/howto6/input/AllMessages.h | 2 +- .../include/howto6/input/ClientInputMessages.h | 2 +- .../include/howto6/input/ServerInputMessages.h | 2 +- howtos/howto6/include/howto6/message/Msg1.h | 2 +- howtos/howto6/include/howto6/message/Msg1Common.h | 2 +- howtos/howto6/include/howto6/message/Msg2.h | 2 +- howtos/howto6/include/howto6/message/Msg2Common.h | 2 +- howtos/howto6/include/howto6/message/Msg3.h | 2 +- howtos/howto6/include/howto6/message/Msg3Common.h | 2 +- .../include/howto6/options/BareMetalDefaultOptions.h | 2 +- .../include/howto6/options/ClientDefaultOptions.h | 2 +- .../include/howto6/options/DataViewDefaultOptions.h | 2 +- .../howto6/include/howto6/options/DefaultOptions.h | 11 +++++++++-- .../include/howto6/options/ServerDefaultOptions.h | 2 +- howtos/howto7/include/howto7/Message.h | 2 +- howtos/howto7/include/howto7/MsgId.h | 2 +- howtos/howto7/include/howto7/Version.h | 4 ++-- .../howto7/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto7/include/howto7/dispatch/DispatchMessage.h | 4 ++-- .../howto7/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto7/include/howto7/field/FieldBase.h | 2 +- howtos/howto7/include/howto7/field/MsgId.h | 2 +- howtos/howto7/include/howto7/field/MsgIdCommon.h | 2 +- howtos/howto7/include/howto7/frame/Frame.h | 2 +- howtos/howto7/include/howto7/frame/FrameCommon.h | 2 +- howtos/howto7/include/howto7/input/AllMessages.h | 2 +- .../include/howto7/input/ClientInputMessages.h | 2 +- .../include/howto7/input/ServerInputMessages.h | 2 +- howtos/howto7/include/howto7/message/Msg1.h | 2 +- howtos/howto7/include/howto7/message/Msg1Common.h | 2 +- howtos/howto7/include/howto7/message/Msg2.h | 2 +- howtos/howto7/include/howto7/message/Msg2Common.h | 2 +- howtos/howto7/include/howto7/message/Msg3.h | 2 +- howtos/howto7/include/howto7/message/Msg3Common.h | 2 +- .../include/howto7/options/BareMetalDefaultOptions.h | 2 +- .../include/howto7/options/ClientDefaultOptions.h | 2 +- .../include/howto7/options/DataViewDefaultOptions.h | 2 +- .../howto7/include/howto7/options/DefaultOptions.h | 11 +++++++++-- .../include/howto7/options/ServerDefaultOptions.h | 2 +- howtos/howto8/include/howto8/Interface.h | 2 +- howtos/howto8/include/howto8/InterfaceCommon.h | 2 +- howtos/howto8/include/howto8/MsgId.h | 2 +- howtos/howto8/include/howto8/Version.h | 4 ++-- .../howto8/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto8/include/howto8/dispatch/DispatchMessage.h | 4 ++-- .../howto8/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto8/include/howto8/field/FieldBase.h | 2 +- howtos/howto8/include/howto8/field/Flags.h | 2 +- howtos/howto8/include/howto8/field/FlagsCommon.h | 6 +++--- howtos/howto8/include/howto8/field/MsgId.h | 2 +- howtos/howto8/include/howto8/field/MsgIdCommon.h | 2 +- howtos/howto8/include/howto8/frame/Frame.h | 2 +- howtos/howto8/include/howto8/frame/FrameCommon.h | 6 +++--- howtos/howto8/include/howto8/input/AllMessages.h | 2 +- .../include/howto8/input/ClientInputMessages.h | 2 +- .../include/howto8/input/ServerInputMessages.h | 2 +- howtos/howto8/include/howto8/message/Msg1.h | 2 +- howtos/howto8/include/howto8/message/Msg1Common.h | 2 +- howtos/howto8/include/howto8/message/Msg2.h | 2 +- howtos/howto8/include/howto8/message/Msg2Common.h | 2 +- .../include/howto8/options/BareMetalDefaultOptions.h | 2 +- .../include/howto8/options/ClientDefaultOptions.h | 2 +- .../include/howto8/options/DataViewDefaultOptions.h | 2 +- .../howto8/include/howto8/options/DefaultOptions.h | 11 +++++++++-- .../include/howto8/options/ServerDefaultOptions.h | 2 +- howtos/howto9/include/howto9/Message.h | 2 +- howtos/howto9/include/howto9/MsgId.h | 2 +- howtos/howto9/include/howto9/Version.h | 4 ++-- .../howto9/dispatch/DispatchClientInputMessage.h | 4 ++-- .../howto9/include/howto9/dispatch/DispatchMessage.h | 4 ++-- .../howto9/dispatch/DispatchServerInputMessage.h | 4 ++-- howtos/howto9/include/howto9/field/FieldBase.h | 2 +- howtos/howto9/include/howto9/field/MsgId.h | 2 +- howtos/howto9/include/howto9/field/MsgIdCommon.h | 2 +- howtos/howto9/include/howto9/field/SizeField.h | 2 +- howtos/howto9/include/howto9/field/SizeFieldCommon.h | 2 +- howtos/howto9/include/howto9/field/SyncField.h | 2 +- howtos/howto9/include/howto9/field/SyncFieldCommon.h | 2 +- howtos/howto9/include/howto9/frame/Frame.h | 2 +- howtos/howto9/include/howto9/frame/FrameCommon.h | 2 +- howtos/howto9/include/howto9/input/AllMessages.h | 2 +- .../include/howto9/input/ClientInputMessages.h | 2 +- .../include/howto9/input/ServerInputMessages.h | 2 +- howtos/howto9/include/howto9/message/Msg1.h | 2 +- howtos/howto9/include/howto9/message/Msg1Common.h | 2 +- howtos/howto9/include/howto9/message/Msg2.h | 2 +- howtos/howto9/include/howto9/message/Msg2Common.h | 2 +- howtos/howto9/include/howto9/message/Msg3.h | 2 +- howtos/howto9/include/howto9/message/Msg3Common.h | 2 +- .../include/howto9/options/BareMetalDefaultOptions.h | 2 +- .../include/howto9/options/ClientDefaultOptions.h | 2 +- .../include/howto9/options/DataViewDefaultOptions.h | 2 +- .../howto9/include/howto9/options/DefaultOptions.h | 11 +++++++++-- .../include/howto9/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial1/include/tutorial1/Message.h | 2 +- tutorials/tutorial1/include/tutorial1/MsgId.h | 2 +- tutorials/tutorial1/include/tutorial1/Version.h | 4 ++-- .../tutorial1/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial1/dispatch/DispatchMessage.h | 4 ++-- .../tutorial1/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial1/include/tutorial1/field/FieldBase.h | 2 +- tutorials/tutorial1/include/tutorial1/field/MsgId.h | 2 +- .../tutorial1/include/tutorial1/field/MsgIdCommon.h | 2 +- tutorials/tutorial1/include/tutorial1/frame/Frame.h | 2 +- .../tutorial1/include/tutorial1/frame/FrameCommon.h | 2 +- .../tutorial1/include/tutorial1/input/AllMessages.h | 2 +- .../include/tutorial1/input/ClientInputMessages.h | 2 +- .../include/tutorial1/input/ServerInputMessages.h | 2 +- tutorials/tutorial1/include/tutorial1/message/Msg1.h | 2 +- .../tutorial1/include/tutorial1/message/Msg1Common.h | 2 +- tutorials/tutorial1/include/tutorial1/message/Msg2.h | 2 +- .../tutorial1/include/tutorial1/message/Msg2Common.h | 2 +- .../tutorial1/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial1/options/ClientDefaultOptions.h | 2 +- .../tutorial1/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial1/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial1/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial10/include/tutorial10/Message.h | 2 +- tutorials/tutorial10/include/tutorial10/MsgId.h | 2 +- tutorials/tutorial10/include/tutorial10/Version.h | 4 ++-- .../tutorial10/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial10/dispatch/DispatchMessage.h | 4 ++-- .../tutorial10/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial10/include/tutorial10/field/FieldBase.h | 2 +- .../tutorial10/include/tutorial10/field/MsgId.h | 2 +- .../include/tutorial10/field/MsgIdCommon.h | 2 +- .../tutorial10/include/tutorial10/frame/Frame.h | 2 +- .../include/tutorial10/frame/FrameCommon.h | 2 +- .../include/tutorial10/input/AllMessages.h | 2 +- .../include/tutorial10/input/ClientInputMessages.h | 2 +- .../include/tutorial10/input/ServerInputMessages.h | 2 +- .../tutorial10/include/tutorial10/message/Msg1.h | 2 +- .../include/tutorial10/message/Msg1Common.h | 2 +- .../tutorial10/include/tutorial10/message/Msg2.h | 2 +- .../include/tutorial10/message/Msg2Common.h | 2 +- .../tutorial10/include/tutorial10/message/Msg3.h | 2 +- .../include/tutorial10/message/Msg3Common.h | 2 +- .../tutorial10/include/tutorial10/message/Msg4.h | 2 +- .../include/tutorial10/message/Msg4Common.h | 2 +- .../tutorial10/include/tutorial10/message/Msg5.h | 2 +- .../include/tutorial10/message/Msg5Common.h | 2 +- .../tutorial10/options/BareMetalDefaultOptions.h | 2 +- .../tutorial10/options/ClientDefaultOptions.h | 2 +- .../tutorial10/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial10/options/DefaultOptions.h | 11 +++++++++-- .../tutorial10/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial11/include/tutorial11/Message.h | 2 +- tutorials/tutorial11/include/tutorial11/MsgId.h | 2 +- tutorials/tutorial11/include/tutorial11/Version.h | 4 ++-- .../tutorial11/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial11/dispatch/DispatchMessage.h | 4 ++-- .../tutorial11/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial11/include/tutorial11/field/FieldBase.h | 2 +- .../tutorial11/include/tutorial11/field/MsgId.h | 2 +- .../include/tutorial11/field/MsgIdCommon.h | 2 +- .../tutorial11/include/tutorial11/frame/Frame.h | 2 +- .../include/tutorial11/frame/FrameCommon.h | 2 +- .../include/tutorial11/input/AllMessages.h | 2 +- .../include/tutorial11/input/ClientInputMessages.h | 2 +- .../include/tutorial11/input/ServerInputMessages.h | 2 +- .../tutorial11/include/tutorial11/message/Msg1.h | 2 +- .../include/tutorial11/message/Msg1Common.h | 2 +- .../tutorial11/include/tutorial11/message/Msg2.h | 2 +- .../include/tutorial11/message/Msg2Common.h | 2 +- .../tutorial11/include/tutorial11/message/Msg3.h | 2 +- .../include/tutorial11/message/Msg3Common.h | 2 +- .../tutorial11/options/BareMetalDefaultOptions.h | 2 +- .../tutorial11/options/ClientDefaultOptions.h | 2 +- .../tutorial11/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial11/options/DefaultOptions.h | 11 +++++++++-- .../tutorial11/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial12/include/tutorial12/Message.h | 2 +- tutorials/tutorial12/include/tutorial12/MsgId.h | 2 +- tutorials/tutorial12/include/tutorial12/Version.h | 4 ++-- .../tutorial12/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial12/dispatch/DispatchMessage.h | 4 ++-- .../tutorial12/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial12/include/tutorial12/field/FieldBase.h | 2 +- .../tutorial12/include/tutorial12/field/Length.h | 2 +- .../include/tutorial12/field/LengthCommon.h | 2 +- .../tutorial12/include/tutorial12/field/MsgId.h | 2 +- .../include/tutorial12/field/MsgIdCommon.h | 2 +- .../tutorial12/include/tutorial12/frame/Frame.h | 2 +- .../include/tutorial12/frame/FrameCommon.h | 2 +- .../include/tutorial12/input/AllMessages.h | 2 +- .../include/tutorial12/input/ClientInputMessages.h | 2 +- .../include/tutorial12/input/ServerInputMessages.h | 2 +- .../tutorial12/include/tutorial12/message/Msg1.h | 2 +- .../include/tutorial12/message/Msg1Common.h | 2 +- .../tutorial12/include/tutorial12/message/Msg2.h | 2 +- .../include/tutorial12/message/Msg2Common.h | 2 +- .../tutorial12/include/tutorial12/message/Msg3.h | 2 +- .../include/tutorial12/message/Msg3Common.h | 2 +- .../tutorial12/options/BareMetalDefaultOptions.h | 2 +- .../tutorial12/options/ClientDefaultOptions.h | 2 +- .../tutorial12/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial12/options/DefaultOptions.h | 11 +++++++++-- .../tutorial12/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial13/include/tutorial13/Message.h | 2 +- tutorials/tutorial13/include/tutorial13/MsgId.h | 2 +- tutorials/tutorial13/include/tutorial13/Version.h | 4 ++-- .../tutorial13/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial13/dispatch/DispatchMessage.h | 4 ++-- .../tutorial13/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial13/include/tutorial13/field/FieldBase.h | 2 +- .../tutorial13/include/tutorial13/field/MsgId.h | 2 +- .../include/tutorial13/field/MsgIdCommon.h | 2 +- .../tutorial13/include/tutorial13/frame/Frame.h | 2 +- .../include/tutorial13/frame/FrameCommon.h | 2 +- .../include/tutorial13/input/AllMessages.h | 2 +- .../include/tutorial13/input/ClientInputMessages.h | 2 +- .../include/tutorial13/input/ServerInputMessages.h | 2 +- .../tutorial13/include/tutorial13/message/Msg1_1.h | 2 +- .../include/tutorial13/message/Msg1_1Common.h | 2 +- .../tutorial13/include/tutorial13/message/Msg1_2.h | 2 +- .../include/tutorial13/message/Msg1_2Common.h | 2 +- .../tutorial13/include/tutorial13/message/Msg1_3.h | 2 +- .../include/tutorial13/message/Msg1_3Common.h | 2 +- .../tutorial13/include/tutorial13/message/Msg2_1.h | 2 +- .../include/tutorial13/message/Msg2_1Common.h | 2 +- .../tutorial13/include/tutorial13/message/Msg2_2.h | 2 +- .../include/tutorial13/message/Msg2_2Common.h | 2 +- .../tutorial13/include/tutorial13/message/Msg2_3.h | 2 +- .../include/tutorial13/message/Msg2_3Common.h | 2 +- .../tutorial13/options/BareMetalDefaultOptions.h | 2 +- .../tutorial13/options/ClientDefaultOptions.h | 2 +- .../tutorial13/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial13/options/DefaultOptions.h | 11 +++++++++-- .../tutorial13/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial14/include/tutorial14/Message.h | 2 +- tutorials/tutorial14/include/tutorial14/MsgId.h | 2 +- tutorials/tutorial14/include/tutorial14/Version.h | 4 ++-- .../tutorial14/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial14/dispatch/DispatchMessage.h | 4 ++-- .../tutorial14/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial14/include/tutorial14/field/FieldBase.h | 2 +- .../tutorial14/include/tutorial14/field/MsgId.h | 2 +- .../include/tutorial14/field/MsgIdCommon.h | 2 +- .../tutorial14/include/tutorial14/frame/Frame.h | 2 +- .../include/tutorial14/frame/FrameCommon.h | 2 +- .../include/tutorial14/input/AllMessages.h | 2 +- .../include/tutorial14/input/ClientInputMessages.h | 2 +- .../include/tutorial14/input/ServerInputMessages.h | 2 +- .../tutorial14/include/tutorial14/message/Msg1.h | 2 +- .../include/tutorial14/message/Msg1Common.h | 6 +++--- .../tutorial14/include/tutorial14/message/Msg2.h | 2 +- .../include/tutorial14/message/Msg2Common.h | 2 +- .../tutorial14/options/BareMetalDefaultOptions.h | 2 +- .../tutorial14/options/ClientDefaultOptions.h | 2 +- .../tutorial14/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial14/options/DefaultOptions.h | 11 +++++++++-- .../tutorial14/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial15/include/tutorial15/Message.h | 2 +- tutorials/tutorial15/include/tutorial15/MsgId.h | 2 +- tutorials/tutorial15/include/tutorial15/Version.h | 4 ++-- .../tutorial15/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial15/dispatch/DispatchMessage.h | 4 ++-- .../tutorial15/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial15/include/tutorial15/field/FieldBase.h | 2 +- .../tutorial15/include/tutorial15/field/MsgId.h | 2 +- .../include/tutorial15/field/MsgIdCommon.h | 2 +- .../tutorial15/include/tutorial15/frame/Frame.h | 2 +- .../include/tutorial15/frame/FrameCommon.h | 2 +- .../include/tutorial15/input/AllMessages.h | 2 +- .../include/tutorial15/input/ClientInputMessages.h | 2 +- .../include/tutorial15/input/ServerInputMessages.h | 2 +- .../tutorial15/include/tutorial15/message/Msg1.h | 2 +- .../include/tutorial15/message/Msg1Common.h | 2 +- .../tutorial15/include/tutorial15/message/Msg2.h | 2 +- .../include/tutorial15/message/Msg2Common.h | 2 +- .../tutorial15/include/tutorial15/message/Msg3.h | 2 +- .../include/tutorial15/message/Msg3Common.h | 2 +- .../tutorial15/options/BareMetalDefaultOptions.h | 2 +- .../tutorial15/options/ClientDefaultOptions.h | 2 +- .../tutorial15/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial15/options/DefaultOptions.h | 11 +++++++++-- .../tutorial15/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial16/include/tutorial16/Interface.h | 2 +- .../tutorial16/include/tutorial16/InterfaceCommon.h | 2 +- tutorials/tutorial16/include/tutorial16/MsgId.h | 2 +- tutorials/tutorial16/include/tutorial16/Version.h | 4 ++-- .../tutorial16/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial16/dispatch/DispatchMessage.h | 4 ++-- .../tutorial16/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial16/include/tutorial16/field/FieldBase.h | 2 +- .../include/tutorial16/field/InterfaceFlags.h | 2 +- .../include/tutorial16/field/InterfaceFlagsCommon.h | 6 +++--- .../tutorial16/include/tutorial16/field/MsgId.h | 2 +- .../include/tutorial16/field/MsgIdCommon.h | 2 +- .../tutorial16/include/tutorial16/frame/Frame.h | 2 +- .../include/tutorial16/frame/FrameCommon.h | 2 +- .../include/tutorial16/input/AllMessages.h | 2 +- .../include/tutorial16/input/ClientInputMessages.h | 2 +- .../include/tutorial16/input/ServerInputMessages.h | 2 +- .../tutorial16/include/tutorial16/message/Msg1.h | 2 +- .../include/tutorial16/message/Msg1Common.h | 2 +- .../tutorial16/include/tutorial16/message/Msg2.h | 2 +- .../include/tutorial16/message/Msg2Common.h | 2 +- .../tutorial16/options/BareMetalDefaultOptions.h | 2 +- .../tutorial16/options/ClientDefaultOptions.h | 2 +- .../tutorial16/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial16/options/DefaultOptions.h | 11 +++++++++-- .../tutorial16/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial17/include/tutorial17/Interface.h | 2 +- .../tutorial17/include/tutorial17/InterfaceCommon.h | 6 +++--- tutorials/tutorial17/include/tutorial17/MsgId.h | 2 +- tutorials/tutorial17/include/tutorial17/Version.h | 4 ++-- .../tutorial17/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial17/dispatch/DispatchMessage.h | 4 ++-- .../tutorial17/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial17/include/tutorial17/field/FieldBase.h | 2 +- .../tutorial17/include/tutorial17/field/MsgId.h | 2 +- .../include/tutorial17/field/MsgIdCommon.h | 2 +- .../tutorial17/include/tutorial17/frame/Frame.h | 2 +- .../include/tutorial17/frame/FrameCommon.h | 10 +++++----- .../include/tutorial17/input/AllMessages.h | 2 +- .../include/tutorial17/input/ClientInputMessages.h | 2 +- .../include/tutorial17/input/ServerInputMessages.h | 2 +- .../tutorial17/include/tutorial17/message/Msg1.h | 2 +- .../include/tutorial17/message/Msg1Common.h | 2 +- .../tutorial17/include/tutorial17/message/Msg2.h | 2 +- .../include/tutorial17/message/Msg2Common.h | 2 +- .../tutorial17/options/BareMetalDefaultOptions.h | 2 +- .../tutorial17/options/ClientDefaultOptions.h | 2 +- .../tutorial17/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial17/options/DefaultOptions.h | 11 +++++++++-- .../tutorial17/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial18/include/tutorial18/Message.h | 2 +- tutorials/tutorial18/include/tutorial18/MsgId.h | 2 +- tutorials/tutorial18/include/tutorial18/Version.h | 4 ++-- .../tutorial18/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial18/dispatch/DispatchMessage.h | 4 ++-- .../tutorial18/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial18/include/tutorial18/field/FieldBase.h | 2 +- .../tutorial18/include/tutorial18/field/MsgId.h | 2 +- .../include/tutorial18/field/MsgIdCommon.h | 2 +- .../tutorial18/include/tutorial18/frame/Frame.h | 2 +- .../include/tutorial18/frame/FrameCommon.h | 2 +- .../include/tutorial18/input/AllMessages.h | 2 +- .../include/tutorial18/input/ClientInputMessages.h | 2 +- .../include/tutorial18/input/ServerInputMessages.h | 2 +- .../tutorial18/include/tutorial18/message/Msg1_1.h | 2 +- .../include/tutorial18/message/Msg1_1Common.h | 2 +- .../tutorial18/include/tutorial18/message/Msg1_2.h | 2 +- .../include/tutorial18/message/Msg1_2Common.h | 2 +- .../tutorial18/include/tutorial18/message/Msg1_3.h | 2 +- .../include/tutorial18/message/Msg1_3Common.h | 2 +- .../tutorial18/include/tutorial18/message/Msg2_1.h | 2 +- .../include/tutorial18/message/Msg2_1Common.h | 2 +- .../tutorial18/include/tutorial18/message/Msg2_2.h | 2 +- .../include/tutorial18/message/Msg2_2Common.h | 2 +- .../tutorial18/include/tutorial18/message/Msg2_3.h | 2 +- .../include/tutorial18/message/Msg2_3Common.h | 2 +- .../tutorial18/options/BareMetalDefaultOptions.h | 2 +- .../tutorial18/options/ClientDefaultOptions.h | 2 +- .../tutorial18/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial18/options/DefaultOptions.h | 11 +++++++++-- .../tutorial18/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial19/include/tutorial19/Interface.h | 2 +- .../tutorial19/include/tutorial19/InterfaceCommon.h | 2 +- tutorials/tutorial19/include/tutorial19/MsgId.h | 2 +- tutorials/tutorial19/include/tutorial19/Version.h | 4 ++-- .../tutorial19/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial19/dispatch/DispatchMessage.h | 4 ++-- .../tutorial19/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial19/include/tutorial19/field/FieldBase.h | 2 +- .../tutorial19/include/tutorial19/field/MsgId.h | 2 +- .../include/tutorial19/field/MsgIdCommon.h | 2 +- .../tutorial19/include/tutorial19/frame/Frame.h | 2 +- .../include/tutorial19/frame/FrameCommon.h | 2 +- .../include/tutorial19/input/AllMessages.h | 2 +- .../include/tutorial19/input/ClientInputMessages.h | 2 +- .../include/tutorial19/input/ServerInputMessages.h | 2 +- .../tutorial19/include/tutorial19/message/Msg1.h | 2 +- .../include/tutorial19/message/Msg1Common.h | 2 +- .../tutorial19/include/tutorial19/message/Msg2.h | 2 +- .../include/tutorial19/message/Msg2Common.h | 2 +- .../tutorial19/include/tutorial19/message/Msg3.h | 5 +++-- .../include/tutorial19/message/Msg3Common.h | 6 +++--- .../tutorial19/options/BareMetalDefaultOptions.h | 2 +- .../tutorial19/options/ClientDefaultOptions.h | 2 +- .../tutorial19/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial19/options/DefaultOptions.h | 11 +++++++++-- .../tutorial19/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial2/include/tutorial2/Message.h | 2 +- tutorials/tutorial2/include/tutorial2/MsgId.h | 2 +- tutorials/tutorial2/include/tutorial2/Version.h | 4 ++-- .../tutorial2/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial2/dispatch/DispatchMessage.h | 4 ++-- .../tutorial2/dispatch/DispatchServerInputMessage.h | 4 ++-- tutorials/tutorial2/include/tutorial2/field/B8_1.h | 2 +- .../tutorial2/include/tutorial2/field/B8_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/B8_2.h | 2 +- .../tutorial2/include/tutorial2/field/B8_2Common.h | 6 +++--- tutorials/tutorial2/include/tutorial2/field/B9_1.h | 2 +- .../tutorial2/include/tutorial2/field/B9_1Common.h | 6 +++--- tutorials/tutorial2/include/tutorial2/field/B9_2.h | 2 +- .../tutorial2/include/tutorial2/field/B9_2Common.h | 6 +++--- tutorials/tutorial2/include/tutorial2/field/D7_1.h | 2 +- .../tutorial2/include/tutorial2/field/D7_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/D7_2.h | 2 +- .../tutorial2/include/tutorial2/field/D7_2Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/E2_1.h | 2 +- .../tutorial2/include/tutorial2/field/E2_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/E2_2.h | 2 +- .../tutorial2/include/tutorial2/field/E2_2Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/F11_1.h | 2 +- .../tutorial2/include/tutorial2/field/F11_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/F11_2.h | 2 +- .../tutorial2/include/tutorial2/field/F11_2Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/F11_3.h | 2 +- .../tutorial2/include/tutorial2/field/F11_3Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/F5_1.h | 2 +- .../tutorial2/include/tutorial2/field/F5_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/F5_2.h | 2 +- .../tutorial2/include/tutorial2/field/F5_2Common.h | 2 +- .../tutorial2/include/tutorial2/field/FieldBase.h | 2 +- tutorials/tutorial2/include/tutorial2/field/I1.h | 2 +- .../tutorial2/include/tutorial2/field/I1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/I3_1.h | 2 +- .../tutorial2/include/tutorial2/field/I3_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/I3_2.h | 2 +- .../tutorial2/include/tutorial2/field/I3_2Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/I3_3.h | 2 +- .../tutorial2/include/tutorial2/field/I3_3Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/I3_4.h | 2 +- .../tutorial2/include/tutorial2/field/I3_4Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/I3_5.h | 2 +- .../tutorial2/include/tutorial2/field/I3_5Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/L10_1.h | 2 +- .../tutorial2/include/tutorial2/field/L10_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/L10_2.h | 2 +- .../tutorial2/include/tutorial2/field/L10_2Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/L10_3.h | 2 +- .../tutorial2/include/tutorial2/field/L10_3Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/L10_4.h | 2 +- .../tutorial2/include/tutorial2/field/L10_4Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/L6_3.h | 2 +- .../tutorial2/include/tutorial2/field/L6_3Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/MsgId.h | 2 +- .../tutorial2/include/tutorial2/field/MsgIdCommon.h | 2 +- tutorials/tutorial2/include/tutorial2/field/S4_1.h | 2 +- .../tutorial2/include/tutorial2/field/S4_1Common.h | 6 +++--- tutorials/tutorial2/include/tutorial2/field/S4_2.h | 2 +- .../tutorial2/include/tutorial2/field/S4_2Common.h | 6 +++--- tutorials/tutorial2/include/tutorial2/field/S4_3.h | 2 +- .../tutorial2/include/tutorial2/field/S4_3Common.h | 6 +++--- tutorials/tutorial2/include/tutorial2/field/S6_1.h | 2 +- .../tutorial2/include/tutorial2/field/S6_1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/S6_2.h | 2 +- .../tutorial2/include/tutorial2/field/S6_2Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/S6_3.h | 2 +- .../tutorial2/include/tutorial2/field/S6_3Common.h | 2 +- tutorials/tutorial2/include/tutorial2/field/S6_4.h | 2 +- .../tutorial2/include/tutorial2/field/S6_4Common.h | 2 +- tutorials/tutorial2/include/tutorial2/frame/Frame.h | 2 +- .../tutorial2/include/tutorial2/frame/FrameCommon.h | 2 +- .../tutorial2/include/tutorial2/input/AllMessages.h | 2 +- .../include/tutorial2/input/ClientInputMessages.h | 2 +- .../include/tutorial2/input/ServerInputMessages.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg1.h | 2 +- .../tutorial2/include/tutorial2/message/Msg10.h | 2 +- .../include/tutorial2/message/Msg10Common.h | 2 +- .../tutorial2/include/tutorial2/message/Msg11.h | 2 +- .../include/tutorial2/message/Msg11Common.h | 2 +- .../tutorial2/include/tutorial2/message/Msg12.h | 2 +- .../include/tutorial2/message/Msg12Common.h | 2 +- .../tutorial2/include/tutorial2/message/Msg13.h | 5 +++-- .../include/tutorial2/message/Msg13Common.h | 6 +++--- .../tutorial2/include/tutorial2/message/Msg14.h | 5 +++-- .../include/tutorial2/message/Msg14Common.h | 2 +- .../tutorial2/include/tutorial2/message/Msg15.h | 2 +- .../include/tutorial2/message/Msg15Common.h | 2 +- .../tutorial2/include/tutorial2/message/Msg16.h | 2 +- .../include/tutorial2/message/Msg16Common.h | 2 +- .../tutorial2/include/tutorial2/message/Msg1Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg2.h | 2 +- .../tutorial2/include/tutorial2/message/Msg2Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg3.h | 2 +- .../tutorial2/include/tutorial2/message/Msg3Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg4.h | 2 +- .../tutorial2/include/tutorial2/message/Msg4Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg5.h | 2 +- .../tutorial2/include/tutorial2/message/Msg5Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg6.h | 2 +- .../tutorial2/include/tutorial2/message/Msg6Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg7.h | 2 +- .../tutorial2/include/tutorial2/message/Msg7Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg8.h | 2 +- .../tutorial2/include/tutorial2/message/Msg8Common.h | 2 +- tutorials/tutorial2/include/tutorial2/message/Msg9.h | 2 +- .../tutorial2/include/tutorial2/message/Msg9Common.h | 2 +- .../tutorial2/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial2/options/ClientDefaultOptions.h | 2 +- .../tutorial2/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial2/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial2/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial20/include/tutorial20/Interface.h | 2 +- .../tutorial20/include/tutorial20/InterfaceCommon.h | 2 +- tutorials/tutorial20/include/tutorial20/MsgId.h | 2 +- tutorials/tutorial20/include/tutorial20/Version.h | 4 ++-- .../tutorial20/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial20/dispatch/DispatchMessage.h | 4 ++-- .../tutorial20/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial20/include/tutorial20/field/FieldBase.h | 2 +- .../tutorial20/include/tutorial20/field/MsgId.h | 2 +- .../include/tutorial20/field/MsgIdCommon.h | 2 +- .../tutorial20/include/tutorial20/field/Version.h | 2 +- .../include/tutorial20/field/VersionCommon.h | 2 +- .../tutorial20/include/tutorial20/frame/Frame.h | 2 +- .../include/tutorial20/frame/FrameCommon.h | 2 +- .../include/tutorial20/input/AllMessages.h | 2 +- .../include/tutorial20/input/ClientInputMessages.h | 2 +- .../include/tutorial20/input/ServerInputMessages.h | 2 +- .../tutorial20/include/tutorial20/message/Connect.h | 2 +- .../include/tutorial20/message/ConnectCommon.h | 2 +- .../tutorial20/include/tutorial20/message/Msg1.h | 2 +- .../include/tutorial20/message/Msg1Common.h | 2 +- .../tutorial20/include/tutorial20/message/Msg2.h | 2 +- .../include/tutorial20/message/Msg2Common.h | 2 +- .../tutorial20/include/tutorial20/message/Msg3.h | 5 +++-- .../include/tutorial20/message/Msg3Common.h | 6 +++--- .../tutorial20/options/BareMetalDefaultOptions.h | 2 +- .../tutorial20/options/ClientDefaultOptions.h | 2 +- .../tutorial20/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial20/options/DefaultOptions.h | 11 +++++++++-- .../tutorial20/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial21/include/tutorial21/Interface.h | 2 +- .../tutorial21/include/tutorial21/InterfaceCommon.h | 2 +- tutorials/tutorial21/include/tutorial21/MsgId.h | 2 +- tutorials/tutorial21/include/tutorial21/Version.h | 4 ++-- .../tutorial21/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial21/dispatch/DispatchMessage.h | 4 ++-- .../tutorial21/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial21/include/tutorial21/field/BasicFlags.h | 2 +- .../include/tutorial21/field/BasicFlagsCommon.h | 2 +- .../tutorial21/include/tutorial21/field/FieldBase.h | 2 +- .../tutorial21/include/tutorial21/field/Msg1Flags.h | 2 +- .../include/tutorial21/field/Msg1FlagsCommon.h | 6 +++--- .../tutorial21/include/tutorial21/field/Msg2Flags.h | 2 +- .../include/tutorial21/field/Msg2FlagsCommon.h | 2 +- .../tutorial21/include/tutorial21/field/MsgId.h | 2 +- .../include/tutorial21/field/MsgIdCommon.h | 2 +- .../tutorial21/include/tutorial21/frame/Frame.h | 2 +- .../include/tutorial21/frame/FrameCommon.h | 2 +- .../include/tutorial21/input/AllMessages.h | 2 +- .../include/tutorial21/input/ClientInputMessages.h | 2 +- .../include/tutorial21/input/ServerInputMessages.h | 2 +- .../tutorial21/include/tutorial21/message/Msg1.h | 2 +- .../include/tutorial21/message/Msg1Common.h | 2 +- .../tutorial21/include/tutorial21/message/Msg2.h | 2 +- .../include/tutorial21/message/Msg2Common.h | 2 +- .../tutorial21/options/BareMetalDefaultOptions.h | 2 +- .../tutorial21/options/ClientDefaultOptions.h | 2 +- .../tutorial21/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial21/options/DefaultOptions.h | 11 +++++++++-- .../tutorial21/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial3/include/tutorial3/Message.h | 2 +- tutorials/tutorial3/include/tutorial3/MsgId.h | 2 +- tutorials/tutorial3/include/tutorial3/Version.h | 4 ++-- .../tutorial3/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial3/dispatch/DispatchMessage.h | 4 ++-- .../tutorial3/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial3/include/tutorial3/field/FieldBase.h | 2 +- tutorials/tutorial3/include/tutorial3/field/MsgId.h | 2 +- .../tutorial3/include/tutorial3/field/MsgIdCommon.h | 2 +- tutorials/tutorial3/include/tutorial3/frame/Frame.h | 2 +- .../tutorial3/include/tutorial3/frame/FrameCommon.h | 2 +- .../tutorial3/include/tutorial3/input/AllMessages.h | 2 +- .../include/tutorial3/input/ClientInputMessages.h | 2 +- .../include/tutorial3/input/ServerInputMessages.h | 2 +- tutorials/tutorial3/include/tutorial3/message/Msg1.h | 2 +- .../tutorial3/include/tutorial3/message/Msg1Common.h | 2 +- tutorials/tutorial3/include/tutorial3/message/Msg2.h | 2 +- .../tutorial3/include/tutorial3/message/Msg2Common.h | 2 +- tutorials/tutorial3/include/tutorial3/message/Msg3.h | 2 +- .../tutorial3/include/tutorial3/message/Msg3Common.h | 2 +- .../tutorial3/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial3/options/ClientDefaultOptions.h | 2 +- .../tutorial3/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial3/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial3/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial4/include/tutorial4/Message.h | 2 +- tutorials/tutorial4/include/tutorial4/MsgId.h | 2 +- tutorials/tutorial4/include/tutorial4/Version.h | 4 ++-- .../tutorial4/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial4/dispatch/DispatchMessage.h | 4 ++-- .../tutorial4/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial4/include/tutorial4/field/FieldBase.h | 2 +- .../tutorial4/include/tutorial4/field/KeyValueProp.h | 12 +++++++++--- .../include/tutorial4/field/KeyValuePropCommon.h | 2 +- tutorials/tutorial4/include/tutorial4/field/MsgId.h | 2 +- .../tutorial4/include/tutorial4/field/MsgIdCommon.h | 2 +- .../tutorial4/include/tutorial4/field/TlvProp.h | 3 ++- .../include/tutorial4/field/TlvPropCommon.h | 2 +- tutorials/tutorial4/include/tutorial4/frame/Frame.h | 2 +- .../tutorial4/include/tutorial4/frame/FrameCommon.h | 2 +- .../tutorial4/include/tutorial4/input/AllMessages.h | 2 +- .../include/tutorial4/input/ClientInputMessages.h | 2 +- .../include/tutorial4/input/ServerInputMessages.h | 2 +- tutorials/tutorial4/include/tutorial4/message/Msg1.h | 2 +- .../tutorial4/include/tutorial4/message/Msg1Common.h | 2 +- tutorials/tutorial4/include/tutorial4/message/Msg2.h | 2 +- .../tutorial4/include/tutorial4/message/Msg2Common.h | 2 +- .../tutorial4/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial4/options/ClientDefaultOptions.h | 2 +- .../tutorial4/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial4/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial4/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial5/include/tutorial5/Message.h | 2 +- tutorials/tutorial5/include/tutorial5/MsgId.h | 2 +- tutorials/tutorial5/include/tutorial5/Version.h | 4 ++-- .../tutorial5/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial5/dispatch/DispatchMessage.h | 4 ++-- .../tutorial5/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial5/include/tutorial5/field/FieldBase.h | 2 +- tutorials/tutorial5/include/tutorial5/field/MsgId.h | 2 +- .../tutorial5/include/tutorial5/field/MsgIdCommon.h | 2 +- .../include/tutorial5/frame/ClientToServerFrame.h | 2 +- .../tutorial5/frame/ClientToServerFrameCommon.h | 2 +- .../include/tutorial5/frame/ServerToClientFrame.h | 2 +- .../tutorial5/frame/ServerToClientFrameCommon.h | 2 +- .../tutorial5/include/tutorial5/input/AllMessages.h | 2 +- .../include/tutorial5/input/ClientInputMessages.h | 2 +- .../include/tutorial5/input/ServerInputMessages.h | 2 +- tutorials/tutorial5/include/tutorial5/message/Msg1.h | 2 +- .../tutorial5/include/tutorial5/message/Msg1Common.h | 2 +- tutorials/tutorial5/include/tutorial5/message/Msg2.h | 2 +- .../tutorial5/include/tutorial5/message/Msg2Common.h | 2 +- tutorials/tutorial5/include/tutorial5/message/Msg3.h | 2 +- .../tutorial5/include/tutorial5/message/Msg3Common.h | 2 +- .../tutorial5/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial5/options/ClientDefaultOptions.h | 2 +- .../tutorial5/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial5/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial5/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial6/include/tutorial6/Message.h | 2 +- tutorials/tutorial6/include/tutorial6/MsgId.h | 2 +- tutorials/tutorial6/include/tutorial6/Version.h | 4 ++-- .../tutorial6/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial6/dispatch/DispatchMessage.h | 4 ++-- .../tutorial6/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial6/include/tutorial6/field/FieldBase.h | 2 +- tutorials/tutorial6/include/tutorial6/field/MsgId.h | 2 +- .../tutorial6/include/tutorial6/field/MsgIdCommon.h | 2 +- tutorials/tutorial6/include/tutorial6/frame/Frame.h | 2 +- .../tutorial6/include/tutorial6/frame/FrameCommon.h | 2 +- .../tutorial6/include/tutorial6/input/AllMessages.h | 2 +- .../include/tutorial6/input/ClientInputMessages.h | 2 +- .../include/tutorial6/input/ServerInputMessages.h | 2 +- tutorials/tutorial6/include/tutorial6/message/Msg1.h | 2 +- .../tutorial6/include/tutorial6/message/Msg1Common.h | 2 +- tutorials/tutorial6/include/tutorial6/message/Msg2.h | 2 +- .../tutorial6/include/tutorial6/message/Msg2Common.h | 2 +- tutorials/tutorial6/include/tutorial6/message/Msg3.h | 2 +- .../tutorial6/include/tutorial6/message/Msg3Common.h | 2 +- .../tutorial6/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial6/options/ClientDefaultOptions.h | 2 +- .../tutorial6/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial6/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial6/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial7/include/tutorial7/Message.h | 2 +- tutorials/tutorial7/include/tutorial7/MsgId.h | 2 +- tutorials/tutorial7/include/tutorial7/Version.h | 4 ++-- .../tutorial7/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial7/dispatch/DispatchMessage.h | 4 ++-- .../tutorial7/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial7/include/tutorial7/field/FieldBase.h | 2 +- tutorials/tutorial7/include/tutorial7/field/MsgId.h | 2 +- .../tutorial7/include/tutorial7/field/MsgIdCommon.h | 2 +- tutorials/tutorial7/include/tutorial7/frame/Frame.h | 2 +- .../tutorial7/include/tutorial7/frame/FrameCommon.h | 2 +- .../tutorial7/include/tutorial7/input/AllMessages.h | 2 +- .../include/tutorial7/input/ClientInputMessages.h | 2 +- .../include/tutorial7/input/ServerInputMessages.h | 2 +- tutorials/tutorial7/include/tutorial7/message/Msg1.h | 2 +- .../tutorial7/include/tutorial7/message/Msg1Common.h | 2 +- tutorials/tutorial7/include/tutorial7/message/Msg2.h | 2 +- .../tutorial7/include/tutorial7/message/Msg2Common.h | 2 +- tutorials/tutorial7/include/tutorial7/message/Msg3.h | 2 +- .../tutorial7/include/tutorial7/message/Msg3Common.h | 2 +- .../tutorial7/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial7/options/ClientDefaultOptions.h | 2 +- .../tutorial7/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial7/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial7/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial8/include/tutorial8/Message.h | 2 +- tutorials/tutorial8/include/tutorial8/MsgId.h | 2 +- tutorials/tutorial8/include/tutorial8/Version.h | 4 ++-- .../tutorial8/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial8/dispatch/DispatchMessage.h | 4 ++-- .../tutorial8/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial8/include/tutorial8/field/FieldBase.h | 2 +- tutorials/tutorial8/include/tutorial8/field/MsgId.h | 2 +- .../tutorial8/include/tutorial8/field/MsgIdCommon.h | 2 +- tutorials/tutorial8/include/tutorial8/frame/Frame.h | 2 +- .../tutorial8/include/tutorial8/frame/FrameCommon.h | 2 +- .../tutorial8/include/tutorial8/input/AllMessages.h | 2 +- .../include/tutorial8/input/ClientInputMessages.h | 2 +- .../include/tutorial8/input/ServerInputMessages.h | 2 +- tutorials/tutorial8/include/tutorial8/message/Msg1.h | 2 +- .../tutorial8/include/tutorial8/message/Msg1Common.h | 2 +- tutorials/tutorial8/include/tutorial8/message/Msg2.h | 2 +- .../tutorial8/include/tutorial8/message/Msg2Common.h | 2 +- tutorials/tutorial8/include/tutorial8/message/Msg3.h | 2 +- .../tutorial8/include/tutorial8/message/Msg3Common.h | 2 +- .../tutorial8/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial8/options/ClientDefaultOptions.h | 2 +- .../tutorial8/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial8/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial8/options/ServerDefaultOptions.h | 2 +- tutorials/tutorial9/include/tutorial9/Message.h | 2 +- tutorials/tutorial9/include/tutorial9/MsgId.h | 2 +- tutorials/tutorial9/include/tutorial9/Version.h | 4 ++-- .../tutorial9/dispatch/DispatchClientInputMessage.h | 4 ++-- .../include/tutorial9/dispatch/DispatchMessage.h | 4 ++-- .../tutorial9/dispatch/DispatchServerInputMessage.h | 4 ++-- .../tutorial9/include/tutorial9/field/FieldBase.h | 2 +- tutorials/tutorial9/include/tutorial9/field/MsgId.h | 2 +- .../tutorial9/include/tutorial9/field/MsgIdCommon.h | 2 +- tutorials/tutorial9/include/tutorial9/frame/Frame.h | 2 +- .../tutorial9/include/tutorial9/frame/FrameCommon.h | 2 +- .../tutorial9/include/tutorial9/input/AllMessages.h | 2 +- .../include/tutorial9/input/ClientInputMessages.h | 2 +- .../include/tutorial9/input/ServerInputMessages.h | 2 +- tutorials/tutorial9/include/tutorial9/message/Msg1.h | 2 +- .../tutorial9/include/tutorial9/message/Msg1Common.h | 2 +- tutorials/tutorial9/include/tutorial9/message/Msg2.h | 2 +- .../tutorial9/include/tutorial9/message/Msg2Common.h | 2 +- tutorials/tutorial9/include/tutorial9/message/Msg3.h | 2 +- .../tutorial9/include/tutorial9/message/Msg3Common.h | 2 +- tutorials/tutorial9/include/tutorial9/message/Msg4.h | 2 +- .../tutorial9/include/tutorial9/message/Msg4Common.h | 2 +- .../tutorial9/options/BareMetalDefaultOptions.h | 2 +- .../include/tutorial9/options/ClientDefaultOptions.h | 2 +- .../tutorial9/options/DataViewDefaultOptions.h | 2 +- .../include/tutorial9/options/DefaultOptions.h | 11 +++++++++-- .../include/tutorial9/options/ServerDefaultOptions.h | 2 +- 908 files changed, 1338 insertions(+), 1109 deletions(-) diff --git a/howtos/howto1/include/howto1/Interface.h b/howtos/howto1/include/howto1/Interface.h index 786afef2c..251e245e6 100644 --- a/howtos/howto1/include/howto1/Interface.h +++ b/howtos/howto1/include/howto1/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto1/include/howto1/InterfaceCommon.h b/howtos/howto1/include/howto1/InterfaceCommon.h index ddf91bcb6..dbe56109e 100644 --- a/howtos/howto1/include/howto1/InterfaceCommon.h +++ b/howtos/howto1/include/howto1/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/MsgId.h b/howtos/howto1/include/howto1/MsgId.h index 38b76130f..5a4b04862 100644 --- a/howtos/howto1/include/howto1/MsgId.h +++ b/howtos/howto1/include/howto1/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto1/include/howto1/Version.h b/howtos/howto1/include/howto1/Version.h index 96d9a3771..1dbce9148 100644 --- a/howtos/howto1/include/howto1/Version.h +++ b/howtos/howto1/include/howto1/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto1 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h b/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h index 2f0bb0efe..a80ca9596 100644 --- a/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto1::options::DefaultOptions as template parameter. /// @note Defined in howto1/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto1/include/howto1/dispatch/DispatchMessage.h b/howtos/howto1/include/howto1/dispatch/DispatchMessage.h index 12cade568..e62159f86 100644 --- a/howtos/howto1/include/howto1/dispatch/DispatchMessage.h +++ b/howtos/howto1/include/howto1/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto1::options::DefaultOptions as template parameter. /// @note Defined in howto1/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h b/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h index e1a23f6e1..34de03112 100644 --- a/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto1/include/howto1/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto1::options::DefaultOptions as template parameter. /// @note Defined in howto1/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto1/include/howto1/field/FieldBase.h b/howtos/howto1/include/howto1/field/FieldBase.h index 2625049c0..15026bf0d 100644 --- a/howtos/howto1/include/howto1/field/FieldBase.h +++ b/howtos/howto1/include/howto1/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto1/include/howto1/field/InterfaceFlags.h b/howtos/howto1/include/howto1/field/InterfaceFlags.h index 52552debe..b279c1f8f 100644 --- a/howtos/howto1/include/howto1/field/InterfaceFlags.h +++ b/howtos/howto1/include/howto1/field/InterfaceFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "InterfaceFlags" field. diff --git a/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h b/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h index 2e05fcb3e..1f50af09b 100644 --- a/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h +++ b/howtos/howto1/include/howto1/field/InterfaceFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -33,12 +33,12 @@ struct InterfaceFlagsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/howtos/howto1/include/howto1/field/MsgId.h b/howtos/howto1/include/howto1/field/MsgId.h index e45a5d1b9..1a15555da 100644 --- a/howtos/howto1/include/howto1/field/MsgId.h +++ b/howtos/howto1/include/howto1/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto1/include/howto1/field/MsgIdCommon.h b/howtos/howto1/include/howto1/field/MsgIdCommon.h index 2eddc9e99..a4ce26f12 100644 --- a/howtos/howto1/include/howto1/field/MsgIdCommon.h +++ b/howtos/howto1/include/howto1/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/frame/Frame.h b/howtos/howto1/include/howto1/frame/Frame.h index 8793bae58..047c8153b 100644 --- a/howtos/howto1/include/howto1/frame/Frame.h +++ b/howtos/howto1/include/howto1/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto1/include/howto1/frame/FrameCommon.h b/howtos/howto1/include/howto1/frame/FrameCommon.h index 25cf24358..f90c234ef 100644 --- a/howtos/howto1/include/howto1/frame/FrameCommon.h +++ b/howtos/howto1/include/howto1/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/input/AllMessages.h b/howtos/howto1/include/howto1/input/AllMessages.h index 141bdbaae..4f8c9bdbf 100644 --- a/howtos/howto1/include/howto1/input/AllMessages.h +++ b/howtos/howto1/include/howto1/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto1/include/howto1/input/ClientInputMessages.h b/howtos/howto1/include/howto1/input/ClientInputMessages.h index cbb296d93..bc0ffc134 100644 --- a/howtos/howto1/include/howto1/input/ClientInputMessages.h +++ b/howtos/howto1/include/howto1/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto1/include/howto1/input/ServerInputMessages.h b/howtos/howto1/include/howto1/input/ServerInputMessages.h index fb33e6e96..fba710359 100644 --- a/howtos/howto1/include/howto1/input/ServerInputMessages.h +++ b/howtos/howto1/include/howto1/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto1/include/howto1/message/Msg1.h b/howtos/howto1/include/howto1/message/Msg1.h index 4556c8313..f3d6e999c 100644 --- a/howtos/howto1/include/howto1/message/Msg1.h +++ b/howtos/howto1/include/howto1/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto1/include/howto1/message/Msg1Common.h b/howtos/howto1/include/howto1/message/Msg1Common.h index 826212ac8..3f6d21588 100644 --- a/howtos/howto1/include/howto1/message/Msg1Common.h +++ b/howtos/howto1/include/howto1/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/message/Msg2.h b/howtos/howto1/include/howto1/message/Msg2.h index ef86d1079..0a1e44557 100644 --- a/howtos/howto1/include/howto1/message/Msg2.h +++ b/howtos/howto1/include/howto1/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto1/include/howto1/message/Msg2Common.h b/howtos/howto1/include/howto1/message/Msg2Common.h index 3ced33fdc..2e7aa6d4f 100644 --- a/howtos/howto1/include/howto1/message/Msg2Common.h +++ b/howtos/howto1/include/howto1/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h b/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h index 67218d0e9..760ca09c8 100644 --- a/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto1/include/howto1/options/ClientDefaultOptions.h b/howtos/howto1/include/howto1/options/ClientDefaultOptions.h index 475f66ad7..54f1da723 100644 --- a/howtos/howto1/include/howto1/options/ClientDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h b/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h index 7dfe4ca7e..8de34ae64 100644 --- a/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto1/include/howto1/options/DefaultOptions.h b/howtos/howto1/include/howto1/options/DefaultOptions.h index 692ececb6..ef896405c 100644 --- a/howtos/howto1/include/howto1/options/DefaultOptions.h +++ b/howtos/howto1/include/howto1/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto1 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -59,6 +63,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto1 diff --git a/howtos/howto1/include/howto1/options/ServerDefaultOptions.h b/howtos/howto1/include/howto1/options/ServerDefaultOptions.h index 6aeebc32b..abe920851 100644 --- a/howtos/howto1/include/howto1/options/ServerDefaultOptions.h +++ b/howtos/howto1/include/howto1/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto10/include/howto10/Interface.h b/howtos/howto10/include/howto10/Interface.h index a600b7e0e..8144b81d1 100644 --- a/howtos/howto10/include/howto10/Interface.h +++ b/howtos/howto10/include/howto10/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto10/include/howto10/InterfaceCommon.h b/howtos/howto10/include/howto10/InterfaceCommon.h index f576e9de8..da3402609 100644 --- a/howtos/howto10/include/howto10/InterfaceCommon.h +++ b/howtos/howto10/include/howto10/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/MsgId.h b/howtos/howto10/include/howto10/MsgId.h index b14c1494b..9d632337d 100644 --- a/howtos/howto10/include/howto10/MsgId.h +++ b/howtos/howto10/include/howto10/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto10/include/howto10/Version.h b/howtos/howto10/include/howto10/Version.h index 218d93d56..8c08b2858 100644 --- a/howtos/howto10/include/howto10/Version.h +++ b/howtos/howto10/include/howto10/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto10 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h b/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h index 4bf078271..f4cb0ca3f 100644 --- a/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto10/include/howto10/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto10::options::DefaultOptions as template parameter. /// @note Defined in howto10/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto10/include/howto10/dispatch/DispatchMessage.h b/howtos/howto10/include/howto10/dispatch/DispatchMessage.h index 1405ebc7e..bb4edbdaf 100644 --- a/howtos/howto10/include/howto10/dispatch/DispatchMessage.h +++ b/howtos/howto10/include/howto10/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto10::options::DefaultOptions as template parameter. /// @note Defined in howto10/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h b/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h index 4111d0f61..888253c1b 100644 --- a/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto10/include/howto10/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto10::options::DefaultOptions as template parameter. /// @note Defined in howto10/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto10/include/howto10/field/FieldBase.h b/howtos/howto10/include/howto10/field/FieldBase.h index 75349d86f..e1f148410 100644 --- a/howtos/howto10/include/howto10/field/FieldBase.h +++ b/howtos/howto10/include/howto10/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto10/include/howto10/field/Flags.h b/howtos/howto10/include/howto10/field/Flags.h index 1a4562aca..3baba0d9c 100644 --- a/howtos/howto10/include/howto10/field/Flags.h +++ b/howtos/howto10/include/howto10/field/Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Flags" field. diff --git a/howtos/howto10/include/howto10/field/FlagsCommon.h b/howtos/howto10/include/howto10/field/FlagsCommon.h index 3cb65dfd4..ad888bec8 100644 --- a/howtos/howto10/include/howto10/field/FlagsCommon.h +++ b/howtos/howto10/include/howto10/field/FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -33,12 +33,12 @@ struct FlagsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/howtos/howto10/include/howto10/field/MsgId.h b/howtos/howto10/include/howto10/field/MsgId.h index 1cc6a2a04..2e30bdd09 100644 --- a/howtos/howto10/include/howto10/field/MsgId.h +++ b/howtos/howto10/include/howto10/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto10/include/howto10/field/MsgIdCommon.h b/howtos/howto10/include/howto10/field/MsgIdCommon.h index 906a1e0a2..1d2920d29 100644 --- a/howtos/howto10/include/howto10/field/MsgIdCommon.h +++ b/howtos/howto10/include/howto10/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/frame/Frame.h b/howtos/howto10/include/howto10/frame/Frame.h index e6d3edfe3..295b877e5 100644 --- a/howtos/howto10/include/howto10/frame/Frame.h +++ b/howtos/howto10/include/howto10/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto10/include/howto10/frame/FrameCommon.h b/howtos/howto10/include/howto10/frame/FrameCommon.h index cc5a8e7fb..f71d2fb8b 100644 --- a/howtos/howto10/include/howto10/frame/FrameCommon.h +++ b/howtos/howto10/include/howto10/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/input/AllMessages.h b/howtos/howto10/include/howto10/input/AllMessages.h index 13315af12..30c4751cd 100644 --- a/howtos/howto10/include/howto10/input/AllMessages.h +++ b/howtos/howto10/include/howto10/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto10/include/howto10/input/ClientInputMessages.h b/howtos/howto10/include/howto10/input/ClientInputMessages.h index 566071cb5..050f8d5cf 100644 --- a/howtos/howto10/include/howto10/input/ClientInputMessages.h +++ b/howtos/howto10/include/howto10/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto10/include/howto10/input/ServerInputMessages.h b/howtos/howto10/include/howto10/input/ServerInputMessages.h index 64b868d27..fa54bf380 100644 --- a/howtos/howto10/include/howto10/input/ServerInputMessages.h +++ b/howtos/howto10/include/howto10/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto10/include/howto10/message/Msg1.h b/howtos/howto10/include/howto10/message/Msg1.h index 3013fb5ed..c68d500e5 100644 --- a/howtos/howto10/include/howto10/message/Msg1.h +++ b/howtos/howto10/include/howto10/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto10/include/howto10/message/Msg1Common.h b/howtos/howto10/include/howto10/message/Msg1Common.h index fcbc6045a..1c1093001 100644 --- a/howtos/howto10/include/howto10/message/Msg1Common.h +++ b/howtos/howto10/include/howto10/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/message/Msg2.h b/howtos/howto10/include/howto10/message/Msg2.h index 39b40c78d..78e869b12 100644 --- a/howtos/howto10/include/howto10/message/Msg2.h +++ b/howtos/howto10/include/howto10/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto10/include/howto10/message/Msg2Common.h b/howtos/howto10/include/howto10/message/Msg2Common.h index 7f040cc70..b2b791ecf 100644 --- a/howtos/howto10/include/howto10/message/Msg2Common.h +++ b/howtos/howto10/include/howto10/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/message/Msg3.h b/howtos/howto10/include/howto10/message/Msg3.h index 99bd513de..801f832ac 100644 --- a/howtos/howto10/include/howto10/message/Msg3.h +++ b/howtos/howto10/include/howto10/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto10/include/howto10/message/Msg3Common.h b/howtos/howto10/include/howto10/message/Msg3Common.h index 4190b9644..a6e229cbd 100644 --- a/howtos/howto10/include/howto10/message/Msg3Common.h +++ b/howtos/howto10/include/howto10/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h b/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h index 9dfafc480..9cf0460d3 100644 --- a/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto10/include/howto10/options/ClientDefaultOptions.h b/howtos/howto10/include/howto10/options/ClientDefaultOptions.h index abf1127ab..035189ce9 100644 --- a/howtos/howto10/include/howto10/options/ClientDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h b/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h index e3f401f00..9d8d846ad 100644 --- a/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto10/include/howto10/options/DefaultOptions.h b/howtos/howto10/include/howto10/options/DefaultOptions.h index 666139a54..a4a09b0cd 100644 --- a/howtos/howto10/include/howto10/options/DefaultOptions.h +++ b/howtos/howto10/include/howto10/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto10 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -59,6 +63,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto10 diff --git a/howtos/howto10/include/howto10/options/ServerDefaultOptions.h b/howtos/howto10/include/howto10/options/ServerDefaultOptions.h index 091cb7365..8318657f7 100644 --- a/howtos/howto10/include/howto10/options/ServerDefaultOptions.h +++ b/howtos/howto10/include/howto10/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto2/include/howto2/Message.h b/howtos/howto2/include/howto2/Message.h index 9ac52d829..0e9961a69 100644 --- a/howtos/howto2/include/howto2/Message.h +++ b/howtos/howto2/include/howto2/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto2/include/howto2/MsgId.h b/howtos/howto2/include/howto2/MsgId.h index 4b60f6567..476639e6f 100644 --- a/howtos/howto2/include/howto2/MsgId.h +++ b/howtos/howto2/include/howto2/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto2/include/howto2/Version.h b/howtos/howto2/include/howto2/Version.h index 34c4b199d..e7dd1d74a 100644 --- a/howtos/howto2/include/howto2/Version.h +++ b/howtos/howto2/include/howto2/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto2 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h b/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h index bf263092e..339edf93a 100644 --- a/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto2/include/howto2/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -195,7 +195,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto2::options::DefaultOptions as template parameter. /// @note Defined in howto2/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto2/include/howto2/dispatch/DispatchMessage.h b/howtos/howto2/include/howto2/dispatch/DispatchMessage.h index 0b13a19fb..3ad061ce5 100644 --- a/howtos/howto2/include/howto2/dispatch/DispatchMessage.h +++ b/howtos/howto2/include/howto2/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -195,7 +195,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto2::options::DefaultOptions as template parameter. /// @note Defined in howto2/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h b/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h index 6a7ee0837..55a0437b8 100644 --- a/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto2/include/howto2/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -195,7 +195,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto2::options::DefaultOptions as template parameter. /// @note Defined in howto2/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto2/include/howto2/field/FieldBase.h b/howtos/howto2/include/howto2/field/FieldBase.h index c226b29ef..2f7b21784 100644 --- a/howtos/howto2/include/howto2/field/FieldBase.h +++ b/howtos/howto2/include/howto2/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto2/include/howto2/field/MsgId.h b/howtos/howto2/include/howto2/field/MsgId.h index 62167c24d..34e8eb630 100644 --- a/howtos/howto2/include/howto2/field/MsgId.h +++ b/howtos/howto2/include/howto2/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto2/include/howto2/field/MsgIdCommon.h b/howtos/howto2/include/howto2/field/MsgIdCommon.h index 760f1bb75..416ed6ab1 100644 --- a/howtos/howto2/include/howto2/field/MsgIdCommon.h +++ b/howtos/howto2/include/howto2/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/frame/Frame.h b/howtos/howto2/include/howto2/frame/Frame.h index 6ca3505b2..46f4eb50a 100644 --- a/howtos/howto2/include/howto2/frame/Frame.h +++ b/howtos/howto2/include/howto2/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto2/include/howto2/frame/FrameCommon.h b/howtos/howto2/include/howto2/frame/FrameCommon.h index 8f027ee56..2e76d2194 100644 --- a/howtos/howto2/include/howto2/frame/FrameCommon.h +++ b/howtos/howto2/include/howto2/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/input/AllMessages.h b/howtos/howto2/include/howto2/input/AllMessages.h index e09c71c05..2b42d2048 100644 --- a/howtos/howto2/include/howto2/input/AllMessages.h +++ b/howtos/howto2/include/howto2/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto2/include/howto2/input/ClientInputMessages.h b/howtos/howto2/include/howto2/input/ClientInputMessages.h index a60146260..379f1bd07 100644 --- a/howtos/howto2/include/howto2/input/ClientInputMessages.h +++ b/howtos/howto2/include/howto2/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto2/include/howto2/input/ServerInputMessages.h b/howtos/howto2/include/howto2/input/ServerInputMessages.h index 8b7b3c420..8024af5b6 100644 --- a/howtos/howto2/include/howto2/input/ServerInputMessages.h +++ b/howtos/howto2/include/howto2/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto2/include/howto2/message/Msg1.h b/howtos/howto2/include/howto2/message/Msg1.h index 1095c4d42..919e607bd 100644 --- a/howtos/howto2/include/howto2/message/Msg1.h +++ b/howtos/howto2/include/howto2/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto2/include/howto2/message/Msg1Common.h b/howtos/howto2/include/howto2/message/Msg1Common.h index 04978c012..5953f1397 100644 --- a/howtos/howto2/include/howto2/message/Msg1Common.h +++ b/howtos/howto2/include/howto2/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/message/Msg2.h b/howtos/howto2/include/howto2/message/Msg2.h index 7085f5a13..6f19bbc57 100644 --- a/howtos/howto2/include/howto2/message/Msg2.h +++ b/howtos/howto2/include/howto2/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto2/include/howto2/message/Msg2Common.h b/howtos/howto2/include/howto2/message/Msg2Common.h index ab919bc39..be87c5636 100644 --- a/howtos/howto2/include/howto2/message/Msg2Common.h +++ b/howtos/howto2/include/howto2/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/message/Msg3.h b/howtos/howto2/include/howto2/message/Msg3.h index 926b093f2..864a21999 100644 --- a/howtos/howto2/include/howto2/message/Msg3.h +++ b/howtos/howto2/include/howto2/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto2/include/howto2/message/Msg3Common.h b/howtos/howto2/include/howto2/message/Msg3Common.h index e1e4443b8..d699d29f9 100644 --- a/howtos/howto2/include/howto2/message/Msg3Common.h +++ b/howtos/howto2/include/howto2/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/message/Msg4.h b/howtos/howto2/include/howto2/message/Msg4.h index 1eac52862..73090ed6e 100644 --- a/howtos/howto2/include/howto2/message/Msg4.h +++ b/howtos/howto2/include/howto2/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/howtos/howto2/include/howto2/message/Msg4Common.h b/howtos/howto2/include/howto2/message/Msg4Common.h index 0e9c5c354..8d0054a95 100644 --- a/howtos/howto2/include/howto2/message/Msg4Common.h +++ b/howtos/howto2/include/howto2/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h b/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h index e5b33c81e..4120d557f 100644 --- a/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto2/include/howto2/options/ClientDefaultOptions.h b/howtos/howto2/include/howto2/options/ClientDefaultOptions.h index d9027e4db..bd372a614 100644 --- a/howtos/howto2/include/howto2/options/ClientDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h b/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h index ebc892647..d0ba13052 100644 --- a/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto2/include/howto2/options/DefaultOptions.h b/howtos/howto2/include/howto2/options/DefaultOptions.h index bd84d986b..425d440d3 100644 --- a/howtos/howto2/include/howto2/options/DefaultOptions.h +++ b/howtos/howto2/include/howto2/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto2 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -65,6 +69,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto2 diff --git a/howtos/howto2/include/howto2/options/ServerDefaultOptions.h b/howtos/howto2/include/howto2/options/ServerDefaultOptions.h index 1ddd64b4f..79d8024ec 100644 --- a/howtos/howto2/include/howto2/options/ServerDefaultOptions.h +++ b/howtos/howto2/include/howto2/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto3/include/howto3/Message.h b/howtos/howto3/include/howto3/Message.h index 6133e8efe..92e92d6f2 100644 --- a/howtos/howto3/include/howto3/Message.h +++ b/howtos/howto3/include/howto3/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto3/include/howto3/MsgId.h b/howtos/howto3/include/howto3/MsgId.h index 0f9ab1b4a..244da516a 100644 --- a/howtos/howto3/include/howto3/MsgId.h +++ b/howtos/howto3/include/howto3/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto3/include/howto3/Version.h b/howtos/howto3/include/howto3/Version.h index f63727978..25aeb35ec 100644 --- a/howtos/howto3/include/howto3/Version.h +++ b/howtos/howto3/include/howto3/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto3 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h b/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h index 86100f5e1..f45202def 100644 --- a/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto3/include/howto3/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto3::options::DefaultOptions as template parameter. /// @note Defined in howto3/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto3/include/howto3/dispatch/DispatchMessage.h b/howtos/howto3/include/howto3/dispatch/DispatchMessage.h index c18260a50..1a236a7a1 100644 --- a/howtos/howto3/include/howto3/dispatch/DispatchMessage.h +++ b/howtos/howto3/include/howto3/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto3::options::DefaultOptions as template parameter. /// @note Defined in howto3/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h b/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h index aaf79ee83..3f0b3a368 100644 --- a/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto3/include/howto3/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto3::options::DefaultOptions as template parameter. /// @note Defined in howto3/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto3/include/howto3/field/FieldBase.h b/howtos/howto3/include/howto3/field/FieldBase.h index 023d9e004..a0761be2c 100644 --- a/howtos/howto3/include/howto3/field/FieldBase.h +++ b/howtos/howto3/include/howto3/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto3/include/howto3/field/MsgId.h b/howtos/howto3/include/howto3/field/MsgId.h index a2765894f..5b6a91426 100644 --- a/howtos/howto3/include/howto3/field/MsgId.h +++ b/howtos/howto3/include/howto3/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto3/include/howto3/field/MsgIdCommon.h b/howtos/howto3/include/howto3/field/MsgIdCommon.h index 8db9a1676..843215e56 100644 --- a/howtos/howto3/include/howto3/field/MsgIdCommon.h +++ b/howtos/howto3/include/howto3/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/frame/Frame.h b/howtos/howto3/include/howto3/frame/Frame.h index 8975e1ab4..b84131c2f 100644 --- a/howtos/howto3/include/howto3/frame/Frame.h +++ b/howtos/howto3/include/howto3/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto3/include/howto3/input/AllMessages.h b/howtos/howto3/include/howto3/input/AllMessages.h index b8f8319bd..19efb5a20 100644 --- a/howtos/howto3/include/howto3/input/AllMessages.h +++ b/howtos/howto3/include/howto3/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto3/include/howto3/input/ClientInputMessages.h b/howtos/howto3/include/howto3/input/ClientInputMessages.h index 341f0f00f..d3b63b471 100644 --- a/howtos/howto3/include/howto3/input/ClientInputMessages.h +++ b/howtos/howto3/include/howto3/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto3/include/howto3/input/ServerInputMessages.h b/howtos/howto3/include/howto3/input/ServerInputMessages.h index 8e680a961..62289a0f3 100644 --- a/howtos/howto3/include/howto3/input/ServerInputMessages.h +++ b/howtos/howto3/include/howto3/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto3/include/howto3/message/Msg1.h b/howtos/howto3/include/howto3/message/Msg1.h index 88dcb4ca6..c6a4fe231 100644 --- a/howtos/howto3/include/howto3/message/Msg1.h +++ b/howtos/howto3/include/howto3/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto3/include/howto3/message/Msg1Common.h b/howtos/howto3/include/howto3/message/Msg1Common.h index 17b4baed8..e39412500 100644 --- a/howtos/howto3/include/howto3/message/Msg1Common.h +++ b/howtos/howto3/include/howto3/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/message/Msg2.h b/howtos/howto3/include/howto3/message/Msg2.h index 65f02dc40..b6aa460dc 100644 --- a/howtos/howto3/include/howto3/message/Msg2.h +++ b/howtos/howto3/include/howto3/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto3/include/howto3/message/Msg2Common.h b/howtos/howto3/include/howto3/message/Msg2Common.h index 0868a8f56..20cfe68c4 100644 --- a/howtos/howto3/include/howto3/message/Msg2Common.h +++ b/howtos/howto3/include/howto3/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/message/Msg3.h b/howtos/howto3/include/howto3/message/Msg3.h index aa5cad55c..5620bfbea 100644 --- a/howtos/howto3/include/howto3/message/Msg3.h +++ b/howtos/howto3/include/howto3/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto3/include/howto3/message/Msg3Common.h b/howtos/howto3/include/howto3/message/Msg3Common.h index 67918ba12..33e325754 100644 --- a/howtos/howto3/include/howto3/message/Msg3Common.h +++ b/howtos/howto3/include/howto3/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h b/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h index 06cac180f..d328f77cb 100644 --- a/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto3/include/howto3/options/ClientDefaultOptions.h b/howtos/howto3/include/howto3/options/ClientDefaultOptions.h index 1071aff23..c134b1865 100644 --- a/howtos/howto3/include/howto3/options/ClientDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h b/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h index cb69b6972..3c888ef1f 100644 --- a/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto3/include/howto3/options/DefaultOptions.h b/howtos/howto3/include/howto3/options/DefaultOptions.h index 34680443e..30407e6a8 100644 --- a/howtos/howto3/include/howto3/options/DefaultOptions.h +++ b/howtos/howto3/include/howto3/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto3 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -64,6 +68,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto3 diff --git a/howtos/howto3/include/howto3/options/ServerDefaultOptions.h b/howtos/howto3/include/howto3/options/ServerDefaultOptions.h index 94b3c8c62..f0a8de39a 100644 --- a/howtos/howto3/include/howto3/options/ServerDefaultOptions.h +++ b/howtos/howto3/include/howto3/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto4/include/howto4/Message.h b/howtos/howto4/include/howto4/Message.h index eed8b8522..b4ef64004 100644 --- a/howtos/howto4/include/howto4/Message.h +++ b/howtos/howto4/include/howto4/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto4/include/howto4/MsgId.h b/howtos/howto4/include/howto4/MsgId.h index 0907f408b..ab7d93592 100644 --- a/howtos/howto4/include/howto4/MsgId.h +++ b/howtos/howto4/include/howto4/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto4/include/howto4/Version.h b/howtos/howto4/include/howto4/Version.h index a02cde9a0..f2409096e 100644 --- a/howtos/howto4/include/howto4/Version.h +++ b/howtos/howto4/include/howto4/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto4 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h b/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h index e62e0e110..18c1ebcad 100644 --- a/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto4/include/howto4/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -180,7 +180,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto4::options::DefaultOptions as template parameter. /// @note Defined in howto4/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto4/include/howto4/dispatch/DispatchMessage.h b/howtos/howto4/include/howto4/dispatch/DispatchMessage.h index 651c4a078..9e898b193 100644 --- a/howtos/howto4/include/howto4/dispatch/DispatchMessage.h +++ b/howtos/howto4/include/howto4/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -180,7 +180,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto4::options::DefaultOptions as template parameter. /// @note Defined in howto4/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h b/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h index 1bb059e6e..6854c5f61 100644 --- a/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto4/include/howto4/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -180,7 +180,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto4::options::DefaultOptions as template parameter. /// @note Defined in howto4/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto4/include/howto4/field/FieldBase.h b/howtos/howto4/include/howto4/field/FieldBase.h index 1e5180990..da1ceab1a 100644 --- a/howtos/howto4/include/howto4/field/FieldBase.h +++ b/howtos/howto4/include/howto4/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto4/include/howto4/field/TlvProp.h b/howtos/howto4/include/howto4/field/TlvProp.h index 804ad9838..125a1a07c 100644 --- a/howtos/howto4/include/howto4/field/TlvProp.h +++ b/howtos/howto4/include/howto4/field/TlvProp.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "TlvProp" field. @@ -9,6 +9,7 @@ #include #include #include +#include "comms/Assert.h" #include "comms/CompileControl.h" #include "comms/field/ArrayList.h" #include "comms/field/Bundle.h" diff --git a/howtos/howto4/include/howto4/field/TlvPropCommon.h b/howtos/howto4/include/howto4/field/TlvPropCommon.h index 462566863..6bf4c5eb4 100644 --- a/howtos/howto4/include/howto4/field/TlvPropCommon.h +++ b/howtos/howto4/include/howto4/field/TlvPropCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto4/include/howto4/frame/Frame.h b/howtos/howto4/include/howto4/frame/Frame.h index e0f1c692c..64e233166 100644 --- a/howtos/howto4/include/howto4/frame/Frame.h +++ b/howtos/howto4/include/howto4/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto4/include/howto4/frame/FrameCommon.h b/howtos/howto4/include/howto4/frame/FrameCommon.h index 7ed5415b5..191e71c82 100644 --- a/howtos/howto4/include/howto4/frame/FrameCommon.h +++ b/howtos/howto4/include/howto4/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto4/include/howto4/input/AllMessages.h b/howtos/howto4/include/howto4/input/AllMessages.h index ded1eb218..92b420d68 100644 --- a/howtos/howto4/include/howto4/input/AllMessages.h +++ b/howtos/howto4/include/howto4/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto4/include/howto4/input/ClientInputMessages.h b/howtos/howto4/include/howto4/input/ClientInputMessages.h index a3b98ba5b..726f1f9da 100644 --- a/howtos/howto4/include/howto4/input/ClientInputMessages.h +++ b/howtos/howto4/include/howto4/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto4/include/howto4/input/ServerInputMessages.h b/howtos/howto4/include/howto4/input/ServerInputMessages.h index f5795fa00..096cdae1f 100644 --- a/howtos/howto4/include/howto4/input/ServerInputMessages.h +++ b/howtos/howto4/include/howto4/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto4/include/howto4/message/Msg.h b/howtos/howto4/include/howto4/message/Msg.h index 2e62cc75f..3fc6d5813 100644 --- a/howtos/howto4/include/howto4/message/Msg.h +++ b/howtos/howto4/include/howto4/message/Msg.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" message and its fields. diff --git a/howtos/howto4/include/howto4/message/MsgCommon.h b/howtos/howto4/include/howto4/message/MsgCommon.h index 138b46bd3..b2d2f7109 100644 --- a/howtos/howto4/include/howto4/message/MsgCommon.h +++ b/howtos/howto4/include/howto4/message/MsgCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h b/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h index 3aca66e99..fbebea7d3 100644 --- a/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto4/include/howto4/options/ClientDefaultOptions.h b/howtos/howto4/include/howto4/options/ClientDefaultOptions.h index f1e23a762..53d173d86 100644 --- a/howtos/howto4/include/howto4/options/ClientDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h b/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h index 9e21b36ed..d715588a4 100644 --- a/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto4/include/howto4/options/DefaultOptions.h b/howtos/howto4/include/howto4/options/DefaultOptions.h index 1bb0d62d0..a8d197f34 100644 --- a/howtos/howto4/include/howto4/options/DefaultOptions.h +++ b/howtos/howto4/include/howto4/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto4 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for fields. struct field @@ -81,6 +85,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto4 diff --git a/howtos/howto4/include/howto4/options/ServerDefaultOptions.h b/howtos/howto4/include/howto4/options/ServerDefaultOptions.h index 9ed3563b8..6564c4037 100644 --- a/howtos/howto4/include/howto4/options/ServerDefaultOptions.h +++ b/howtos/howto4/include/howto4/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto5/include/howto5/Interface.h b/howtos/howto5/include/howto5/Interface.h index fc951a976..82e3aaea0 100644 --- a/howtos/howto5/include/howto5/Interface.h +++ b/howtos/howto5/include/howto5/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto5/include/howto5/InterfaceCommon.h b/howtos/howto5/include/howto5/InterfaceCommon.h index 1212ed349..1316191e7 100644 --- a/howtos/howto5/include/howto5/InterfaceCommon.h +++ b/howtos/howto5/include/howto5/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/MsgId.h b/howtos/howto5/include/howto5/MsgId.h index 015a94caa..4d9ca650a 100644 --- a/howtos/howto5/include/howto5/MsgId.h +++ b/howtos/howto5/include/howto5/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto5/include/howto5/Version.h b/howtos/howto5/include/howto5/Version.h index 1344663e3..c7a0c2de6 100644 --- a/howtos/howto5/include/howto5/Version.h +++ b/howtos/howto5/include/howto5/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto5 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h b/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h index ac892cf8c..9377d55a3 100644 --- a/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto5/include/howto5/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto5::options::DefaultOptions as template parameter. /// @note Defined in howto5/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto5/include/howto5/dispatch/DispatchMessage.h b/howtos/howto5/include/howto5/dispatch/DispatchMessage.h index 6d631cdd8..b109981ad 100644 --- a/howtos/howto5/include/howto5/dispatch/DispatchMessage.h +++ b/howtos/howto5/include/howto5/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto5::options::DefaultOptions as template parameter. /// @note Defined in howto5/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h b/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h index eac22a150..62f31f2fa 100644 --- a/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto5/include/howto5/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto5::options::DefaultOptions as template parameter. /// @note Defined in howto5/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto5/include/howto5/field/FieldBase.h b/howtos/howto5/include/howto5/field/FieldBase.h index b57fbbf94..351d51c54 100644 --- a/howtos/howto5/include/howto5/field/FieldBase.h +++ b/howtos/howto5/include/howto5/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto5/include/howto5/field/InterfaceFlags.h b/howtos/howto5/include/howto5/field/InterfaceFlags.h index 0671275f2..8af1b43cb 100644 --- a/howtos/howto5/include/howto5/field/InterfaceFlags.h +++ b/howtos/howto5/include/howto5/field/InterfaceFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "InterfaceFlags" field. diff --git a/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h b/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h index 037c0747f..af61422dd 100644 --- a/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h +++ b/howtos/howto5/include/howto5/field/InterfaceFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -33,12 +33,12 @@ struct InterfaceFlagsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/howtos/howto5/include/howto5/field/MsgId.h b/howtos/howto5/include/howto5/field/MsgId.h index 1a9ec36d8..ac8f196e1 100644 --- a/howtos/howto5/include/howto5/field/MsgId.h +++ b/howtos/howto5/include/howto5/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto5/include/howto5/field/MsgIdCommon.h b/howtos/howto5/include/howto5/field/MsgIdCommon.h index a68f760e5..ffe32a27b 100644 --- a/howtos/howto5/include/howto5/field/MsgIdCommon.h +++ b/howtos/howto5/include/howto5/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/field/Version.h b/howtos/howto5/include/howto5/field/Version.h index 4d58f2c91..58627d19d 100644 --- a/howtos/howto5/include/howto5/field/Version.h +++ b/howtos/howto5/include/howto5/field/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Version" field. diff --git a/howtos/howto5/include/howto5/field/VersionCommon.h b/howtos/howto5/include/howto5/field/VersionCommon.h index 7c4a0186a..0411bfd6f 100644 --- a/howtos/howto5/include/howto5/field/VersionCommon.h +++ b/howtos/howto5/include/howto5/field/VersionCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/field/VersionWithFlags.h b/howtos/howto5/include/howto5/field/VersionWithFlags.h index 05e0d8406..58a9211ad 100644 --- a/howtos/howto5/include/howto5/field/VersionWithFlags.h +++ b/howtos/howto5/include/howto5/field/VersionWithFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "VersionWithFlags" field. diff --git a/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h b/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h index ed929386d..076cc6ae1 100644 --- a/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h +++ b/howtos/howto5/include/howto5/field/VersionWithFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/frame/Frame.h b/howtos/howto5/include/howto5/frame/Frame.h index 4d41268e3..d2d9ce4ea 100644 --- a/howtos/howto5/include/howto5/frame/Frame.h +++ b/howtos/howto5/include/howto5/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto5/include/howto5/frame/FrameCommon.h b/howtos/howto5/include/howto5/frame/FrameCommon.h index 9c0b7e027..ca47da774 100644 --- a/howtos/howto5/include/howto5/frame/FrameCommon.h +++ b/howtos/howto5/include/howto5/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/input/AllMessages.h b/howtos/howto5/include/howto5/input/AllMessages.h index 6a48b6a00..c95ff311a 100644 --- a/howtos/howto5/include/howto5/input/AllMessages.h +++ b/howtos/howto5/include/howto5/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto5/include/howto5/input/ClientInputMessages.h b/howtos/howto5/include/howto5/input/ClientInputMessages.h index 6d471ebb9..f64e9a40c 100644 --- a/howtos/howto5/include/howto5/input/ClientInputMessages.h +++ b/howtos/howto5/include/howto5/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto5/include/howto5/input/ServerInputMessages.h b/howtos/howto5/include/howto5/input/ServerInputMessages.h index 9b07221e0..d641a722a 100644 --- a/howtos/howto5/include/howto5/input/ServerInputMessages.h +++ b/howtos/howto5/include/howto5/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto5/include/howto5/message/Msg1.h b/howtos/howto5/include/howto5/message/Msg1.h index 31d066bff..2880615b5 100644 --- a/howtos/howto5/include/howto5/message/Msg1.h +++ b/howtos/howto5/include/howto5/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto5/include/howto5/message/Msg1Common.h b/howtos/howto5/include/howto5/message/Msg1Common.h index 77abf402c..6f25caa33 100644 --- a/howtos/howto5/include/howto5/message/Msg1Common.h +++ b/howtos/howto5/include/howto5/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/message/Msg2.h b/howtos/howto5/include/howto5/message/Msg2.h index 9ca65fcf0..960207abf 100644 --- a/howtos/howto5/include/howto5/message/Msg2.h +++ b/howtos/howto5/include/howto5/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto5/include/howto5/message/Msg2Common.h b/howtos/howto5/include/howto5/message/Msg2Common.h index b20c4a262..6c4d99422 100644 --- a/howtos/howto5/include/howto5/message/Msg2Common.h +++ b/howtos/howto5/include/howto5/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h b/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h index a253a4e2c..0c8c1d77a 100644 --- a/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto5/include/howto5/options/ClientDefaultOptions.h b/howtos/howto5/include/howto5/options/ClientDefaultOptions.h index 619878259..2aea44247 100644 --- a/howtos/howto5/include/howto5/options/ClientDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h b/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h index 327d785b1..90646e083 100644 --- a/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto5/include/howto5/options/DefaultOptions.h b/howtos/howto5/include/howto5/options/DefaultOptions.h index 48465bc40..2b012907f 100644 --- a/howtos/howto5/include/howto5/options/DefaultOptions.h +++ b/howtos/howto5/include/howto5/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto5 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -59,6 +63,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto5 diff --git a/howtos/howto5/include/howto5/options/ServerDefaultOptions.h b/howtos/howto5/include/howto5/options/ServerDefaultOptions.h index 16e2505b7..d2356acdc 100644 --- a/howtos/howto5/include/howto5/options/ServerDefaultOptions.h +++ b/howtos/howto5/include/howto5/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto6/include/howto6/Interface.h b/howtos/howto6/include/howto6/Interface.h index 691e78fdb..2dd2123a3 100644 --- a/howtos/howto6/include/howto6/Interface.h +++ b/howtos/howto6/include/howto6/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto6/include/howto6/InterfaceCommon.h b/howtos/howto6/include/howto6/InterfaceCommon.h index d8ed8d41d..45324e950 100644 --- a/howtos/howto6/include/howto6/InterfaceCommon.h +++ b/howtos/howto6/include/howto6/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/MsgId.h b/howtos/howto6/include/howto6/MsgId.h index 4678df6c6..6b616daea 100644 --- a/howtos/howto6/include/howto6/MsgId.h +++ b/howtos/howto6/include/howto6/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto6/include/howto6/Version.h b/howtos/howto6/include/howto6/Version.h index b114bb6ae..36b19d47e 100644 --- a/howtos/howto6/include/howto6/Version.h +++ b/howtos/howto6/include/howto6/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto6 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h b/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h index aae363177..ad5cfbd33 100644 --- a/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto6/include/howto6/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto6::options::DefaultOptions as template parameter. /// @note Defined in howto6/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto6/include/howto6/dispatch/DispatchMessage.h b/howtos/howto6/include/howto6/dispatch/DispatchMessage.h index e8255c491..983ab9d25 100644 --- a/howtos/howto6/include/howto6/dispatch/DispatchMessage.h +++ b/howtos/howto6/include/howto6/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto6::options::DefaultOptions as template parameter. /// @note Defined in howto6/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h b/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h index d7820d64d..0f71e0514 100644 --- a/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto6/include/howto6/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto6::options::DefaultOptions as template parameter. /// @note Defined in howto6/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto6/include/howto6/field/ChecksumType.h b/howtos/howto6/include/howto6/field/ChecksumType.h index 5c86161f6..74d4eddfa 100644 --- a/howtos/howto6/include/howto6/field/ChecksumType.h +++ b/howtos/howto6/include/howto6/field/ChecksumType.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "ChecksumType" field. diff --git a/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h b/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h index b7ddacf7c..eb7f0f70d 100644 --- a/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h +++ b/howtos/howto6/include/howto6/field/ChecksumTypeCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/field/FieldBase.h b/howtos/howto6/include/howto6/field/FieldBase.h index 501a3aaa1..b8c4f87d2 100644 --- a/howtos/howto6/include/howto6/field/FieldBase.h +++ b/howtos/howto6/include/howto6/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto6/include/howto6/field/MsgId.h b/howtos/howto6/include/howto6/field/MsgId.h index 7d0bd32c9..f83839eff 100644 --- a/howtos/howto6/include/howto6/field/MsgId.h +++ b/howtos/howto6/include/howto6/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto6/include/howto6/field/MsgIdCommon.h b/howtos/howto6/include/howto6/field/MsgIdCommon.h index a5754b605..ce151a0d6 100644 --- a/howtos/howto6/include/howto6/field/MsgIdCommon.h +++ b/howtos/howto6/include/howto6/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/frame/Frame.h b/howtos/howto6/include/howto6/frame/Frame.h index 3b8e0a52c..94cee96b9 100644 --- a/howtos/howto6/include/howto6/frame/Frame.h +++ b/howtos/howto6/include/howto6/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto6/include/howto6/frame/FrameCommon.h b/howtos/howto6/include/howto6/frame/FrameCommon.h index 7c551f296..b7dc852fc 100644 --- a/howtos/howto6/include/howto6/frame/FrameCommon.h +++ b/howtos/howto6/include/howto6/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/input/AllMessages.h b/howtos/howto6/include/howto6/input/AllMessages.h index 69455e944..df8ef045b 100644 --- a/howtos/howto6/include/howto6/input/AllMessages.h +++ b/howtos/howto6/include/howto6/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto6/include/howto6/input/ClientInputMessages.h b/howtos/howto6/include/howto6/input/ClientInputMessages.h index 61c527719..b318f2896 100644 --- a/howtos/howto6/include/howto6/input/ClientInputMessages.h +++ b/howtos/howto6/include/howto6/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto6/include/howto6/input/ServerInputMessages.h b/howtos/howto6/include/howto6/input/ServerInputMessages.h index 7b6086ed3..a4e5d9f4e 100644 --- a/howtos/howto6/include/howto6/input/ServerInputMessages.h +++ b/howtos/howto6/include/howto6/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto6/include/howto6/message/Msg1.h b/howtos/howto6/include/howto6/message/Msg1.h index 7a4ded7b6..b8660e3ea 100644 --- a/howtos/howto6/include/howto6/message/Msg1.h +++ b/howtos/howto6/include/howto6/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto6/include/howto6/message/Msg1Common.h b/howtos/howto6/include/howto6/message/Msg1Common.h index a572f49a2..1b84b8c98 100644 --- a/howtos/howto6/include/howto6/message/Msg1Common.h +++ b/howtos/howto6/include/howto6/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/message/Msg2.h b/howtos/howto6/include/howto6/message/Msg2.h index 39b756446..67a7ac87c 100644 --- a/howtos/howto6/include/howto6/message/Msg2.h +++ b/howtos/howto6/include/howto6/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto6/include/howto6/message/Msg2Common.h b/howtos/howto6/include/howto6/message/Msg2Common.h index ee2d73103..66a7dbb67 100644 --- a/howtos/howto6/include/howto6/message/Msg2Common.h +++ b/howtos/howto6/include/howto6/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/message/Msg3.h b/howtos/howto6/include/howto6/message/Msg3.h index 3f704ecea..a32939340 100644 --- a/howtos/howto6/include/howto6/message/Msg3.h +++ b/howtos/howto6/include/howto6/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto6/include/howto6/message/Msg3Common.h b/howtos/howto6/include/howto6/message/Msg3Common.h index 34ed767ec..04bff8ba6 100644 --- a/howtos/howto6/include/howto6/message/Msg3Common.h +++ b/howtos/howto6/include/howto6/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h b/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h index 1aa1171ba..e0f044cdd 100644 --- a/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto6/include/howto6/options/ClientDefaultOptions.h b/howtos/howto6/include/howto6/options/ClientDefaultOptions.h index 6400c144f..e4e835316 100644 --- a/howtos/howto6/include/howto6/options/ClientDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h b/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h index 3dda7c2e0..38cfc500c 100644 --- a/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto6/include/howto6/options/DefaultOptions.h b/howtos/howto6/include/howto6/options/DefaultOptions.h index c80f763c0..db5c8a0b6 100644 --- a/howtos/howto6/include/howto6/options/DefaultOptions.h +++ b/howtos/howto6/include/howto6/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto6 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -59,6 +63,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto6 diff --git a/howtos/howto6/include/howto6/options/ServerDefaultOptions.h b/howtos/howto6/include/howto6/options/ServerDefaultOptions.h index af3ecd09c..b405563db 100644 --- a/howtos/howto6/include/howto6/options/ServerDefaultOptions.h +++ b/howtos/howto6/include/howto6/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto7/include/howto7/Message.h b/howtos/howto7/include/howto7/Message.h index 10f073945..7fe2a9169 100644 --- a/howtos/howto7/include/howto7/Message.h +++ b/howtos/howto7/include/howto7/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto7/include/howto7/MsgId.h b/howtos/howto7/include/howto7/MsgId.h index de1167521..4fa1f4778 100644 --- a/howtos/howto7/include/howto7/MsgId.h +++ b/howtos/howto7/include/howto7/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto7/include/howto7/Version.h b/howtos/howto7/include/howto7/Version.h index e2c7bb47e..248b122a4 100644 --- a/howtos/howto7/include/howto7/Version.h +++ b/howtos/howto7/include/howto7/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto7 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h b/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h index 10ef86ea3..3629a4339 100644 --- a/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto7/include/howto7/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto7::options::DefaultOptions as template parameter. /// @note Defined in howto7/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto7/include/howto7/dispatch/DispatchMessage.h b/howtos/howto7/include/howto7/dispatch/DispatchMessage.h index 706bbf8d4..1ee50ff5a 100644 --- a/howtos/howto7/include/howto7/dispatch/DispatchMessage.h +++ b/howtos/howto7/include/howto7/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto7::options::DefaultOptions as template parameter. /// @note Defined in howto7/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h b/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h index d5baf1ade..eb63f604a 100644 --- a/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto7/include/howto7/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto7::options::DefaultOptions as template parameter. /// @note Defined in howto7/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto7/include/howto7/field/FieldBase.h b/howtos/howto7/include/howto7/field/FieldBase.h index fa841fe5e..b2c43397e 100644 --- a/howtos/howto7/include/howto7/field/FieldBase.h +++ b/howtos/howto7/include/howto7/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto7/include/howto7/field/MsgId.h b/howtos/howto7/include/howto7/field/MsgId.h index e67c21fef..5e82848fb 100644 --- a/howtos/howto7/include/howto7/field/MsgId.h +++ b/howtos/howto7/include/howto7/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto7/include/howto7/field/MsgIdCommon.h b/howtos/howto7/include/howto7/field/MsgIdCommon.h index f87d5ebf9..48ab7aa0b 100644 --- a/howtos/howto7/include/howto7/field/MsgIdCommon.h +++ b/howtos/howto7/include/howto7/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/frame/Frame.h b/howtos/howto7/include/howto7/frame/Frame.h index bd7cc619a..be66b3ba5 100644 --- a/howtos/howto7/include/howto7/frame/Frame.h +++ b/howtos/howto7/include/howto7/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto7/include/howto7/frame/FrameCommon.h b/howtos/howto7/include/howto7/frame/FrameCommon.h index d84f25780..108f84b59 100644 --- a/howtos/howto7/include/howto7/frame/FrameCommon.h +++ b/howtos/howto7/include/howto7/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/input/AllMessages.h b/howtos/howto7/include/howto7/input/AllMessages.h index 91a159f3d..3ee71dd1a 100644 --- a/howtos/howto7/include/howto7/input/AllMessages.h +++ b/howtos/howto7/include/howto7/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto7/include/howto7/input/ClientInputMessages.h b/howtos/howto7/include/howto7/input/ClientInputMessages.h index e056536b3..a752404ba 100644 --- a/howtos/howto7/include/howto7/input/ClientInputMessages.h +++ b/howtos/howto7/include/howto7/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto7/include/howto7/input/ServerInputMessages.h b/howtos/howto7/include/howto7/input/ServerInputMessages.h index 7b968a8d2..2a9cc76c8 100644 --- a/howtos/howto7/include/howto7/input/ServerInputMessages.h +++ b/howtos/howto7/include/howto7/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto7/include/howto7/message/Msg1.h b/howtos/howto7/include/howto7/message/Msg1.h index 022289acd..f0f1a133c 100644 --- a/howtos/howto7/include/howto7/message/Msg1.h +++ b/howtos/howto7/include/howto7/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto7/include/howto7/message/Msg1Common.h b/howtos/howto7/include/howto7/message/Msg1Common.h index 442289ba8..3b37e5419 100644 --- a/howtos/howto7/include/howto7/message/Msg1Common.h +++ b/howtos/howto7/include/howto7/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/message/Msg2.h b/howtos/howto7/include/howto7/message/Msg2.h index fd5a38bab..6ffbc7af4 100644 --- a/howtos/howto7/include/howto7/message/Msg2.h +++ b/howtos/howto7/include/howto7/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto7/include/howto7/message/Msg2Common.h b/howtos/howto7/include/howto7/message/Msg2Common.h index 807c19ec9..6399a2bc1 100644 --- a/howtos/howto7/include/howto7/message/Msg2Common.h +++ b/howtos/howto7/include/howto7/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/message/Msg3.h b/howtos/howto7/include/howto7/message/Msg3.h index bf9ed57a0..e6be6d5cc 100644 --- a/howtos/howto7/include/howto7/message/Msg3.h +++ b/howtos/howto7/include/howto7/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto7/include/howto7/message/Msg3Common.h b/howtos/howto7/include/howto7/message/Msg3Common.h index 62075877d..700e6e861 100644 --- a/howtos/howto7/include/howto7/message/Msg3Common.h +++ b/howtos/howto7/include/howto7/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h b/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h index 2daacfd0c..d0fc0c598 100644 --- a/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto7/include/howto7/options/ClientDefaultOptions.h b/howtos/howto7/include/howto7/options/ClientDefaultOptions.h index 9b314fec8..6b5ffa8c4 100644 --- a/howtos/howto7/include/howto7/options/ClientDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h b/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h index 70f6e09f1..80b561922 100644 --- a/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto7/include/howto7/options/DefaultOptions.h b/howtos/howto7/include/howto7/options/DefaultOptions.h index 14f512d15..e558c100c 100644 --- a/howtos/howto7/include/howto7/options/DefaultOptions.h +++ b/howtos/howto7/include/howto7/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto7 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -59,6 +63,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto7 diff --git a/howtos/howto7/include/howto7/options/ServerDefaultOptions.h b/howtos/howto7/include/howto7/options/ServerDefaultOptions.h index 38b420a06..0e4776fa5 100644 --- a/howtos/howto7/include/howto7/options/ServerDefaultOptions.h +++ b/howtos/howto7/include/howto7/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto8/include/howto8/Interface.h b/howtos/howto8/include/howto8/Interface.h index 09d678fc6..be21700dd 100644 --- a/howtos/howto8/include/howto8/Interface.h +++ b/howtos/howto8/include/howto8/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/howtos/howto8/include/howto8/InterfaceCommon.h b/howtos/howto8/include/howto8/InterfaceCommon.h index 74f3d89ae..19b07272f 100644 --- a/howtos/howto8/include/howto8/InterfaceCommon.h +++ b/howtos/howto8/include/howto8/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/MsgId.h b/howtos/howto8/include/howto8/MsgId.h index 3bee375f9..d2b98d248 100644 --- a/howtos/howto8/include/howto8/MsgId.h +++ b/howtos/howto8/include/howto8/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto8/include/howto8/Version.h b/howtos/howto8/include/howto8/Version.h index 0747d8f17..41d993b09 100644 --- a/howtos/howto8/include/howto8/Version.h +++ b/howtos/howto8/include/howto8/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto8 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h b/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h index 89218622e..97c9a801f 100644 --- a/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto8/include/howto8/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto8::options::DefaultOptions as template parameter. /// @note Defined in howto8/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto8/include/howto8/dispatch/DispatchMessage.h b/howtos/howto8/include/howto8/dispatch/DispatchMessage.h index d6d45fa53..c1de0251e 100644 --- a/howtos/howto8/include/howto8/dispatch/DispatchMessage.h +++ b/howtos/howto8/include/howto8/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto8::options::DefaultOptions as template parameter. /// @note Defined in howto8/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h b/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h index 7fe315b11..155f53d7e 100644 --- a/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto8/include/howto8/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto8::options::DefaultOptions as template parameter. /// @note Defined in howto8/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto8/include/howto8/field/FieldBase.h b/howtos/howto8/include/howto8/field/FieldBase.h index 40109443b..af5fd87e2 100644 --- a/howtos/howto8/include/howto8/field/FieldBase.h +++ b/howtos/howto8/include/howto8/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto8/include/howto8/field/Flags.h b/howtos/howto8/include/howto8/field/Flags.h index 3fb7c48f9..a67b57ef4 100644 --- a/howtos/howto8/include/howto8/field/Flags.h +++ b/howtos/howto8/include/howto8/field/Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Flags" field. diff --git a/howtos/howto8/include/howto8/field/FlagsCommon.h b/howtos/howto8/include/howto8/field/FlagsCommon.h index f50d39644..facdc8e63 100644 --- a/howtos/howto8/include/howto8/field/FlagsCommon.h +++ b/howtos/howto8/include/howto8/field/FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -33,12 +33,12 @@ struct FlagsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/howtos/howto8/include/howto8/field/MsgId.h b/howtos/howto8/include/howto8/field/MsgId.h index 9abf2d38d..fca7fee23 100644 --- a/howtos/howto8/include/howto8/field/MsgId.h +++ b/howtos/howto8/include/howto8/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto8/include/howto8/field/MsgIdCommon.h b/howtos/howto8/include/howto8/field/MsgIdCommon.h index e24d7d7ea..027fa3631 100644 --- a/howtos/howto8/include/howto8/field/MsgIdCommon.h +++ b/howtos/howto8/include/howto8/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/frame/Frame.h b/howtos/howto8/include/howto8/frame/Frame.h index 1d3b89ce1..893adc3fa 100644 --- a/howtos/howto8/include/howto8/frame/Frame.h +++ b/howtos/howto8/include/howto8/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto8/include/howto8/frame/FrameCommon.h b/howtos/howto8/include/howto8/frame/FrameCommon.h index 88ed1e443..bd7c7109f 100644 --- a/howtos/howto8/include/howto8/frame/FrameCommon.h +++ b/howtos/howto8/include/howto8/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -80,12 +80,12 @@ struct FrameLayersCommon static const char* Map[] = { "HasFlags" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/howtos/howto8/include/howto8/input/AllMessages.h b/howtos/howto8/include/howto8/input/AllMessages.h index b44ad1531..53c0f382b 100644 --- a/howtos/howto8/include/howto8/input/AllMessages.h +++ b/howtos/howto8/include/howto8/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto8/include/howto8/input/ClientInputMessages.h b/howtos/howto8/include/howto8/input/ClientInputMessages.h index c4a7d39f0..90d314a19 100644 --- a/howtos/howto8/include/howto8/input/ClientInputMessages.h +++ b/howtos/howto8/include/howto8/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto8/include/howto8/input/ServerInputMessages.h b/howtos/howto8/include/howto8/input/ServerInputMessages.h index c67829837..cda649947 100644 --- a/howtos/howto8/include/howto8/input/ServerInputMessages.h +++ b/howtos/howto8/include/howto8/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto8/include/howto8/message/Msg1.h b/howtos/howto8/include/howto8/message/Msg1.h index 96aa9a8de..5396dd33a 100644 --- a/howtos/howto8/include/howto8/message/Msg1.h +++ b/howtos/howto8/include/howto8/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto8/include/howto8/message/Msg1Common.h b/howtos/howto8/include/howto8/message/Msg1Common.h index 83327d839..b74ec08d2 100644 --- a/howtos/howto8/include/howto8/message/Msg1Common.h +++ b/howtos/howto8/include/howto8/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/message/Msg2.h b/howtos/howto8/include/howto8/message/Msg2.h index 240cd44ed..2f9923536 100644 --- a/howtos/howto8/include/howto8/message/Msg2.h +++ b/howtos/howto8/include/howto8/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto8/include/howto8/message/Msg2Common.h b/howtos/howto8/include/howto8/message/Msg2Common.h index c7227626a..4774330b7 100644 --- a/howtos/howto8/include/howto8/message/Msg2Common.h +++ b/howtos/howto8/include/howto8/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h b/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h index a38b30e28..e13750f85 100644 --- a/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto8/include/howto8/options/ClientDefaultOptions.h b/howtos/howto8/include/howto8/options/ClientDefaultOptions.h index 7e60dceb2..7319e9008 100644 --- a/howtos/howto8/include/howto8/options/ClientDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h b/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h index cfba360c1..a68d90274 100644 --- a/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto8/include/howto8/options/DefaultOptions.h b/howtos/howto8/include/howto8/options/DefaultOptions.h index 9de7d3216..35568e098 100644 --- a/howtos/howto8/include/howto8/options/DefaultOptions.h +++ b/howtos/howto8/include/howto8/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto8 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -43,6 +47,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto8 diff --git a/howtos/howto8/include/howto8/options/ServerDefaultOptions.h b/howtos/howto8/include/howto8/options/ServerDefaultOptions.h index 00248044a..205eac4fd 100644 --- a/howtos/howto8/include/howto8/options/ServerDefaultOptions.h +++ b/howtos/howto8/include/howto8/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/howtos/howto9/include/howto9/Message.h b/howtos/howto9/include/howto9/Message.h index 954abaff2..d352293cd 100644 --- a/howtos/howto9/include/howto9/Message.h +++ b/howtos/howto9/include/howto9/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/howtos/howto9/include/howto9/MsgId.h b/howtos/howto9/include/howto9/MsgId.h index 559b1f4d6..c974666c5 100644 --- a/howtos/howto9/include/howto9/MsgId.h +++ b/howtos/howto9/include/howto9/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/howtos/howto9/include/howto9/Version.h b/howtos/howto9/include/howto9/Version.h index d8891fbb4..30379ca4b 100644 --- a/howtos/howto9/include/howto9/Version.h +++ b/howtos/howto9/include/howto9/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace howto9 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h b/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h index 22cead2cb..4359ca530 100644 --- a/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h +++ b/howtos/howto9/include/howto9/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref howto9::options::DefaultOptions as template parameter. /// @note Defined in howto9/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto9/include/howto9/dispatch/DispatchMessage.h b/howtos/howto9/include/howto9/dispatch/DispatchMessage.h index affab5a0e..b8a651ccb 100644 --- a/howtos/howto9/include/howto9/dispatch/DispatchMessage.h +++ b/howtos/howto9/include/howto9/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref howto9::options::DefaultOptions as template parameter. /// @note Defined in howto9/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h b/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h index 45640aee9..a41fb37bd 100644 --- a/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h +++ b/howtos/howto9/include/howto9/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref howto9::options::DefaultOptions as template parameter. /// @note Defined in howto9/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/howtos/howto9/include/howto9/field/FieldBase.h b/howtos/howto9/include/howto9/field/FieldBase.h index b6e7a08d4..3c2fe0fa6 100644 --- a/howtos/howto9/include/howto9/field/FieldBase.h +++ b/howtos/howto9/include/howto9/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/howtos/howto9/include/howto9/field/MsgId.h b/howtos/howto9/include/howto9/field/MsgId.h index d03cf5ec3..edbb3885b 100644 --- a/howtos/howto9/include/howto9/field/MsgId.h +++ b/howtos/howto9/include/howto9/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/howtos/howto9/include/howto9/field/MsgIdCommon.h b/howtos/howto9/include/howto9/field/MsgIdCommon.h index aea4870c6..e48c69494 100644 --- a/howtos/howto9/include/howto9/field/MsgIdCommon.h +++ b/howtos/howto9/include/howto9/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/field/SizeField.h b/howtos/howto9/include/howto9/field/SizeField.h index e1b75ef91..0a9fd6d65 100644 --- a/howtos/howto9/include/howto9/field/SizeField.h +++ b/howtos/howto9/include/howto9/field/SizeField.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "SizeField" field. diff --git a/howtos/howto9/include/howto9/field/SizeFieldCommon.h b/howtos/howto9/include/howto9/field/SizeFieldCommon.h index 04d140e28..c05ff3d16 100644 --- a/howtos/howto9/include/howto9/field/SizeFieldCommon.h +++ b/howtos/howto9/include/howto9/field/SizeFieldCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/field/SyncField.h b/howtos/howto9/include/howto9/field/SyncField.h index 6e1a18e7d..9bf709039 100644 --- a/howtos/howto9/include/howto9/field/SyncField.h +++ b/howtos/howto9/include/howto9/field/SyncField.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "SyncField" field. diff --git a/howtos/howto9/include/howto9/field/SyncFieldCommon.h b/howtos/howto9/include/howto9/field/SyncFieldCommon.h index 8c5a4dcbf..84f360f5e 100644 --- a/howtos/howto9/include/howto9/field/SyncFieldCommon.h +++ b/howtos/howto9/include/howto9/field/SyncFieldCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/frame/Frame.h b/howtos/howto9/include/howto9/frame/Frame.h index 7eeb53458..813581b82 100644 --- a/howtos/howto9/include/howto9/frame/Frame.h +++ b/howtos/howto9/include/howto9/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/howtos/howto9/include/howto9/frame/FrameCommon.h b/howtos/howto9/include/howto9/frame/FrameCommon.h index bfe1b309e..e89d2cc6f 100644 --- a/howtos/howto9/include/howto9/frame/FrameCommon.h +++ b/howtos/howto9/include/howto9/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/input/AllMessages.h b/howtos/howto9/include/howto9/input/AllMessages.h index b8dee8dd9..e82e4a358 100644 --- a/howtos/howto9/include/howto9/input/AllMessages.h +++ b/howtos/howto9/include/howto9/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/howtos/howto9/include/howto9/input/ClientInputMessages.h b/howtos/howto9/include/howto9/input/ClientInputMessages.h index 2016b2dea..693d4d009 100644 --- a/howtos/howto9/include/howto9/input/ClientInputMessages.h +++ b/howtos/howto9/include/howto9/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/howtos/howto9/include/howto9/input/ServerInputMessages.h b/howtos/howto9/include/howto9/input/ServerInputMessages.h index 23a932d6e..6a9bba400 100644 --- a/howtos/howto9/include/howto9/input/ServerInputMessages.h +++ b/howtos/howto9/include/howto9/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/howtos/howto9/include/howto9/message/Msg1.h b/howtos/howto9/include/howto9/message/Msg1.h index 6e31cf218..5166288ee 100644 --- a/howtos/howto9/include/howto9/message/Msg1.h +++ b/howtos/howto9/include/howto9/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/howtos/howto9/include/howto9/message/Msg1Common.h b/howtos/howto9/include/howto9/message/Msg1Common.h index a18932d61..97d06f240 100644 --- a/howtos/howto9/include/howto9/message/Msg1Common.h +++ b/howtos/howto9/include/howto9/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/message/Msg2.h b/howtos/howto9/include/howto9/message/Msg2.h index 5fbd7a836..fd078179d 100644 --- a/howtos/howto9/include/howto9/message/Msg2.h +++ b/howtos/howto9/include/howto9/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/howtos/howto9/include/howto9/message/Msg2Common.h b/howtos/howto9/include/howto9/message/Msg2Common.h index a440fb9fe..adf56ebcc 100644 --- a/howtos/howto9/include/howto9/message/Msg2Common.h +++ b/howtos/howto9/include/howto9/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/message/Msg3.h b/howtos/howto9/include/howto9/message/Msg3.h index 4d2f86551..722d0f417 100644 --- a/howtos/howto9/include/howto9/message/Msg3.h +++ b/howtos/howto9/include/howto9/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/howtos/howto9/include/howto9/message/Msg3Common.h b/howtos/howto9/include/howto9/message/Msg3Common.h index 010fd44bd..6d82255a4 100644 --- a/howtos/howto9/include/howto9/message/Msg3Common.h +++ b/howtos/howto9/include/howto9/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h b/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h index 1ae0ccadd..2fcd373f3 100644 --- a/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/howtos/howto9/include/howto9/options/ClientDefaultOptions.h b/howtos/howto9/include/howto9/options/ClientDefaultOptions.h index b5127abdb..9cf3180fe 100644 --- a/howtos/howto9/include/howto9/options/ClientDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h b/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h index 677b07bb5..838d97b1b 100644 --- a/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/howtos/howto9/include/howto9/options/DefaultOptions.h b/howtos/howto9/include/howto9/options/DefaultOptions.h index 46e565aaa..7f937c6f7 100644 --- a/howtos/howto9/include/howto9/options/DefaultOptions.h +++ b/howtos/howto9/include/howto9/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace howto9 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -59,6 +63,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace howto9 diff --git a/howtos/howto9/include/howto9/options/ServerDefaultOptions.h b/howtos/howto9/include/howto9/options/ServerDefaultOptions.h index ca9785d5d..1ceb9c530 100644 --- a/howtos/howto9/include/howto9/options/ServerDefaultOptions.h +++ b/howtos/howto9/include/howto9/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial1/include/tutorial1/Message.h b/tutorials/tutorial1/include/tutorial1/Message.h index 417bfb92b..9787ebe79 100644 --- a/tutorials/tutorial1/include/tutorial1/Message.h +++ b/tutorials/tutorial1/include/tutorial1/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial1/include/tutorial1/MsgId.h b/tutorials/tutorial1/include/tutorial1/MsgId.h index e61c8eb6a..cda1ff4a4 100644 --- a/tutorials/tutorial1/include/tutorial1/MsgId.h +++ b/tutorials/tutorial1/include/tutorial1/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial1/include/tutorial1/Version.h b/tutorials/tutorial1/include/tutorial1/Version.h index f15485dc9..6682c079d 100644 --- a/tutorials/tutorial1/include/tutorial1/Version.h +++ b/tutorials/tutorial1/include/tutorial1/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial1 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h index 92f2b4da0..606f59a5e 100644 --- a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial1::options::DefaultOptions as template parameter. /// @note Defined in tutorial1/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h index 59f3aa1dd..147d24b45 100644 --- a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h +++ b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial1::options::DefaultOptions as template parameter. /// @note Defined in tutorial1/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h index 5cd424d20..f7f4161a5 100644 --- a/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial1/include/tutorial1/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial1::options::DefaultOptions as template parameter. /// @note Defined in tutorial1/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial1/include/tutorial1/field/FieldBase.h b/tutorials/tutorial1/include/tutorial1/field/FieldBase.h index 640b104cb..2d3dd2c30 100644 --- a/tutorials/tutorial1/include/tutorial1/field/FieldBase.h +++ b/tutorials/tutorial1/include/tutorial1/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial1/include/tutorial1/field/MsgId.h b/tutorials/tutorial1/include/tutorial1/field/MsgId.h index dd5c53f7b..2cc84426a 100644 --- a/tutorials/tutorial1/include/tutorial1/field/MsgId.h +++ b/tutorials/tutorial1/include/tutorial1/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h b/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h index 4e1231acd..d9d9da218 100644 --- a/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h +++ b/tutorials/tutorial1/include/tutorial1/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/frame/Frame.h b/tutorials/tutorial1/include/tutorial1/frame/Frame.h index 42416d418..4af423839 100644 --- a/tutorials/tutorial1/include/tutorial1/frame/Frame.h +++ b/tutorials/tutorial1/include/tutorial1/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h b/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h index b62ab5ee7..926632624 100644 --- a/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h +++ b/tutorials/tutorial1/include/tutorial1/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/input/AllMessages.h b/tutorials/tutorial1/include/tutorial1/input/AllMessages.h index 1f26d5e2b..87b3e60fc 100644 --- a/tutorials/tutorial1/include/tutorial1/input/AllMessages.h +++ b/tutorials/tutorial1/include/tutorial1/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h b/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h index c86882214..7f3293425 100644 --- a/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h +++ b/tutorials/tutorial1/include/tutorial1/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h b/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h index 9366481ea..f683a1120 100644 --- a/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h +++ b/tutorials/tutorial1/include/tutorial1/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg1.h b/tutorials/tutorial1/include/tutorial1/message/Msg1.h index 5d5afeffd..f22b54deb 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg1.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h b/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h index 064e5398f..e19c993b0 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg2.h b/tutorials/tutorial1/include/tutorial1/message/Msg2.h index 90f2ebbbe..982590fbb 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg2.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h b/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h index 554cb3d9f..fd1cd98ba 100644 --- a/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h +++ b/tutorials/tutorial1/include/tutorial1/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h index 648ed97dc..9a950e0f7 100644 --- a/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h index 6961fb9eb..b9a998345 100644 --- a/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h index 0b4a64dc0..65733b7f0 100644 --- a/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h index 01f1aa495..056d5b464 100644 --- a/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial1 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -40,6 +44,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial1 diff --git a/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h b/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h index b8e620e38..adf5c0804 100644 --- a/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h +++ b/tutorials/tutorial1/include/tutorial1/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial10/include/tutorial10/Message.h b/tutorials/tutorial10/include/tutorial10/Message.h index d2bdace9d..02817d595 100644 --- a/tutorials/tutorial10/include/tutorial10/Message.h +++ b/tutorials/tutorial10/include/tutorial10/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial10/include/tutorial10/MsgId.h b/tutorials/tutorial10/include/tutorial10/MsgId.h index e875ac710..ac9ce8060 100644 --- a/tutorials/tutorial10/include/tutorial10/MsgId.h +++ b/tutorials/tutorial10/include/tutorial10/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial10/include/tutorial10/Version.h b/tutorials/tutorial10/include/tutorial10/Version.h index 065e909ed..0ff599aee 100644 --- a/tutorials/tutorial10/include/tutorial10/Version.h +++ b/tutorials/tutorial10/include/tutorial10/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial10 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h index 30a8042ef..94730e5a1 100644 --- a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -195,7 +195,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial10::options::DefaultOptions as template parameter. /// @note Defined in tutorial10/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h index 1ca5f5116..9073108c2 100644 --- a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h +++ b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -200,7 +200,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial10::options::DefaultOptions as template parameter. /// @note Defined in tutorial10/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h index a04697851..2d5e7403e 100644 --- a/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial10/include/tutorial10/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -195,7 +195,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial10::options::DefaultOptions as template parameter. /// @note Defined in tutorial10/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial10/include/tutorial10/field/FieldBase.h b/tutorials/tutorial10/include/tutorial10/field/FieldBase.h index 6a87729e0..d6b350827 100644 --- a/tutorials/tutorial10/include/tutorial10/field/FieldBase.h +++ b/tutorials/tutorial10/include/tutorial10/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial10/include/tutorial10/field/MsgId.h b/tutorials/tutorial10/include/tutorial10/field/MsgId.h index ef6b7479e..1ef1cf793 100644 --- a/tutorials/tutorial10/include/tutorial10/field/MsgId.h +++ b/tutorials/tutorial10/include/tutorial10/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h b/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h index 51db6ee9b..f53ef4558 100644 --- a/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h +++ b/tutorials/tutorial10/include/tutorial10/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/frame/Frame.h b/tutorials/tutorial10/include/tutorial10/frame/Frame.h index 7b24f8c10..7128d22c2 100644 --- a/tutorials/tutorial10/include/tutorial10/frame/Frame.h +++ b/tutorials/tutorial10/include/tutorial10/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h b/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h index 03df539c5..c260d4c9c 100644 --- a/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h +++ b/tutorials/tutorial10/include/tutorial10/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/input/AllMessages.h b/tutorials/tutorial10/include/tutorial10/input/AllMessages.h index 027943218..38981876d 100644 --- a/tutorials/tutorial10/include/tutorial10/input/AllMessages.h +++ b/tutorials/tutorial10/include/tutorial10/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h b/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h index 8e1c12015..812bb57d3 100644 --- a/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h +++ b/tutorials/tutorial10/include/tutorial10/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h b/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h index a8527000a..00d4caf13 100644 --- a/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h +++ b/tutorials/tutorial10/include/tutorial10/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg1.h b/tutorials/tutorial10/include/tutorial10/message/Msg1.h index 7bcb576e2..8e4e75202 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg1.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h index 0e88bd673..ba7ff8992 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg2.h b/tutorials/tutorial10/include/tutorial10/message/Msg2.h index 95cf11b01..96fe50e00 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg2.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h index b32f0c88b..b2a79fd85 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg3.h b/tutorials/tutorial10/include/tutorial10/message/Msg3.h index dc971adbd..14fe41128 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg3.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h index 39984d622..69c26d51c 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg4.h b/tutorials/tutorial10/include/tutorial10/message/Msg4.h index e134ce398..77794c231 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg4.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h index ca602777a..cda7efd9a 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg5.h b/tutorials/tutorial10/include/tutorial10/message/Msg5.h index f01af5ab7..f7312a130 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg5.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg5.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 5" message and its fields. diff --git a/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h b/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h index cc62f7728..1d4964650 100644 --- a/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h +++ b/tutorials/tutorial10/include/tutorial10/message/Msg5Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h index 88250357d..304e816f6 100644 --- a/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h index 33580e1af..68ffd4281 100644 --- a/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h index eb4be288f..a0cc2fe2c 100644 --- a/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h index 5563bd400..2d059e784 100644 --- a/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial10 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -54,6 +58,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial10 diff --git a/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h b/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h index 8d45e5933..0d3544711 100644 --- a/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h +++ b/tutorials/tutorial10/include/tutorial10/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial11/include/tutorial11/Message.h b/tutorials/tutorial11/include/tutorial11/Message.h index 4b072bde7..a0e6ee26d 100644 --- a/tutorials/tutorial11/include/tutorial11/Message.h +++ b/tutorials/tutorial11/include/tutorial11/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial11/include/tutorial11/MsgId.h b/tutorials/tutorial11/include/tutorial11/MsgId.h index 4edbb636a..dfd61de84 100644 --- a/tutorials/tutorial11/include/tutorial11/MsgId.h +++ b/tutorials/tutorial11/include/tutorial11/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial11/include/tutorial11/Version.h b/tutorials/tutorial11/include/tutorial11/Version.h index d943308e0..cbd917020 100644 --- a/tutorials/tutorial11/include/tutorial11/Version.h +++ b/tutorials/tutorial11/include/tutorial11/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial11 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h index a2fa75b4c..18978ea89 100644 --- a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial11::options::DefaultOptions as template parameter. /// @note Defined in tutorial11/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h index 633b38c74..f799400e0 100644 --- a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h +++ b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial11::options::DefaultOptions as template parameter. /// @note Defined in tutorial11/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h index 130fd0165..6cf774459 100644 --- a/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial11/include/tutorial11/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial11::options::DefaultOptions as template parameter. /// @note Defined in tutorial11/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial11/include/tutorial11/field/FieldBase.h b/tutorials/tutorial11/include/tutorial11/field/FieldBase.h index 0374a8767..2afe05b39 100644 --- a/tutorials/tutorial11/include/tutorial11/field/FieldBase.h +++ b/tutorials/tutorial11/include/tutorial11/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial11/include/tutorial11/field/MsgId.h b/tutorials/tutorial11/include/tutorial11/field/MsgId.h index a545c1934..e89ae183d 100644 --- a/tutorials/tutorial11/include/tutorial11/field/MsgId.h +++ b/tutorials/tutorial11/include/tutorial11/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h b/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h index 8e5f14a68..2d112869b 100644 --- a/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h +++ b/tutorials/tutorial11/include/tutorial11/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/frame/Frame.h b/tutorials/tutorial11/include/tutorial11/frame/Frame.h index fbb6b8872..d14eba696 100644 --- a/tutorials/tutorial11/include/tutorial11/frame/Frame.h +++ b/tutorials/tutorial11/include/tutorial11/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h b/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h index a6c234a3d..5a3a5d2c6 100644 --- a/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h +++ b/tutorials/tutorial11/include/tutorial11/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/input/AllMessages.h b/tutorials/tutorial11/include/tutorial11/input/AllMessages.h index 0facdd660..8ee8f3365 100644 --- a/tutorials/tutorial11/include/tutorial11/input/AllMessages.h +++ b/tutorials/tutorial11/include/tutorial11/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h b/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h index 7b81dc4d3..1599ee377 100644 --- a/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h +++ b/tutorials/tutorial11/include/tutorial11/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h b/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h index b2edba48e..22d286fe6 100644 --- a/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h +++ b/tutorials/tutorial11/include/tutorial11/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg1.h b/tutorials/tutorial11/include/tutorial11/message/Msg1.h index f8dfdc613..321ff4c4f 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg1.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h b/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h index 00c71596a..c828aaab4 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg2.h b/tutorials/tutorial11/include/tutorial11/message/Msg2.h index b2e0d971a..b585c974b 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg2.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h b/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h index 8288cbbd3..23bfc93ae 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg3.h b/tutorials/tutorial11/include/tutorial11/message/Msg3.h index 81cfa0a4b..aa661cb7a 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg3.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h b/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h index 7655579a3..0e89d1a2c 100644 --- a/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h +++ b/tutorials/tutorial11/include/tutorial11/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h index 664f617e9..5df0003c2 100644 --- a/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h index 20e7a8c48..ec3ec0a46 100644 --- a/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h index 3131037b7..7dd35674d 100644 --- a/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h index 47313d6cc..5faa91b61 100644 --- a/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial11 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -41,6 +45,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial11 diff --git a/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h b/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h index 1ba96bad6..4d02ca88f 100644 --- a/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h +++ b/tutorials/tutorial11/include/tutorial11/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial12/include/tutorial12/Message.h b/tutorials/tutorial12/include/tutorial12/Message.h index 610c969b4..e2723362d 100644 --- a/tutorials/tutorial12/include/tutorial12/Message.h +++ b/tutorials/tutorial12/include/tutorial12/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial12/include/tutorial12/MsgId.h b/tutorials/tutorial12/include/tutorial12/MsgId.h index 6450c9325..5fc8ab109 100644 --- a/tutorials/tutorial12/include/tutorial12/MsgId.h +++ b/tutorials/tutorial12/include/tutorial12/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial12/include/tutorial12/Version.h b/tutorials/tutorial12/include/tutorial12/Version.h index d4fc7e35d..73f5f9d06 100644 --- a/tutorials/tutorial12/include/tutorial12/Version.h +++ b/tutorials/tutorial12/include/tutorial12/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial12 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h index 64bbb141e..e9d4cba7e 100644 --- a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial12::options::DefaultOptions as template parameter. /// @note Defined in tutorial12/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h index dbc7e5bc7..e2d94f60a 100644 --- a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h +++ b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial12::options::DefaultOptions as template parameter. /// @note Defined in tutorial12/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h index c55484fa1..24f670f2e 100644 --- a/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial12/include/tutorial12/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial12::options::DefaultOptions as template parameter. /// @note Defined in tutorial12/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial12/include/tutorial12/field/FieldBase.h b/tutorials/tutorial12/include/tutorial12/field/FieldBase.h index 4f14f5fb5..78a83aede 100644 --- a/tutorials/tutorial12/include/tutorial12/field/FieldBase.h +++ b/tutorials/tutorial12/include/tutorial12/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial12/include/tutorial12/field/Length.h b/tutorials/tutorial12/include/tutorial12/field/Length.h index 6ad462ef5..f2ca41710 100644 --- a/tutorials/tutorial12/include/tutorial12/field/Length.h +++ b/tutorials/tutorial12/include/tutorial12/field/Length.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Length" field. diff --git a/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h b/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h index a9700aff8..0ee8f2236 100644 --- a/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h +++ b/tutorials/tutorial12/include/tutorial12/field/LengthCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/field/MsgId.h b/tutorials/tutorial12/include/tutorial12/field/MsgId.h index 321a2aa80..32e860662 100644 --- a/tutorials/tutorial12/include/tutorial12/field/MsgId.h +++ b/tutorials/tutorial12/include/tutorial12/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h b/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h index cc153a0db..e120e83b1 100644 --- a/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h +++ b/tutorials/tutorial12/include/tutorial12/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/frame/Frame.h b/tutorials/tutorial12/include/tutorial12/frame/Frame.h index 4ea47f94d..637e89772 100644 --- a/tutorials/tutorial12/include/tutorial12/frame/Frame.h +++ b/tutorials/tutorial12/include/tutorial12/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h b/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h index 6992ed68e..79fc48e50 100644 --- a/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h +++ b/tutorials/tutorial12/include/tutorial12/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/input/AllMessages.h b/tutorials/tutorial12/include/tutorial12/input/AllMessages.h index 0536ed78e..fb8a2e613 100644 --- a/tutorials/tutorial12/include/tutorial12/input/AllMessages.h +++ b/tutorials/tutorial12/include/tutorial12/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h b/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h index 9d0badf62..6886017b0 100644 --- a/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h +++ b/tutorials/tutorial12/include/tutorial12/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h b/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h index a4398f9e4..1ceae3667 100644 --- a/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h +++ b/tutorials/tutorial12/include/tutorial12/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg1.h b/tutorials/tutorial12/include/tutorial12/message/Msg1.h index ab9a1504c..0caa9dad0 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg1.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h b/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h index b2248a75a..7b566caf9 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg2.h b/tutorials/tutorial12/include/tutorial12/message/Msg2.h index ad7004b79..92ac615b9 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg2.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h b/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h index bbc33317c..4bebef261 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg3.h b/tutorials/tutorial12/include/tutorial12/message/Msg3.h index 661d60307..3c0e607fb 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg3.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h b/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h index f16b0b678..3302f4b57 100644 --- a/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h +++ b/tutorials/tutorial12/include/tutorial12/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h index c0b73b59f..f6440b817 100644 --- a/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h index 959d834a2..a8d8638d2 100644 --- a/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h index 4746f4baf..48d57aae4 100644 --- a/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h index 24938de6b..b249fc268 100644 --- a/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial12 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -94,6 +98,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial12 diff --git a/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h b/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h index f36352339..ebd9af27d 100644 --- a/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h +++ b/tutorials/tutorial12/include/tutorial12/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial13/include/tutorial13/Message.h b/tutorials/tutorial13/include/tutorial13/Message.h index e64f5775b..7c998fc04 100644 --- a/tutorials/tutorial13/include/tutorial13/Message.h +++ b/tutorials/tutorial13/include/tutorial13/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial13/include/tutorial13/MsgId.h b/tutorials/tutorial13/include/tutorial13/MsgId.h index e2d3e98b3..a324b5216 100644 --- a/tutorials/tutorial13/include/tutorial13/MsgId.h +++ b/tutorials/tutorial13/include/tutorial13/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial13/include/tutorial13/Version.h b/tutorials/tutorial13/include/tutorial13/Version.h index 154c98129..ec23c3e17 100644 --- a/tutorials/tutorial13/include/tutorial13/Version.h +++ b/tutorials/tutorial13/include/tutorial13/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial13 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h index 47407c95c..b66622e2b 100644 --- a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -217,7 +217,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial13::options::DefaultOptions as template parameter. /// @note Defined in tutorial13/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h index 94138dc5e..fe53e8ccb 100644 --- a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h +++ b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -217,7 +217,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial13::options::DefaultOptions as template parameter. /// @note Defined in tutorial13/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h index 9583387b9..06fa15909 100644 --- a/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial13/include/tutorial13/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -217,7 +217,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial13::options::DefaultOptions as template parameter. /// @note Defined in tutorial13/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial13/include/tutorial13/field/FieldBase.h b/tutorials/tutorial13/include/tutorial13/field/FieldBase.h index 8c15c7904..736649763 100644 --- a/tutorials/tutorial13/include/tutorial13/field/FieldBase.h +++ b/tutorials/tutorial13/include/tutorial13/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial13/include/tutorial13/field/MsgId.h b/tutorials/tutorial13/include/tutorial13/field/MsgId.h index fcc0d8732..7cd7d5d18 100644 --- a/tutorials/tutorial13/include/tutorial13/field/MsgId.h +++ b/tutorials/tutorial13/include/tutorial13/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h b/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h index cc6e8d4ed..e3c781d89 100644 --- a/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h +++ b/tutorials/tutorial13/include/tutorial13/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/frame/Frame.h b/tutorials/tutorial13/include/tutorial13/frame/Frame.h index e81e1671f..40422724b 100644 --- a/tutorials/tutorial13/include/tutorial13/frame/Frame.h +++ b/tutorials/tutorial13/include/tutorial13/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h b/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h index eb8716aa3..3bc962fcf 100644 --- a/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h +++ b/tutorials/tutorial13/include/tutorial13/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/input/AllMessages.h b/tutorials/tutorial13/include/tutorial13/input/AllMessages.h index b6869fcf3..51740ce38 100644 --- a/tutorials/tutorial13/include/tutorial13/input/AllMessages.h +++ b/tutorials/tutorial13/include/tutorial13/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h b/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h index cf17c9d0a..14f3eb67c 100644 --- a/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h +++ b/tutorials/tutorial13/include/tutorial13/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h b/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h index cdb360b4e..59b18eab8 100644 --- a/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h +++ b/tutorials/tutorial13/include/tutorial13/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h index 23f70f281..3cd23a554 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1 (1)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h index 8f21fbccd..b315aedff 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h index 1986bd8c0..8b1d31cbd 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1 (2)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h index 7ed8d8c8d..05506b67a 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h index a294d8ac6..37663cbd2 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1 (3)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h index 8881f47b4..2c1f90f00 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg1_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h index df8b831d5..de0b23a9d 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2 (1)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h index 141397532..777863362 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h index d0339529b..e25da61ed 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2 (2)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h index 1b17eb4fa..3131639a3 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h index b41564219..318b22936 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2 (3)" message and its fields. diff --git a/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h b/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h index 8dffb2808..1e33c875d 100644 --- a/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h +++ b/tutorials/tutorial13/include/tutorial13/message/Msg2_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h index 30891fa82..99e3be1d0 100644 --- a/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h index 6268ecfc0..d2657acc8 100644 --- a/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h index 02449d5e8..efdc5308b 100644 --- a/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h index c0414172f..3ba7aac98 100644 --- a/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial13 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -41,6 +45,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial13 diff --git a/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h b/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h index 3586871ad..ab42cc865 100644 --- a/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h +++ b/tutorials/tutorial13/include/tutorial13/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial14/include/tutorial14/Message.h b/tutorials/tutorial14/include/tutorial14/Message.h index 2c0ba207f..bf4514e50 100644 --- a/tutorials/tutorial14/include/tutorial14/Message.h +++ b/tutorials/tutorial14/include/tutorial14/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial14/include/tutorial14/MsgId.h b/tutorials/tutorial14/include/tutorial14/MsgId.h index b49f3c705..9992ae879 100644 --- a/tutorials/tutorial14/include/tutorial14/MsgId.h +++ b/tutorials/tutorial14/include/tutorial14/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial14/include/tutorial14/Version.h b/tutorials/tutorial14/include/tutorial14/Version.h index 3c601b7e7..582094136 100644 --- a/tutorials/tutorial14/include/tutorial14/Version.h +++ b/tutorials/tutorial14/include/tutorial14/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial14 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h index a36b72add..3eacb9061 100644 --- a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial14::options::DefaultOptions as template parameter. /// @note Defined in tutorial14/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h index 7d724a073..bc5cf53b3 100644 --- a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h +++ b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial14::options::DefaultOptions as template parameter. /// @note Defined in tutorial14/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h index 49a0ea8a5..4917da2df 100644 --- a/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial14/include/tutorial14/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial14::options::DefaultOptions as template parameter. /// @note Defined in tutorial14/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial14/include/tutorial14/field/FieldBase.h b/tutorials/tutorial14/include/tutorial14/field/FieldBase.h index 99aee3df3..9b8d1d640 100644 --- a/tutorials/tutorial14/include/tutorial14/field/FieldBase.h +++ b/tutorials/tutorial14/include/tutorial14/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial14/include/tutorial14/field/MsgId.h b/tutorials/tutorial14/include/tutorial14/field/MsgId.h index aae839e85..1d4813c0e 100644 --- a/tutorials/tutorial14/include/tutorial14/field/MsgId.h +++ b/tutorials/tutorial14/include/tutorial14/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h b/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h index 82163e215..05b9c11c4 100644 --- a/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h +++ b/tutorials/tutorial14/include/tutorial14/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial14/include/tutorial14/frame/Frame.h b/tutorials/tutorial14/include/tutorial14/frame/Frame.h index 3867856a1..24b4ba6f7 100644 --- a/tutorials/tutorial14/include/tutorial14/frame/Frame.h +++ b/tutorials/tutorial14/include/tutorial14/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h b/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h index 0cf30dd9a..da431c561 100644 --- a/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h +++ b/tutorials/tutorial14/include/tutorial14/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial14/include/tutorial14/input/AllMessages.h b/tutorials/tutorial14/include/tutorial14/input/AllMessages.h index c8e8106f8..ab978abd8 100644 --- a/tutorials/tutorial14/include/tutorial14/input/AllMessages.h +++ b/tutorials/tutorial14/include/tutorial14/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h b/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h index 9c2e7041b..ab201330b 100644 --- a/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h +++ b/tutorials/tutorial14/include/tutorial14/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h b/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h index c9dfd9746..acbf047b8 100644 --- a/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h +++ b/tutorials/tutorial14/include/tutorial14/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg1.h b/tutorials/tutorial14/include/tutorial14/message/Msg1.h index afa273597..2f8e94c9a 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg1.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h b/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h index 20c7a7975..bcef071db 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -161,12 +161,12 @@ struct Msg1FieldsCommon static const char* Map[] = { "F2F3" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg2.h b/tutorials/tutorial14/include/tutorial14/message/Msg2.h index 5e07dca51..df3e44427 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg2.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h b/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h index e4ddb7c64..6402cf1c8 100644 --- a/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h +++ b/tutorials/tutorial14/include/tutorial14/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h index 9b9c7465a..2ebd545d8 100644 --- a/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h index c2e99f58d..e277a8daf 100644 --- a/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h index 8aabedae8..6def97a73 100644 --- a/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h index 37780e4a1..ca9243086 100644 --- a/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial14 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -41,6 +45,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial14 diff --git a/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h b/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h index 1916f5ca3..d6b1a6f44 100644 --- a/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h +++ b/tutorials/tutorial14/include/tutorial14/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial15/include/tutorial15/Message.h b/tutorials/tutorial15/include/tutorial15/Message.h index 0e38e8154..7d7cdd8aa 100644 --- a/tutorials/tutorial15/include/tutorial15/Message.h +++ b/tutorials/tutorial15/include/tutorial15/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial15/include/tutorial15/MsgId.h b/tutorials/tutorial15/include/tutorial15/MsgId.h index 3f1b9b66f..4704296f8 100644 --- a/tutorials/tutorial15/include/tutorial15/MsgId.h +++ b/tutorials/tutorial15/include/tutorial15/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial15/include/tutorial15/Version.h b/tutorials/tutorial15/include/tutorial15/Version.h index 78f629517..206fe78d6 100644 --- a/tutorials/tutorial15/include/tutorial15/Version.h +++ b/tutorials/tutorial15/include/tutorial15/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial15 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h index 33030a421..1659cc5bd 100644 --- a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial15::options::DefaultOptions as template parameter. /// @note Defined in tutorial15/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h index d67afd63d..500351a6b 100644 --- a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h +++ b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial15::options::DefaultOptions as template parameter. /// @note Defined in tutorial15/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h index 3a312f853..0bfee9dff 100644 --- a/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial15/include/tutorial15/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial15::options::DefaultOptions as template parameter. /// @note Defined in tutorial15/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial15/include/tutorial15/field/FieldBase.h b/tutorials/tutorial15/include/tutorial15/field/FieldBase.h index 2038fb627..0792b5963 100644 --- a/tutorials/tutorial15/include/tutorial15/field/FieldBase.h +++ b/tutorials/tutorial15/include/tutorial15/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial15/include/tutorial15/field/MsgId.h b/tutorials/tutorial15/include/tutorial15/field/MsgId.h index e35b756fe..188014f92 100644 --- a/tutorials/tutorial15/include/tutorial15/field/MsgId.h +++ b/tutorials/tutorial15/include/tutorial15/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h b/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h index 2e85f1542..cd6167453 100644 --- a/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h +++ b/tutorials/tutorial15/include/tutorial15/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/frame/Frame.h b/tutorials/tutorial15/include/tutorial15/frame/Frame.h index ba286cf9a..da97e62dc 100644 --- a/tutorials/tutorial15/include/tutorial15/frame/Frame.h +++ b/tutorials/tutorial15/include/tutorial15/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h b/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h index 8fcde4ffc..a4df877a9 100644 --- a/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h +++ b/tutorials/tutorial15/include/tutorial15/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/input/AllMessages.h b/tutorials/tutorial15/include/tutorial15/input/AllMessages.h index 850a59ffc..bf1ddb1f0 100644 --- a/tutorials/tutorial15/include/tutorial15/input/AllMessages.h +++ b/tutorials/tutorial15/include/tutorial15/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h b/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h index e95d9d360..9070c16a8 100644 --- a/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h +++ b/tutorials/tutorial15/include/tutorial15/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h b/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h index 1a8fa8c9d..e4d998b09 100644 --- a/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h +++ b/tutorials/tutorial15/include/tutorial15/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg1.h b/tutorials/tutorial15/include/tutorial15/message/Msg1.h index 51eae4408..19b3185f3 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg1.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h b/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h index 44cc62abd..bc922c586 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg2.h b/tutorials/tutorial15/include/tutorial15/message/Msg2.h index 479b528ba..f2f2e27dd 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg2.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h b/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h index 94ffb4b2f..60b299804 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg3.h b/tutorials/tutorial15/include/tutorial15/message/Msg3.h index 30a98a585..89303a74c 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg3.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h b/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h index 9e5f6b75a..b355ded3a 100644 --- a/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h +++ b/tutorials/tutorial15/include/tutorial15/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h index 3641df08f..98c846c20 100644 --- a/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h index 6140be586..c8bd0b88d 100644 --- a/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h index d03a177ff..68596d12e 100644 --- a/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h index 926509369..33f488d18 100644 --- a/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial15 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -72,6 +76,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial15 diff --git a/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h b/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h index 3d74c1fe0..85c7ea76c 100644 --- a/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h +++ b/tutorials/tutorial15/include/tutorial15/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial16/include/tutorial16/Interface.h b/tutorials/tutorial16/include/tutorial16/Interface.h index 0094c93ef..b915e54c9 100644 --- a/tutorials/tutorial16/include/tutorial16/Interface.h +++ b/tutorials/tutorial16/include/tutorial16/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h b/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h index aa11e4f82..8b617be4a 100644 --- a/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h +++ b/tutorials/tutorial16/include/tutorial16/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/MsgId.h b/tutorials/tutorial16/include/tutorial16/MsgId.h index e20c8f604..27c95f8d8 100644 --- a/tutorials/tutorial16/include/tutorial16/MsgId.h +++ b/tutorials/tutorial16/include/tutorial16/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial16/include/tutorial16/Version.h b/tutorials/tutorial16/include/tutorial16/Version.h index 099d83778..940a596b3 100644 --- a/tutorials/tutorial16/include/tutorial16/Version.h +++ b/tutorials/tutorial16/include/tutorial16/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial16 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h index 42fb1aeb3..733b1a62d 100644 --- a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial16::options::DefaultOptions as template parameter. /// @note Defined in tutorial16/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h index 6441506a0..7715187f6 100644 --- a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h +++ b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial16::options::DefaultOptions as template parameter. /// @note Defined in tutorial16/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h index 9073dd58a..b32b0aff8 100644 --- a/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial16/include/tutorial16/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial16::options::DefaultOptions as template parameter. /// @note Defined in tutorial16/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial16/include/tutorial16/field/FieldBase.h b/tutorials/tutorial16/include/tutorial16/field/FieldBase.h index 652095fbb..e0e919131 100644 --- a/tutorials/tutorial16/include/tutorial16/field/FieldBase.h +++ b/tutorials/tutorial16/include/tutorial16/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h index 192c5582c..a35991f3c 100644 --- a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h +++ b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "InterfaceFlags" field. diff --git a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h index 7bf00ebd1..cc4569f8d 100644 --- a/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h +++ b/tutorials/tutorial16/include/tutorial16/field/InterfaceFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -33,12 +33,12 @@ struct InterfaceFlagsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial16/include/tutorial16/field/MsgId.h b/tutorials/tutorial16/include/tutorial16/field/MsgId.h index 82a80980a..e92d281a2 100644 --- a/tutorials/tutorial16/include/tutorial16/field/MsgId.h +++ b/tutorials/tutorial16/include/tutorial16/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h b/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h index 312cd06fc..34c008ae7 100644 --- a/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h +++ b/tutorials/tutorial16/include/tutorial16/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/frame/Frame.h b/tutorials/tutorial16/include/tutorial16/frame/Frame.h index db75792f3..6eaf74da2 100644 --- a/tutorials/tutorial16/include/tutorial16/frame/Frame.h +++ b/tutorials/tutorial16/include/tutorial16/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h b/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h index 55635c0de..c750739c5 100644 --- a/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h +++ b/tutorials/tutorial16/include/tutorial16/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/input/AllMessages.h b/tutorials/tutorial16/include/tutorial16/input/AllMessages.h index 3948a8992..ca2bb1b0f 100644 --- a/tutorials/tutorial16/include/tutorial16/input/AllMessages.h +++ b/tutorials/tutorial16/include/tutorial16/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h b/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h index d24af975e..63a8ca84f 100644 --- a/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h +++ b/tutorials/tutorial16/include/tutorial16/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h b/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h index 69c93355c..8d7b9ee9c 100644 --- a/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h +++ b/tutorials/tutorial16/include/tutorial16/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg1.h b/tutorials/tutorial16/include/tutorial16/message/Msg1.h index b0c220bc5..91aace5f9 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg1.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h b/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h index 966900740..e3ef3d4c7 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg2.h b/tutorials/tutorial16/include/tutorial16/message/Msg2.h index 27b05fceb..fd303f105 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg2.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h b/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h index 48da836be..8a5743ccf 100644 --- a/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h +++ b/tutorials/tutorial16/include/tutorial16/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h index 51047cd21..d8aaa19ea 100644 --- a/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h index 504f61759..8aad6c227 100644 --- a/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h index 84f25489b..2f63a6429 100644 --- a/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h index 8c3418de2..15183b94e 100644 --- a/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial16 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -57,6 +61,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial16 diff --git a/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h b/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h index e1d97454f..c26181f2a 100644 --- a/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h +++ b/tutorials/tutorial16/include/tutorial16/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial17/include/tutorial17/Interface.h b/tutorials/tutorial17/include/tutorial17/Interface.h index ef1c9e9f2..5f830afbb 100644 --- a/tutorials/tutorial17/include/tutorial17/Interface.h +++ b/tutorials/tutorial17/include/tutorial17/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h b/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h index af79deb71..19e57e142 100644 --- a/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h +++ b/tutorials/tutorial17/include/tutorial17/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -35,12 +35,12 @@ struct InterfaceFieldsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial17/include/tutorial17/MsgId.h b/tutorials/tutorial17/include/tutorial17/MsgId.h index 93a17429e..af91101d2 100644 --- a/tutorials/tutorial17/include/tutorial17/MsgId.h +++ b/tutorials/tutorial17/include/tutorial17/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial17/include/tutorial17/Version.h b/tutorials/tutorial17/include/tutorial17/Version.h index 3ca498825..03f4817cb 100644 --- a/tutorials/tutorial17/include/tutorial17/Version.h +++ b/tutorials/tutorial17/include/tutorial17/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial17 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h index 2b6c921ad..6aaf48139 100644 --- a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial17::options::DefaultOptions as template parameter. /// @note Defined in tutorial17/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h index 6a2c3e9cc..f3b34a8f9 100644 --- a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h +++ b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial17::options::DefaultOptions as template parameter. /// @note Defined in tutorial17/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h index d87ae6f04..b3e43c687 100644 --- a/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial17/include/tutorial17/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial17::options::DefaultOptions as template parameter. /// @note Defined in tutorial17/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial17/include/tutorial17/field/FieldBase.h b/tutorials/tutorial17/include/tutorial17/field/FieldBase.h index 96d79797d..dd1c0a068 100644 --- a/tutorials/tutorial17/include/tutorial17/field/FieldBase.h +++ b/tutorials/tutorial17/include/tutorial17/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial17/include/tutorial17/field/MsgId.h b/tutorials/tutorial17/include/tutorial17/field/MsgId.h index d567d42f7..04e505674 100644 --- a/tutorials/tutorial17/include/tutorial17/field/MsgId.h +++ b/tutorials/tutorial17/include/tutorial17/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h b/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h index f231ef820..251417242 100644 --- a/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h +++ b/tutorials/tutorial17/include/tutorial17/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/frame/Frame.h b/tutorials/tutorial17/include/tutorial17/frame/Frame.h index 8feb2c6ee..2cfbe8cc2 100644 --- a/tutorials/tutorial17/include/tutorial17/frame/Frame.h +++ b/tutorials/tutorial17/include/tutorial17/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h b/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h index 52b631774..8247ae1b5 100644 --- a/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h +++ b/tutorials/tutorial17/include/tutorial17/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -51,12 +51,12 @@ struct FrameLayersCommon static const char* Map[] = { "F1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } @@ -127,12 +127,12 @@ struct FrameLayersCommon static const char* Map[] = { "F1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial17/include/tutorial17/input/AllMessages.h b/tutorials/tutorial17/include/tutorial17/input/AllMessages.h index 16d51412f..8bf30c745 100644 --- a/tutorials/tutorial17/include/tutorial17/input/AllMessages.h +++ b/tutorials/tutorial17/include/tutorial17/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h b/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h index aee018836..814e7e8c1 100644 --- a/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h +++ b/tutorials/tutorial17/include/tutorial17/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h b/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h index 18c65da17..bac67b7f7 100644 --- a/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h +++ b/tutorials/tutorial17/include/tutorial17/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg1.h b/tutorials/tutorial17/include/tutorial17/message/Msg1.h index ccea5d91e..3277531ab 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg1.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h b/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h index 2de3285cb..0a77f1a8e 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg2.h b/tutorials/tutorial17/include/tutorial17/message/Msg2.h index 904e65ec5..a4d0f54e1 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg2.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h b/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h index d4e5e81c1..f5fd3261d 100644 --- a/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h +++ b/tutorials/tutorial17/include/tutorial17/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h index 812111ec3..e1deab4a7 100644 --- a/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h index 73a35acac..8bfcb4976 100644 --- a/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h index 725aab959..dadf89543 100644 --- a/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h index e623d8fa3..185266649 100644 --- a/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial17 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -62,6 +66,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial17 diff --git a/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h b/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h index c4940356a..2f6492ba4 100644 --- a/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h +++ b/tutorials/tutorial17/include/tutorial17/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial18/include/tutorial18/Message.h b/tutorials/tutorial18/include/tutorial18/Message.h index 9351bc02e..9271d46cc 100644 --- a/tutorials/tutorial18/include/tutorial18/Message.h +++ b/tutorials/tutorial18/include/tutorial18/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial18/include/tutorial18/MsgId.h b/tutorials/tutorial18/include/tutorial18/MsgId.h index 9f6bcfe64..05466ce42 100644 --- a/tutorials/tutorial18/include/tutorial18/MsgId.h +++ b/tutorials/tutorial18/include/tutorial18/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial18/include/tutorial18/Version.h b/tutorials/tutorial18/include/tutorial18/Version.h index 3ffdc28e2..a6d4264cd 100644 --- a/tutorials/tutorial18/include/tutorial18/Version.h +++ b/tutorials/tutorial18/include/tutorial18/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial18 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h index d5ee3b80c..79f961741 100644 --- a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -217,7 +217,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial18::options::DefaultOptions as template parameter. /// @note Defined in tutorial18/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h index 885b28bed..a71e0328f 100644 --- a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h +++ b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -217,7 +217,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial18::options::DefaultOptions as template parameter. /// @note Defined in tutorial18/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h index e6379994d..60bf7a986 100644 --- a/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial18/include/tutorial18/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -217,7 +217,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial18::options::DefaultOptions as template parameter. /// @note Defined in tutorial18/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial18/include/tutorial18/field/FieldBase.h b/tutorials/tutorial18/include/tutorial18/field/FieldBase.h index 9d1a20b52..d4f770670 100644 --- a/tutorials/tutorial18/include/tutorial18/field/FieldBase.h +++ b/tutorials/tutorial18/include/tutorial18/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial18/include/tutorial18/field/MsgId.h b/tutorials/tutorial18/include/tutorial18/field/MsgId.h index f7e431d75..b578a5973 100644 --- a/tutorials/tutorial18/include/tutorial18/field/MsgId.h +++ b/tutorials/tutorial18/include/tutorial18/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "ID" field. diff --git a/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h b/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h index 4d820a461..ca1a03b20 100644 --- a/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h +++ b/tutorials/tutorial18/include/tutorial18/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/frame/Frame.h b/tutorials/tutorial18/include/tutorial18/frame/Frame.h index 4f7917583..d46e8139d 100644 --- a/tutorials/tutorial18/include/tutorial18/frame/Frame.h +++ b/tutorials/tutorial18/include/tutorial18/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h b/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h index 16cf1a860..5157a90de 100644 --- a/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h +++ b/tutorials/tutorial18/include/tutorial18/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/input/AllMessages.h b/tutorials/tutorial18/include/tutorial18/input/AllMessages.h index 7c84539d6..38f9f2aec 100644 --- a/tutorials/tutorial18/include/tutorial18/input/AllMessages.h +++ b/tutorials/tutorial18/include/tutorial18/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h b/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h index d89e88349..e7fb02833 100644 --- a/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h +++ b/tutorials/tutorial18/include/tutorial18/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h b/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h index f0176281f..850dba08a 100644 --- a/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h +++ b/tutorials/tutorial18/include/tutorial18/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h index 6c3496e22..66e0ea8f0 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1 (1)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h index 4bdfadd8b..0bbe719db 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h index c6c0d055e..fffb7338d 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1 (2)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h index a818162fe..80a74f522 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h index 4e9ba0344..114d49b8f 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1 (3)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h index c87f5384a..ba27a37a7 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg1_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h index 3009703b1..c95c8e5b8 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2 (1)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h index 1937d2ce2..66a2bcabb 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h index 07219471f..ebf23b78a 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2 (2)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h index 1514ffbeb..9a6faf221 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h index 11b65112b..d8b80a5d8 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2 (3)" message and its fields. diff --git a/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h b/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h index f6d0bb1ab..c66ce581b 100644 --- a/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h +++ b/tutorials/tutorial18/include/tutorial18/message/Msg2_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h index 56df34d75..db1cf52e1 100644 --- a/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h index c55b7dfac..da4774e57 100644 --- a/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h index 397df3b82..01bebded2 100644 --- a/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h index 0f3904e51..79dd90649 100644 --- a/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial18 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -41,6 +45,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial18 diff --git a/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h b/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h index 98a7bc39f..732126618 100644 --- a/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h +++ b/tutorials/tutorial18/include/tutorial18/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial19/include/tutorial19/Interface.h b/tutorials/tutorial19/include/tutorial19/Interface.h index d13a75699..2bdfb24de 100644 --- a/tutorials/tutorial19/include/tutorial19/Interface.h +++ b/tutorials/tutorial19/include/tutorial19/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h b/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h index 4d13cd22f..3e80467ef 100644 --- a/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h +++ b/tutorials/tutorial19/include/tutorial19/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/MsgId.h b/tutorials/tutorial19/include/tutorial19/MsgId.h index 4b2779495..6d2297c28 100644 --- a/tutorials/tutorial19/include/tutorial19/MsgId.h +++ b/tutorials/tutorial19/include/tutorial19/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial19/include/tutorial19/Version.h b/tutorials/tutorial19/include/tutorial19/Version.h index b98a6837e..08b5fcb72 100644 --- a/tutorials/tutorial19/include/tutorial19/Version.h +++ b/tutorials/tutorial19/include/tutorial19/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial19 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h index 22c087ee3..a62121b99 100644 --- a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial19::options::DefaultOptions as template parameter. /// @note Defined in tutorial19/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h index 018c60039..bebad86d5 100644 --- a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h +++ b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial19::options::DefaultOptions as template parameter. /// @note Defined in tutorial19/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h index 35bb3b8fe..dac8cafe8 100644 --- a/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial19/include/tutorial19/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial19::options::DefaultOptions as template parameter. /// @note Defined in tutorial19/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial19/include/tutorial19/field/FieldBase.h b/tutorials/tutorial19/include/tutorial19/field/FieldBase.h index 32d5c3e87..48bb4674b 100644 --- a/tutorials/tutorial19/include/tutorial19/field/FieldBase.h +++ b/tutorials/tutorial19/include/tutorial19/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial19/include/tutorial19/field/MsgId.h b/tutorials/tutorial19/include/tutorial19/field/MsgId.h index 118ff3e88..7835693a6 100644 --- a/tutorials/tutorial19/include/tutorial19/field/MsgId.h +++ b/tutorials/tutorial19/include/tutorial19/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h b/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h index 943b7306b..f6fb6f6c6 100644 --- a/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h +++ b/tutorials/tutorial19/include/tutorial19/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/frame/Frame.h b/tutorials/tutorial19/include/tutorial19/frame/Frame.h index 37eaa393e..242ec2c3f 100644 --- a/tutorials/tutorial19/include/tutorial19/frame/Frame.h +++ b/tutorials/tutorial19/include/tutorial19/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h b/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h index b2b559e67..5a6b70ba5 100644 --- a/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h +++ b/tutorials/tutorial19/include/tutorial19/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/input/AllMessages.h b/tutorials/tutorial19/include/tutorial19/input/AllMessages.h index 904273423..84e78603b 100644 --- a/tutorials/tutorial19/include/tutorial19/input/AllMessages.h +++ b/tutorials/tutorial19/include/tutorial19/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h b/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h index ff18ba1cc..ccb7d2f43 100644 --- a/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h +++ b/tutorials/tutorial19/include/tutorial19/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h b/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h index 26fdf2a1b..0753c08f9 100644 --- a/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h +++ b/tutorials/tutorial19/include/tutorial19/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg1.h b/tutorials/tutorial19/include/tutorial19/message/Msg1.h index e40a9bcd7..ddbdd421c 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg1.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h b/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h index 428adeda3..86e673dd3 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg2.h b/tutorials/tutorial19/include/tutorial19/message/Msg2.h index 46c60dcdf..2dd4ca4c8 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg2.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h b/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h index 65ab33899..48f868185 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg3.h b/tutorials/tutorial19/include/tutorial19/message/Msg3.h index 8a3faad26..a0d41ba6e 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg3.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. @@ -356,7 +356,8 @@ class Msg3 : public bool updated = Base::doRefresh(); updated = refresh_f2() || updated; updated = refresh_f3() || updated; - return updated;} + return updated; + } private: diff --git a/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h b/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h index 999eee93e..df18d4d89 100644 --- a/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h +++ b/tutorials/tutorial19/include/tutorial19/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -39,12 +39,12 @@ struct Msg3FieldsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h index ccfba3b5e..c1ad13927 100644 --- a/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h index 488aee51c..1f57160d5 100644 --- a/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h index 73fd98660..a9263ca93 100644 --- a/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h index 81e8ff67f..ef192941e 100644 --- a/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial19 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -41,6 +45,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial19 diff --git a/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h b/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h index d5bb088d8..107f98587 100644 --- a/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h +++ b/tutorials/tutorial19/include/tutorial19/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial2/include/tutorial2/Message.h b/tutorials/tutorial2/include/tutorial2/Message.h index 44b19e0f1..759366890 100644 --- a/tutorials/tutorial2/include/tutorial2/Message.h +++ b/tutorials/tutorial2/include/tutorial2/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial2/include/tutorial2/MsgId.h b/tutorials/tutorial2/include/tutorial2/MsgId.h index 466c9272d..704eaf115 100644 --- a/tutorials/tutorial2/include/tutorial2/MsgId.h +++ b/tutorials/tutorial2/include/tutorial2/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial2/include/tutorial2/Version.h b/tutorials/tutorial2/include/tutorial2/Version.h index fa2bfaa21..a7f34b0e5 100644 --- a/tutorials/tutorial2/include/tutorial2/Version.h +++ b/tutorials/tutorial2/include/tutorial2/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial2 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h index b9475bd72..644558747 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -255,7 +255,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial2::options::DefaultOptions as template parameter. /// @note Defined in tutorial2/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h index eee05c57a..aea774ba4 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -255,7 +255,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial2::options::DefaultOptions as template parameter. /// @note Defined in tutorial2/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h index fb57b274b..f09979cf1 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -255,7 +255,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial2::options::DefaultOptions as template parameter. /// @note Defined in tutorial2/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_1.h b/tutorials/tutorial2/include/tutorial2/field/B8_1.h index ff5a97e6b..846a913a5 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "B8_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h b/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h index b092a56d9..050eef364 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_2.h b/tutorials/tutorial2/include/tutorial2/field/B8_2.h index 1f256e9fe..5edad2bf5 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "B8_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h b/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h index beb0dbc80..26b0716ae 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B8_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -65,12 +65,12 @@ struct B8_2MembersCommon nullptr, "SomeOtherbit" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_1.h b/tutorials/tutorial2/include/tutorial2/field/B9_1.h index b6e450284..56fe688e9 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "B9_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h b/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h index 6676b80d1..a67351106 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -130,12 +130,12 @@ struct B9_1MembersCommon nullptr, "B5" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_2.h b/tutorials/tutorial2/include/tutorial2/field/B9_2.h index aade085ac..9958b45f6 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "B9_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h b/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h index a1d851695..40218ec51 100644 --- a/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/B9_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -136,12 +136,12 @@ struct B9_2MembersCommon nullptr, "B7" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_1.h b/tutorials/tutorial2/include/tutorial2/field/D7_1.h index dc59402c7..bc7583664 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "D7_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h b/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h index 8416ee4e4..f15e830b8 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_2.h b/tutorials/tutorial2/include/tutorial2/field/D7_2.h index df885f0aa..a60a29a67 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "D7_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h b/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h index 9e8232c2d..e5bf8f157 100644 --- a/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/D7_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_1.h b/tutorials/tutorial2/include/tutorial2/field/E2_1.h index 94526bff4..7db8e3640 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "E2_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h b/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h index 7e467a7f6..1e94d60ae 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_2.h b/tutorials/tutorial2/include/tutorial2/field/E2_2.h index afd574925..ce1d7efe1 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "E2_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h b/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h index a7e906a6b..a05d13524 100644 --- a/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/E2_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_1.h b/tutorials/tutorial2/include/tutorial2/field/F11_1.h index 8728803aa..eae43e874 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Field 11_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h b/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h index 5630126ee..4f3760772 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_2.h b/tutorials/tutorial2/include/tutorial2/field/F11_2.h index 0b916265b..58899e20e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Field 11_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h b/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h index c788d237c..748f64c94 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_3.h b/tutorials/tutorial2/include/tutorial2/field/F11_3.h index a10be723e..c89d0b4e4 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "F11_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h b/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h index 76210bdc2..1e4deb981 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F11_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_1.h b/tutorials/tutorial2/include/tutorial2/field/F5_1.h index 492622288..21dccb48e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "F5_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h b/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h index 70e8a2182..ea26156aa 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_2.h b/tutorials/tutorial2/include/tutorial2/field/F5_2.h index ee1ad62f5..3b931ff08 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "F5_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h b/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h index aa7fbbbce..58bcea276 100644 --- a/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/F5_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/FieldBase.h b/tutorials/tutorial2/include/tutorial2/field/FieldBase.h index b1dc20dd8..741a7dd3d 100644 --- a/tutorials/tutorial2/include/tutorial2/field/FieldBase.h +++ b/tutorials/tutorial2/include/tutorial2/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial2/include/tutorial2/field/I1.h b/tutorials/tutorial2/include/tutorial2/field/I1.h index 1ce89f44a..ebc799866 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I1.h +++ b/tutorials/tutorial2/include/tutorial2/field/I1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "I1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I1Common.h b/tutorials/tutorial2/include/tutorial2/field/I1Common.h index 9ac0ca97b..b9b685116 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_1.h b/tutorials/tutorial2/include/tutorial2/field/I3_1.h index a1bcb8b39..926f9bddc 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "I3_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h index d5884233e..c007c8827 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_2.h b/tutorials/tutorial2/include/tutorial2/field/I3_2.h index e546808ec..7b8360e92 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "I3_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h index ed04a6828..2fef5d3c9 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_3.h b/tutorials/tutorial2/include/tutorial2/field/I3_3.h index e83554f6c..4c083d4ca 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "I3_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h index c79d322f1..91c33f140 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_4.h b/tutorials/tutorial2/include/tutorial2/field/I3_4.h index bfa0fadbb..8df845eff 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_4.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "I3_4" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h index 508edf815..5eb3722d9 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_5.h b/tutorials/tutorial2/include/tutorial2/field/I3_5.h index 39f336fcf..e240947e5 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_5.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_5.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "I3_5" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h b/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h index e5b2f426a..7e2b6a1af 100644 --- a/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/I3_5Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_1.h b/tutorials/tutorial2/include/tutorial2/field/L10_1.h index 5ef974aad..812816886 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "L10_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h index ee32c739e..921d21eb2 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_2.h b/tutorials/tutorial2/include/tutorial2/field/L10_2.h index 6cdaa8e32..2c0f28251 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "L10_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h index 4a86329de..9e636f9e1 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_3.h b/tutorials/tutorial2/include/tutorial2/field/L10_3.h index 22c329df7..b8fe3ef5d 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "L10_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h index af66dc649..c5e225b6b 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_4.h b/tutorials/tutorial2/include/tutorial2/field/L10_4.h index bbcf6b27d..46423ad97 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_4.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "L10_4" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h b/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h index e1a9ca607..a14a11a39 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L10_4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/L6_3.h b/tutorials/tutorial2/include/tutorial2/field/L6_3.h index 704678206..34711b4a8 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L6_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/L6_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "L6_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h b/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h index 01e9f8974..d8b55b886 100644 --- a/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/L6_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/MsgId.h b/tutorials/tutorial2/include/tutorial2/field/MsgId.h index fca7c2e7e..f7498c385 100644 --- a/tutorials/tutorial2/include/tutorial2/field/MsgId.h +++ b/tutorials/tutorial2/include/tutorial2/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h b/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h index 0ebef25bc..9e071a98e 100644 --- a/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h +++ b/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_1.h b/tutorials/tutorial2/include/tutorial2/field/S4_1.h index 25b4ba611..9c8f8c6b3 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "S4_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h b/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h index a3fa239ea..6be2c7e71 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -34,12 +34,12 @@ struct S4_1Common "B1", "B2" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_2.h b/tutorials/tutorial2/include/tutorial2/field/S4_2.h index 2892f6f70..64e72234f 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "S4_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h b/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h index fde34c3fe..a2d522c39 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -47,12 +47,12 @@ struct S4_2Common nullptr, "B15" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_3.h b/tutorials/tutorial2/include/tutorial2/field/S4_3.h index 6bba3efde..07bdae655 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "S4_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h b/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h index 00ac1ae28..409e7eca5 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S4_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -52,12 +52,12 @@ struct S4_3Common nullptr, "B20" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_1.h b/tutorials/tutorial2/include/tutorial2/field/S6_1.h index e4068c4c6..2a0526c17 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_1.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "S6_1" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h index 163c4d419..e523ba3fd 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_2.h b/tutorials/tutorial2/include/tutorial2/field/S6_2.h index 9e5e2e73e..69774f3a1 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_2.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "S6_2" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h index aeac91b5f..f4e8c95c5 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_3.h b/tutorials/tutorial2/include/tutorial2/field/S6_3.h index ea47d93b3..b67f03520 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_3.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "S6_3" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h index c442427ba..5773fcccb 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_4.h b/tutorials/tutorial2/include/tutorial2/field/S6_4.h index 4d215e2f4..4e0a4b7a6 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_4.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "S6_4" field. diff --git a/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h b/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h index 0b3429b90..1c93279d1 100644 --- a/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h +++ b/tutorials/tutorial2/include/tutorial2/field/S6_4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/frame/Frame.h b/tutorials/tutorial2/include/tutorial2/frame/Frame.h index 43cdb8f85..78234ad6d 100644 --- a/tutorials/tutorial2/include/tutorial2/frame/Frame.h +++ b/tutorials/tutorial2/include/tutorial2/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h b/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h index 2fa3c1648..b7a7cfbe1 100644 --- a/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h +++ b/tutorials/tutorial2/include/tutorial2/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/input/AllMessages.h b/tutorials/tutorial2/include/tutorial2/input/AllMessages.h index 78d652633..34ae4b509 100644 --- a/tutorials/tutorial2/include/tutorial2/input/AllMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h b/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h index e8429904e..e22c784c5 100644 --- a/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h b/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h index 58acac6cb..2e8338595 100644 --- a/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg1.h b/tutorials/tutorial2/include/tutorial2/message/Msg1.h index 20c20b2da..c3cafcf80 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg1.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg10.h b/tutorials/tutorial2/include/tutorial2/message/Msg10.h index e8704579e..bb4f612b3 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg10.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg10.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 10" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h index e3e2a1c6a..289da4b0a 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg10Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg11.h b/tutorials/tutorial2/include/tutorial2/message/Msg11.h index 8b1855d4e..ca7b59fcf 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg11.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg11.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 11" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h index c9cfcee52..daae04770 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg11Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg12.h b/tutorials/tutorial2/include/tutorial2/message/Msg12.h index ecfd2eeac..fd4199a09 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg12.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg12.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 12" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h index b24ed0e10..f5ead02b8 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg12Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg13.h b/tutorials/tutorial2/include/tutorial2/message/Msg13.h index c9cd586dd..8cbc19584 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg13.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg13.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 13" message and its fields. @@ -302,7 +302,8 @@ class Msg13 : public bool updated = Base::doRefresh(); updated = refresh_f2() || updated; updated = refresh_f3() || updated; - return updated;} + return updated; + } private: diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h index 0f3c307ca..2143f6271 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg13Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -39,12 +39,12 @@ struct Msg13FieldsCommon "F2Present", "F3Missing" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg14.h b/tutorials/tutorial2/include/tutorial2/message/Msg14.h index 92bd40f55..5610846b4 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg14.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg14.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 14" message and its fields. @@ -250,7 +250,8 @@ class Msg14 : public { bool updated = Base::doRefresh(); updated = refresh_f3() || updated; - return updated;} + return updated; + } private: diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h index fb19f15f2..ec21f5e03 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg14Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg15.h b/tutorials/tutorial2/include/tutorial2/message/Msg15.h index 5ed38b17b..2bf018c2d 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg15.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg15.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 15" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h index 224281c56..a0859b23b 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg15Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg16.h b/tutorials/tutorial2/include/tutorial2/message/Msg16.h index 27708f8db..b641b3aa9 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg16.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg16.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 16" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h index 24ea997db..780316aac 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg16Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h index e6ceb01cd..a0016dae4 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg2.h b/tutorials/tutorial2/include/tutorial2/message/Msg2.h index ccd98b3f6..4e4cf6f47 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg2.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h index c20b644f5..b26d80df0 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg3.h b/tutorials/tutorial2/include/tutorial2/message/Msg3.h index fc09df46d..198899885 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg3.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h index 01d228efb..064da6e86 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg4.h b/tutorials/tutorial2/include/tutorial2/message/Msg4.h index 71c8dd7ac..a77c7f5b8 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg4.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h index c677cd488..1afca9cfa 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg5.h b/tutorials/tutorial2/include/tutorial2/message/Msg5.h index 70ea7e6ea..9c55579f4 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg5.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg5.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 5" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h index d58d9f48c..b44b76845 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg5Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg6.h b/tutorials/tutorial2/include/tutorial2/message/Msg6.h index 848066658..0d5db84cc 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg6.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg6.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 6" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h index f63943fc9..f01939f55 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg6Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg7.h b/tutorials/tutorial2/include/tutorial2/message/Msg7.h index 94adfa5b3..27e68c8f1 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg7.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg7.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 7" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h index a2167c746..f3e58da03 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg7Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg8.h b/tutorials/tutorial2/include/tutorial2/message/Msg8.h index 966a6e54d..f7fc23a89 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg8.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg8.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 8" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h index 181a92fac..4379cc2b1 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg8Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg9.h b/tutorials/tutorial2/include/tutorial2/message/Msg9.h index cce4db6d8..97093313d 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg9.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg9.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 9" message and its fields. diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h index 9834b6a46..caf76a12e 100644 --- a/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h +++ b/tutorials/tutorial2/include/tutorial2/message/Msg9Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h index 17469fae8..4126ca97f 100644 --- a/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h index e773e7964..e2d64b332 100644 --- a/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h index 54ca55133..4960eb796 100644 --- a/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h index 9342a5e62..638ac393b 100644 --- a/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial2 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for fields. struct field @@ -154,6 +158,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial2 diff --git a/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h b/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h index ca5f00d12..84cb8231c 100644 --- a/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h +++ b/tutorials/tutorial2/include/tutorial2/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial20/include/tutorial20/Interface.h b/tutorials/tutorial20/include/tutorial20/Interface.h index 44e9a1ac8..46cfe872d 100644 --- a/tutorials/tutorial20/include/tutorial20/Interface.h +++ b/tutorials/tutorial20/include/tutorial20/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h b/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h index 0bf023b84..631f3c36c 100644 --- a/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h +++ b/tutorials/tutorial20/include/tutorial20/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/MsgId.h b/tutorials/tutorial20/include/tutorial20/MsgId.h index 45d56d827..9fa413c4d 100644 --- a/tutorials/tutorial20/include/tutorial20/MsgId.h +++ b/tutorials/tutorial20/include/tutorial20/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial20/include/tutorial20/Version.h b/tutorials/tutorial20/include/tutorial20/Version.h index d3a47c62c..418ee18f2 100644 --- a/tutorials/tutorial20/include/tutorial20/Version.h +++ b/tutorials/tutorial20/include/tutorial20/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial20 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h index ee7569373..25917e4be 100644 --- a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial20::options::DefaultOptions as template parameter. /// @note Defined in tutorial20/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h index a2f2b2aac..68b101b46 100644 --- a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h +++ b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -195,7 +195,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial20::options::DefaultOptions as template parameter. /// @note Defined in tutorial20/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h index c509f72d8..a1ae0347c 100644 --- a/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial20/include/tutorial20/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -195,7 +195,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial20::options::DefaultOptions as template parameter. /// @note Defined in tutorial20/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial20/include/tutorial20/field/FieldBase.h b/tutorials/tutorial20/include/tutorial20/field/FieldBase.h index 5025bf544..06a8695e9 100644 --- a/tutorials/tutorial20/include/tutorial20/field/FieldBase.h +++ b/tutorials/tutorial20/include/tutorial20/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial20/include/tutorial20/field/MsgId.h b/tutorials/tutorial20/include/tutorial20/field/MsgId.h index ff79cacd0..0a8e6ae50 100644 --- a/tutorials/tutorial20/include/tutorial20/field/MsgId.h +++ b/tutorials/tutorial20/include/tutorial20/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h b/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h index 03a49e0ac..d4ef97d0e 100644 --- a/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h +++ b/tutorials/tutorial20/include/tutorial20/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/field/Version.h b/tutorials/tutorial20/include/tutorial20/field/Version.h index 7bb3a8d8e..c9ca386cc 100644 --- a/tutorials/tutorial20/include/tutorial20/field/Version.h +++ b/tutorials/tutorial20/include/tutorial20/field/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Version" field. diff --git a/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h b/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h index a4fcc7259..60fde12f2 100644 --- a/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h +++ b/tutorials/tutorial20/include/tutorial20/field/VersionCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/frame/Frame.h b/tutorials/tutorial20/include/tutorial20/frame/Frame.h index 7f3b9205e..3e568713d 100644 --- a/tutorials/tutorial20/include/tutorial20/frame/Frame.h +++ b/tutorials/tutorial20/include/tutorial20/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h b/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h index 2db710a75..9e79cd5c8 100644 --- a/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h +++ b/tutorials/tutorial20/include/tutorial20/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/input/AllMessages.h b/tutorials/tutorial20/include/tutorial20/input/AllMessages.h index f9f5dba3e..ab266fe0d 100644 --- a/tutorials/tutorial20/include/tutorial20/input/AllMessages.h +++ b/tutorials/tutorial20/include/tutorial20/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h b/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h index b8954cd99..d89c599b7 100644 --- a/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h +++ b/tutorials/tutorial20/include/tutorial20/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h b/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h index 5ca317a18..a0909cd5d 100644 --- a/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h +++ b/tutorials/tutorial20/include/tutorial20/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial20/include/tutorial20/message/Connect.h b/tutorials/tutorial20/include/tutorial20/message/Connect.h index 9e0a0341b..e639e5efb 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Connect.h +++ b/tutorials/tutorial20/include/tutorial20/message/Connect.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Connect" message and its fields. diff --git a/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h b/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h index 897c1bf79..b023098ff 100644 --- a/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h +++ b/tutorials/tutorial20/include/tutorial20/message/ConnectCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg1.h b/tutorials/tutorial20/include/tutorial20/message/Msg1.h index 00f21672f..db1fd1d41 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg1.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h b/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h index 7894ea759..4179a6652 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg2.h b/tutorials/tutorial20/include/tutorial20/message/Msg2.h index 0895b6eba..36339f3c9 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg2.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h b/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h index d43222725..d72616174 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg3.h b/tutorials/tutorial20/include/tutorial20/message/Msg3.h index 4520c0032..9fecb0ff3 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg3.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. @@ -356,7 +356,8 @@ class Msg3 : public bool updated = Base::doRefresh(); updated = refresh_f2() || updated; updated = refresh_f3() || updated; - return updated;} + return updated; + } private: diff --git a/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h b/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h index e6afcd6dc..a9cdb1f48 100644 --- a/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h +++ b/tutorials/tutorial20/include/tutorial20/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -39,12 +39,12 @@ struct Msg3FieldsCommon "B0", "B1" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h index 60db95626..336a8d652 100644 --- a/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h index aaf75a188..986331bcb 100644 --- a/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h index 69053de1a..7c34e0e23 100644 --- a/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h index bf0df2a0c..8c18f922b 100644 --- a/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial20 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -50,6 +54,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial20 diff --git a/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h b/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h index d984dec6e..3427a0f74 100644 --- a/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h +++ b/tutorials/tutorial20/include/tutorial20/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial21/include/tutorial21/Interface.h b/tutorials/tutorial21/include/tutorial21/Interface.h index aa0f83973..7a47759bf 100644 --- a/tutorials/tutorial21/include/tutorial21/Interface.h +++ b/tutorials/tutorial21/include/tutorial21/Interface.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Interface" interface class. diff --git a/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h b/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h index d70db9580..542a111ce 100644 --- a/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h +++ b/tutorials/tutorial21/include/tutorial21/InterfaceCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/MsgId.h b/tutorials/tutorial21/include/tutorial21/MsgId.h index ec633c248..a6243e53e 100644 --- a/tutorials/tutorial21/include/tutorial21/MsgId.h +++ b/tutorials/tutorial21/include/tutorial21/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial21/include/tutorial21/Version.h b/tutorials/tutorial21/include/tutorial21/Version.h index c532057a5..6655af691 100644 --- a/tutorials/tutorial21/include/tutorial21/Version.h +++ b/tutorials/tutorial21/include/tutorial21/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial21 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h index b0ef2cd1c..1de6c3587 100644 --- a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial21::options::DefaultOptions as template parameter. /// @note Defined in tutorial21/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h index 659598407..607ec542f 100644 --- a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h +++ b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial21::options::DefaultOptions as template parameter. /// @note Defined in tutorial21/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h index 602ee0f98..70d106213 100644 --- a/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial21/include/tutorial21/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial21::options::DefaultOptions as template parameter. /// @note Defined in tutorial21/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h b/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h index 01e3efa2e..b50c840a6 100644 --- a/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h +++ b/tutorials/tutorial21/include/tutorial21/field/BasicFlags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Flags" field. diff --git a/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h b/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h index 0105a0a69..edda4d5b4 100644 --- a/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/BasicFlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/field/FieldBase.h b/tutorials/tutorial21/include/tutorial21/field/FieldBase.h index 460aab224..c611fd228 100644 --- a/tutorials/tutorial21/include/tutorial21/field/FieldBase.h +++ b/tutorials/tutorial21/include/tutorial21/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h b/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h index 79a1be7ed..a9b5dbc29 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg1Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Msg1Flags" field. diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h b/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h index ec3954400..b75c0c28a 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg1FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of @@ -34,12 +34,12 @@ struct Msg1FlagsCommon "B1", "B2" }; - + static const std::size_t MapSize = std::extent::value; if (MapSize <= idx) { return nullptr; } - + return Map[idx]; } diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h b/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h index 4cf8f068e..8ec7b1f4a 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg2Flags.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Msg2Flags" field. diff --git a/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h b/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h index 9f8f68074..ab8887907 100644 --- a/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/Msg2FlagsCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/field/MsgId.h b/tutorials/tutorial21/include/tutorial21/field/MsgId.h index e7d4ac6b1..26e10ffb5 100644 --- a/tutorials/tutorial21/include/tutorial21/field/MsgId.h +++ b/tutorials/tutorial21/include/tutorial21/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h b/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h index 35e919b5d..4018acd53 100644 --- a/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h +++ b/tutorials/tutorial21/include/tutorial21/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/frame/Frame.h b/tutorials/tutorial21/include/tutorial21/frame/Frame.h index f1cfcd8e8..593896740 100644 --- a/tutorials/tutorial21/include/tutorial21/frame/Frame.h +++ b/tutorials/tutorial21/include/tutorial21/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h b/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h index 7d898ee73..024e0e20d 100644 --- a/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h +++ b/tutorials/tutorial21/include/tutorial21/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/input/AllMessages.h b/tutorials/tutorial21/include/tutorial21/input/AllMessages.h index 551e23862..b7f547823 100644 --- a/tutorials/tutorial21/include/tutorial21/input/AllMessages.h +++ b/tutorials/tutorial21/include/tutorial21/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h b/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h index daf072d2b..4a868ba2b 100644 --- a/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h +++ b/tutorials/tutorial21/include/tutorial21/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h b/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h index cfea07fa9..c62d4d2b1 100644 --- a/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h +++ b/tutorials/tutorial21/include/tutorial21/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg1.h b/tutorials/tutorial21/include/tutorial21/message/Msg1.h index 6f6981401..8848630f1 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg1.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h b/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h index 4bcf80647..7146fed69 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg2.h b/tutorials/tutorial21/include/tutorial21/message/Msg2.h index 60832b941..90d54c148 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg2.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h b/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h index 054e18d2d..9a112110e 100644 --- a/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h +++ b/tutorials/tutorial21/include/tutorial21/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h index d1c54ed19..d4b2b512c 100644 --- a/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h index 8c7dcc43e..989f07d62 100644 --- a/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h index 3211c550b..2cacdec11 100644 --- a/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h index 21a0ffa93..9f6e06576 100644 --- a/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial21 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -41,6 +45,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial21 diff --git a/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h b/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h index 6003cf1f4..575e27374 100644 --- a/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h +++ b/tutorials/tutorial21/include/tutorial21/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial3/include/tutorial3/Message.h b/tutorials/tutorial3/include/tutorial3/Message.h index 7fa2045b3..22ba20482 100644 --- a/tutorials/tutorial3/include/tutorial3/Message.h +++ b/tutorials/tutorial3/include/tutorial3/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial3/include/tutorial3/MsgId.h b/tutorials/tutorial3/include/tutorial3/MsgId.h index ba3798a5f..22e2180de 100644 --- a/tutorials/tutorial3/include/tutorial3/MsgId.h +++ b/tutorials/tutorial3/include/tutorial3/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial3/include/tutorial3/Version.h b/tutorials/tutorial3/include/tutorial3/Version.h index a222706f2..e10399764 100644 --- a/tutorials/tutorial3/include/tutorial3/Version.h +++ b/tutorials/tutorial3/include/tutorial3/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial3 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h index c51a29f80..ca758c6ed 100644 --- a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial3::options::DefaultOptions as template parameter. /// @note Defined in tutorial3/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h index fff39a89f..73808c5a8 100644 --- a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h +++ b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial3::options::DefaultOptions as template parameter. /// @note Defined in tutorial3/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h index 90cf123f5..4dd48d5ff 100644 --- a/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial3/include/tutorial3/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial3::options::DefaultOptions as template parameter. /// @note Defined in tutorial3/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial3/include/tutorial3/field/FieldBase.h b/tutorials/tutorial3/include/tutorial3/field/FieldBase.h index 0e73b4f8c..1be0ffa91 100644 --- a/tutorials/tutorial3/include/tutorial3/field/FieldBase.h +++ b/tutorials/tutorial3/include/tutorial3/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial3/include/tutorial3/field/MsgId.h b/tutorials/tutorial3/include/tutorial3/field/MsgId.h index 56e546595..af18ed6e0 100644 --- a/tutorials/tutorial3/include/tutorial3/field/MsgId.h +++ b/tutorials/tutorial3/include/tutorial3/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h b/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h index 770accf8e..f0be9c203 100644 --- a/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h +++ b/tutorials/tutorial3/include/tutorial3/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/frame/Frame.h b/tutorials/tutorial3/include/tutorial3/frame/Frame.h index 91752955b..21f0ebbbb 100644 --- a/tutorials/tutorial3/include/tutorial3/frame/Frame.h +++ b/tutorials/tutorial3/include/tutorial3/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h b/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h index de602b64d..6ef140f6c 100644 --- a/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h +++ b/tutorials/tutorial3/include/tutorial3/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/input/AllMessages.h b/tutorials/tutorial3/include/tutorial3/input/AllMessages.h index d5dff1555..df1068f17 100644 --- a/tutorials/tutorial3/include/tutorial3/input/AllMessages.h +++ b/tutorials/tutorial3/include/tutorial3/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h b/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h index 150edf55f..06a267ab6 100644 --- a/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h +++ b/tutorials/tutorial3/include/tutorial3/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h b/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h index 5a6b486db..cec02a417 100644 --- a/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h +++ b/tutorials/tutorial3/include/tutorial3/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg1.h b/tutorials/tutorial3/include/tutorial3/message/Msg1.h index 31b582a3b..ae80cc73e 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg1.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h b/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h index c2e21e70b..07dee4907 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg2.h b/tutorials/tutorial3/include/tutorial3/message/Msg2.h index 60f4a11d0..e19e369f5 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg2.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h b/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h index 8c03e4a5b..d6df8a135 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg3.h b/tutorials/tutorial3/include/tutorial3/message/Msg3.h index d3e5ad361..e1b544f17 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg3.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h b/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h index 28199f44c..9ecdffb74 100644 --- a/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h +++ b/tutorials/tutorial3/include/tutorial3/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h index 3e1a32a78..fdc99d46d 100644 --- a/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h index 4a60bbb05..81450973f 100644 --- a/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h index 2c2c8eed7..a743d5788 100644 --- a/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h index d13c65235..3b0e9c306 100644 --- a/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial3 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -40,6 +44,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial3 diff --git a/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h b/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h index 7999c09a5..a8fb664be 100644 --- a/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h +++ b/tutorials/tutorial3/include/tutorial3/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial4/include/tutorial4/Message.h b/tutorials/tutorial4/include/tutorial4/Message.h index ddff3528d..d6e8fda50 100644 --- a/tutorials/tutorial4/include/tutorial4/Message.h +++ b/tutorials/tutorial4/include/tutorial4/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial4/include/tutorial4/MsgId.h b/tutorials/tutorial4/include/tutorial4/MsgId.h index 55cfcd3b6..f42000f89 100644 --- a/tutorials/tutorial4/include/tutorial4/MsgId.h +++ b/tutorials/tutorial4/include/tutorial4/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial4/include/tutorial4/Version.h b/tutorials/tutorial4/include/tutorial4/Version.h index deb51bd1e..157bfef7d 100644 --- a/tutorials/tutorial4/include/tutorial4/Version.h +++ b/tutorials/tutorial4/include/tutorial4/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial4 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h index 84f64cab1..5d9eb3ac3 100644 --- a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial4::options::DefaultOptions as template parameter. /// @note Defined in tutorial4/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h index 3b0f6dbe3..20af22921 100644 --- a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h +++ b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -185,7 +185,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial4::options::DefaultOptions as template parameter. /// @note Defined in tutorial4/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h index ed7e1593b..1dc3eeee0 100644 --- a/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial4/include/tutorial4/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial4::options::DefaultOptions as template parameter. /// @note Defined in tutorial4/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial4/include/tutorial4/field/FieldBase.h b/tutorials/tutorial4/include/tutorial4/field/FieldBase.h index 3ad2e8758..b2ac95a00 100644 --- a/tutorials/tutorial4/include/tutorial4/field/FieldBase.h +++ b/tutorials/tutorial4/include/tutorial4/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h b/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h index 511e18cb3..bfcdc6c36 100644 --- a/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h +++ b/tutorials/tutorial4/include/tutorial4/field/KeyValueProp.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "KeyValueProp" field. @@ -9,6 +9,7 @@ #include #include #include +#include "comms/Assert.h" #include "comms/CompileControl.h" #include "comms/field/Bundle.h" #include "comms/field/FloatValue.h" @@ -629,9 +630,14 @@ class KeyValueProp : public COMMS_ASSERT(field_prop2.field_key().getValue() == commonKeyField.getValue()); return field_prop2.template readFrom<1>(iter, len); } + case 5U /* 0x05U */: + { + auto& field_prop3 = initField_prop3(); + COMMS_ASSERT(field_prop3.field_key().getValue() == commonKeyField.getValue()); + return field_prop3.template readFrom<1>(iter, len); + } default: - initField_prop3().field_key().setValue(commonKeyField.getValue()); - return accessField_prop3().template readFrom<1>(iter, len); + break; }; return comms::ErrorStatus::InvalidMsgData; diff --git a/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h b/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h index e4d17281b..bb08a9315 100644 --- a/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h +++ b/tutorials/tutorial4/include/tutorial4/field/KeyValuePropCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/field/MsgId.h b/tutorials/tutorial4/include/tutorial4/field/MsgId.h index 89e6a5186..31b8724b1 100644 --- a/tutorials/tutorial4/include/tutorial4/field/MsgId.h +++ b/tutorials/tutorial4/include/tutorial4/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h b/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h index aab718a98..e9882d575 100644 --- a/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h +++ b/tutorials/tutorial4/include/tutorial4/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/field/TlvProp.h b/tutorials/tutorial4/include/tutorial4/field/TlvProp.h index 4fd07939b..e9d118f63 100644 --- a/tutorials/tutorial4/include/tutorial4/field/TlvProp.h +++ b/tutorials/tutorial4/include/tutorial4/field/TlvProp.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "TlvProp" field. @@ -9,6 +9,7 @@ #include #include #include +#include "comms/Assert.h" #include "comms/CompileControl.h" #include "comms/field/ArrayList.h" #include "comms/field/Bundle.h" diff --git a/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h b/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h index b5b8e9a9b..b423c4a1f 100644 --- a/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h +++ b/tutorials/tutorial4/include/tutorial4/field/TlvPropCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/frame/Frame.h b/tutorials/tutorial4/include/tutorial4/frame/Frame.h index 4d5842dfa..6e09cb212 100644 --- a/tutorials/tutorial4/include/tutorial4/frame/Frame.h +++ b/tutorials/tutorial4/include/tutorial4/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h b/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h index b4a26be61..66da3a55e 100644 --- a/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h +++ b/tutorials/tutorial4/include/tutorial4/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/input/AllMessages.h b/tutorials/tutorial4/include/tutorial4/input/AllMessages.h index 3f8c87cd3..2d6b4f19d 100644 --- a/tutorials/tutorial4/include/tutorial4/input/AllMessages.h +++ b/tutorials/tutorial4/include/tutorial4/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h b/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h index 0f4463a04..91ec308ee 100644 --- a/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h +++ b/tutorials/tutorial4/include/tutorial4/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h b/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h index ed0a8eef7..5bc50539e 100644 --- a/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h +++ b/tutorials/tutorial4/include/tutorial4/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg1.h b/tutorials/tutorial4/include/tutorial4/message/Msg1.h index 2463525ff..c72771d8e 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg1.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h b/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h index e68192e84..64e0eefc9 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg2.h b/tutorials/tutorial4/include/tutorial4/message/Msg2.h index b9ae94a09..6fe9feec9 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg2.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h b/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h index 1f151df31..f0d550985 100644 --- a/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h +++ b/tutorials/tutorial4/include/tutorial4/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h index 77f567289..9351293ef 100644 --- a/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h index 769f04df6..3baf0b312 100644 --- a/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h index 069d9653f..133aab110 100644 --- a/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h index e40cb0616..7ed3c3725 100644 --- a/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial4 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for fields. struct field @@ -107,6 +111,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial4 diff --git a/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h b/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h index 803fd6f57..104dc9650 100644 --- a/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h +++ b/tutorials/tutorial4/include/tutorial4/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial5/include/tutorial5/Message.h b/tutorials/tutorial5/include/tutorial5/Message.h index bc80d9cdc..d489a07ca 100644 --- a/tutorials/tutorial5/include/tutorial5/Message.h +++ b/tutorials/tutorial5/include/tutorial5/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial5/include/tutorial5/MsgId.h b/tutorials/tutorial5/include/tutorial5/MsgId.h index b6c42008c..c508ac603 100644 --- a/tutorials/tutorial5/include/tutorial5/MsgId.h +++ b/tutorials/tutorial5/include/tutorial5/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial5/include/tutorial5/Version.h b/tutorials/tutorial5/include/tutorial5/Version.h index 72ce8dfee..e58902454 100644 --- a/tutorials/tutorial5/include/tutorial5/Version.h +++ b/tutorials/tutorial5/include/tutorial5/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial5 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h index 0957d4062..9d2887b5a 100644 --- a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial5::options::DefaultOptions as template parameter. /// @note Defined in tutorial5/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h index 5d15da4ae..7b74b6ee8 100644 --- a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h +++ b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial5::options::DefaultOptions as template parameter. /// @note Defined in tutorial5/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h index d9a8e24b1..0419b09c5 100644 --- a/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial5/include/tutorial5/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial5::options::DefaultOptions as template parameter. /// @note Defined in tutorial5/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial5/include/tutorial5/field/FieldBase.h b/tutorials/tutorial5/include/tutorial5/field/FieldBase.h index 5782ce2a6..c511e9580 100644 --- a/tutorials/tutorial5/include/tutorial5/field/FieldBase.h +++ b/tutorials/tutorial5/include/tutorial5/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial5/include/tutorial5/field/MsgId.h b/tutorials/tutorial5/include/tutorial5/field/MsgId.h index 4224b0316..c04d8c95d 100644 --- a/tutorials/tutorial5/include/tutorial5/field/MsgId.h +++ b/tutorials/tutorial5/include/tutorial5/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h b/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h index 9625ebd6b..1fb9c5fc2 100644 --- a/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h +++ b/tutorials/tutorial5/include/tutorial5/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h index 2f9573360..b5046bc94 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "ClientToServerFrame" frame class. diff --git a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h index 510c9182f..f0e7601d5 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ClientToServerFrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h index 2c1e369e0..a4b6d13cf 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "ServerToClientFrame" frame class. diff --git a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h index fdfdae1d2..78a8abe06 100644 --- a/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h +++ b/tutorials/tutorial5/include/tutorial5/frame/ServerToClientFrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/input/AllMessages.h b/tutorials/tutorial5/include/tutorial5/input/AllMessages.h index 85cd02de9..1db441492 100644 --- a/tutorials/tutorial5/include/tutorial5/input/AllMessages.h +++ b/tutorials/tutorial5/include/tutorial5/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h b/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h index 35d6b81a4..c7288089d 100644 --- a/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h +++ b/tutorials/tutorial5/include/tutorial5/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h b/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h index 803c78f02..a5113acff 100644 --- a/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h +++ b/tutorials/tutorial5/include/tutorial5/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg1.h b/tutorials/tutorial5/include/tutorial5/message/Msg1.h index f304c7fa1..8c08e244d 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg1.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h b/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h index 091ed1196..daa680807 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg2.h b/tutorials/tutorial5/include/tutorial5/message/Msg2.h index f0b4734da..49dbfc486 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg2.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h b/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h index 2cc996365..53cde78f2 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg3.h b/tutorials/tutorial5/include/tutorial5/message/Msg3.h index d51186c08..09438b6ed 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg3.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h b/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h index f5401e6b0..e86556c15 100644 --- a/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h +++ b/tutorials/tutorial5/include/tutorial5/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h index eccb1dda5..d0b8c9edd 100644 --- a/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h index 0c48bdf27..a163d1769 100644 --- a/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h index 86644b2d5..91deb40d2 100644 --- a/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h index 525f8d76e..6e3c6d30d 100644 --- a/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial5 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -58,6 +62,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial5 diff --git a/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h b/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h index 7eb83eefc..f1fab174e 100644 --- a/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h +++ b/tutorials/tutorial5/include/tutorial5/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial6/include/tutorial6/Message.h b/tutorials/tutorial6/include/tutorial6/Message.h index dac2433dc..b3d1d518c 100644 --- a/tutorials/tutorial6/include/tutorial6/Message.h +++ b/tutorials/tutorial6/include/tutorial6/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial6/include/tutorial6/MsgId.h b/tutorials/tutorial6/include/tutorial6/MsgId.h index cbfbee152..99acb7f9f 100644 --- a/tutorials/tutorial6/include/tutorial6/MsgId.h +++ b/tutorials/tutorial6/include/tutorial6/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial6/include/tutorial6/Version.h b/tutorials/tutorial6/include/tutorial6/Version.h index 2cf61f638..3101e8675 100644 --- a/tutorials/tutorial6/include/tutorial6/Version.h +++ b/tutorials/tutorial6/include/tutorial6/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial6 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h index 4b7f62aea..c8d179b1d 100644 --- a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial6::options::DefaultOptions as template parameter. /// @note Defined in tutorial6/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h index b03d62d83..76f0866e7 100644 --- a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h +++ b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial6::options::DefaultOptions as template parameter. /// @note Defined in tutorial6/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h index 9e51470b0..06487cddd 100644 --- a/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial6/include/tutorial6/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial6::options::DefaultOptions as template parameter. /// @note Defined in tutorial6/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial6/include/tutorial6/field/FieldBase.h b/tutorials/tutorial6/include/tutorial6/field/FieldBase.h index 63381c5c0..6ae366e3c 100644 --- a/tutorials/tutorial6/include/tutorial6/field/FieldBase.h +++ b/tutorials/tutorial6/include/tutorial6/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial6/include/tutorial6/field/MsgId.h b/tutorials/tutorial6/include/tutorial6/field/MsgId.h index c788af314..e7abac85f 100644 --- a/tutorials/tutorial6/include/tutorial6/field/MsgId.h +++ b/tutorials/tutorial6/include/tutorial6/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h b/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h index ceb6be106..de627b181 100644 --- a/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h +++ b/tutorials/tutorial6/include/tutorial6/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/frame/Frame.h b/tutorials/tutorial6/include/tutorial6/frame/Frame.h index 6674c3a46..14066d5b8 100644 --- a/tutorials/tutorial6/include/tutorial6/frame/Frame.h +++ b/tutorials/tutorial6/include/tutorial6/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h b/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h index 6b798ca74..a854d82fa 100644 --- a/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h +++ b/tutorials/tutorial6/include/tutorial6/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/input/AllMessages.h b/tutorials/tutorial6/include/tutorial6/input/AllMessages.h index 6abe36741..8ee96d00e 100644 --- a/tutorials/tutorial6/include/tutorial6/input/AllMessages.h +++ b/tutorials/tutorial6/include/tutorial6/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h b/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h index f651043b5..74c6c3c59 100644 --- a/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h +++ b/tutorials/tutorial6/include/tutorial6/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h b/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h index 0844a2dde..0ebfe5992 100644 --- a/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h +++ b/tutorials/tutorial6/include/tutorial6/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg1.h b/tutorials/tutorial6/include/tutorial6/message/Msg1.h index a7cd9676d..481e1b2fe 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg1.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h b/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h index 2596ed256..b1af7d18a 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg2.h b/tutorials/tutorial6/include/tutorial6/message/Msg2.h index b86529db5..a2750a709 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg2.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h b/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h index b3231326b..89e5e02b0 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg3.h b/tutorials/tutorial6/include/tutorial6/message/Msg3.h index e2fce339b..bb8f99551 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg3.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h b/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h index c9d9f7a7c..b5c27eec2 100644 --- a/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h +++ b/tutorials/tutorial6/include/tutorial6/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h index cc8210f5d..989624c7a 100644 --- a/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h index 22ce10e0f..d9e2535b0 100644 --- a/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h index 1b1fbd538..633549393 100644 --- a/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h index ed209af6b..8ac7a17be 100644 --- a/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial6 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -40,6 +44,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial6 diff --git a/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h b/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h index ac4e93948..61d40c4bc 100644 --- a/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h +++ b/tutorials/tutorial6/include/tutorial6/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial7/include/tutorial7/Message.h b/tutorials/tutorial7/include/tutorial7/Message.h index 11f4bc6bb..10c7ca935 100644 --- a/tutorials/tutorial7/include/tutorial7/Message.h +++ b/tutorials/tutorial7/include/tutorial7/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial7/include/tutorial7/MsgId.h b/tutorials/tutorial7/include/tutorial7/MsgId.h index a02c9e146..dba01b242 100644 --- a/tutorials/tutorial7/include/tutorial7/MsgId.h +++ b/tutorials/tutorial7/include/tutorial7/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial7/include/tutorial7/Version.h b/tutorials/tutorial7/include/tutorial7/Version.h index 6cabf46c4..4e195a6ca 100644 --- a/tutorials/tutorial7/include/tutorial7/Version.h +++ b/tutorials/tutorial7/include/tutorial7/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial7 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h index d1324ad20..c75458b33 100644 --- a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial7::options::DefaultOptions as template parameter. /// @note Defined in tutorial7/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h index 35ffc9069..7ce3f20d9 100644 --- a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h +++ b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial7::options::DefaultOptions as template parameter. /// @note Defined in tutorial7/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h index d55a94aa4..640e842b7 100644 --- a/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial7/include/tutorial7/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial7::options::DefaultOptions as template parameter. /// @note Defined in tutorial7/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial7/include/tutorial7/field/FieldBase.h b/tutorials/tutorial7/include/tutorial7/field/FieldBase.h index a6f26997a..36e9f2e32 100644 --- a/tutorials/tutorial7/include/tutorial7/field/FieldBase.h +++ b/tutorials/tutorial7/include/tutorial7/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial7/include/tutorial7/field/MsgId.h b/tutorials/tutorial7/include/tutorial7/field/MsgId.h index 62b1ae7e8..60f00e7ca 100644 --- a/tutorials/tutorial7/include/tutorial7/field/MsgId.h +++ b/tutorials/tutorial7/include/tutorial7/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h b/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h index 14a868bbc..981f9de2d 100644 --- a/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h +++ b/tutorials/tutorial7/include/tutorial7/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/frame/Frame.h b/tutorials/tutorial7/include/tutorial7/frame/Frame.h index 0fef573e3..8874f5e92 100644 --- a/tutorials/tutorial7/include/tutorial7/frame/Frame.h +++ b/tutorials/tutorial7/include/tutorial7/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h b/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h index eacc70734..f4286bc0f 100644 --- a/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h +++ b/tutorials/tutorial7/include/tutorial7/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/input/AllMessages.h b/tutorials/tutorial7/include/tutorial7/input/AllMessages.h index 7c76116bf..0634a4e04 100644 --- a/tutorials/tutorial7/include/tutorial7/input/AllMessages.h +++ b/tutorials/tutorial7/include/tutorial7/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h b/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h index 838dba47a..c085a433d 100644 --- a/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h +++ b/tutorials/tutorial7/include/tutorial7/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h b/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h index 0d8484e5e..4247e384a 100644 --- a/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h +++ b/tutorials/tutorial7/include/tutorial7/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg1.h b/tutorials/tutorial7/include/tutorial7/message/Msg1.h index d111a9b6b..b223fc991 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg1.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h b/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h index ffa361aec..dea0489ec 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg2.h b/tutorials/tutorial7/include/tutorial7/message/Msg2.h index e6be7ac4c..4d667b2ac 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg2.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h b/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h index 7918a748a..ec5a9efff 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg3.h b/tutorials/tutorial7/include/tutorial7/message/Msg3.h index c679be9ae..0de6c53e7 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg3.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h b/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h index 0543f82e3..32179b35d 100644 --- a/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h +++ b/tutorials/tutorial7/include/tutorial7/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h index ee7f2fd98..bc9e35a00 100644 --- a/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h index c5ca636b0..80032d2e9 100644 --- a/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h index fac262733..0f19ad837 100644 --- a/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h index c4a0e84ed..52d1cbf2f 100644 --- a/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial7 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -40,6 +44,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial7 diff --git a/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h b/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h index 7031a57b6..314636579 100644 --- a/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h +++ b/tutorials/tutorial7/include/tutorial7/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial8/include/tutorial8/Message.h b/tutorials/tutorial8/include/tutorial8/Message.h index 1d1edf7ee..5d4c91655 100644 --- a/tutorials/tutorial8/include/tutorial8/Message.h +++ b/tutorials/tutorial8/include/tutorial8/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial8/include/tutorial8/MsgId.h b/tutorials/tutorial8/include/tutorial8/MsgId.h index b6c8fc373..b9514e343 100644 --- a/tutorials/tutorial8/include/tutorial8/MsgId.h +++ b/tutorials/tutorial8/include/tutorial8/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial8/include/tutorial8/Version.h b/tutorials/tutorial8/include/tutorial8/Version.h index cbae64926..85ccec38b 100644 --- a/tutorials/tutorial8/include/tutorial8/Version.h +++ b/tutorials/tutorial8/include/tutorial8/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial8 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h index 3cfc059cb..ae58cb504 100644 --- a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial8::options::DefaultOptions as template parameter. /// @note Defined in tutorial8/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h index 606a4897f..e9ff8687b 100644 --- a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h +++ b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -190,7 +190,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial8::options::DefaultOptions as template parameter. /// @note Defined in tutorial8/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h index 8fc2f0532..bf73d3781 100644 --- a/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial8/include/tutorial8/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -190,7 +190,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial8::options::DefaultOptions as template parameter. /// @note Defined in tutorial8/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial8/include/tutorial8/field/FieldBase.h b/tutorials/tutorial8/include/tutorial8/field/FieldBase.h index 7e11bb3e5..4fc384a7e 100644 --- a/tutorials/tutorial8/include/tutorial8/field/FieldBase.h +++ b/tutorials/tutorial8/include/tutorial8/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial8/include/tutorial8/field/MsgId.h b/tutorials/tutorial8/include/tutorial8/field/MsgId.h index 449650298..3f34bdb25 100644 --- a/tutorials/tutorial8/include/tutorial8/field/MsgId.h +++ b/tutorials/tutorial8/include/tutorial8/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h b/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h index e12ec27cf..5d9d05d80 100644 --- a/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h +++ b/tutorials/tutorial8/include/tutorial8/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/frame/Frame.h b/tutorials/tutorial8/include/tutorial8/frame/Frame.h index 1e885b342..23f08606e 100644 --- a/tutorials/tutorial8/include/tutorial8/frame/Frame.h +++ b/tutorials/tutorial8/include/tutorial8/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h b/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h index f581b6091..50c8e414e 100644 --- a/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h +++ b/tutorials/tutorial8/include/tutorial8/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/input/AllMessages.h b/tutorials/tutorial8/include/tutorial8/input/AllMessages.h index d4f9a9bc7..c12f4a35d 100644 --- a/tutorials/tutorial8/include/tutorial8/input/AllMessages.h +++ b/tutorials/tutorial8/include/tutorial8/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h b/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h index 8adfb0456..186fee97d 100644 --- a/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h +++ b/tutorials/tutorial8/include/tutorial8/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h b/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h index 5c567b0fc..36a1725a7 100644 --- a/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h +++ b/tutorials/tutorial8/include/tutorial8/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg1.h b/tutorials/tutorial8/include/tutorial8/message/Msg1.h index e1395b1d9..69a019d0d 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg1.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h b/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h index 9007acbce..305746d68 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg2.h b/tutorials/tutorial8/include/tutorial8/message/Msg2.h index 47ff0885d..76b989971 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg2.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h b/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h index 56da63d93..abc2f6a60 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg3.h b/tutorials/tutorial8/include/tutorial8/message/Msg3.h index 72f529da4..45f8e3773 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg3.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h b/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h index 563327250..0799e7a9f 100644 --- a/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h +++ b/tutorials/tutorial8/include/tutorial8/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h index d1805e7a5..60412f97b 100644 --- a/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h index 122fc6036..005e491c6 100644 --- a/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h index 28267d8df..3f3f5e945 100644 --- a/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h index 2325a0f95..4f4388008 100644 --- a/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial8 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for frames. struct frame @@ -40,6 +44,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial8 diff --git a/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h b/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h index 341cd7b7c..47fae2244 100644 --- a/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h +++ b/tutorials/tutorial8/include/tutorial8/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. diff --git a/tutorials/tutorial9/include/tutorial9/Message.h b/tutorials/tutorial9/include/tutorial9/Message.h index 7dcc87e53..155bc8cdd 100644 --- a/tutorials/tutorial9/include/tutorial9/Message.h +++ b/tutorials/tutorial9/include/tutorial9/Message.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message" interface class. diff --git a/tutorials/tutorial9/include/tutorial9/MsgId.h b/tutorials/tutorial9/include/tutorial9/MsgId.h index 59213a2bf..2686ea83e 100644 --- a/tutorials/tutorial9/include/tutorial9/MsgId.h +++ b/tutorials/tutorial9/include/tutorial9/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of message ids enumeration. diff --git a/tutorials/tutorial9/include/tutorial9/Version.h b/tutorials/tutorial9/include/tutorial9/Version.h index 22755b9a4..1d47420fd 100644 --- a/tutorials/tutorial9/include/tutorial9/Version.h +++ b/tutorials/tutorial9/include/tutorial9/Version.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains protocol version definition. @@ -22,6 +22,6 @@ inline constexpr unsigned specVersion() } // namespace tutorial9 // Generated compile time check for minimal supported version of the COMMS library -static_assert(COMMS_MAKE_VERSION(4, 1, 0) <= comms::version(), +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), "The version of COMMS library is too old"); diff --git a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h index 4b578a47b..dd2308610 100644 --- a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchClientInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ClientInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ClientInputMsgDispatcher, but passing +/// @details Same as ClientInputMsgDispatcher, but passing /// @ref tutorial9::options::DefaultOptions as template parameter. /// @note Defined in tutorial9/dispatch/DispatchClientInputMessage.h using ClientInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h index f1adb55e0..94d5644af 100644 --- a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h +++ b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for all input messages. @@ -195,7 +195,7 @@ struct MsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref MsgDispatcher, but passing +/// @details Same as MsgDispatcher, but passing /// @ref tutorial9::options::DefaultOptions as template parameter. /// @note Defined in tutorial9/dispatch/DispatchMessage.h using MsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h index 59c87fcba..6a796ca9e 100644 --- a/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial9/include/tutorial9/dispatch/DispatchServerInputMessage.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains dispatch to handling function(s) for client input input messages. @@ -185,7 +185,7 @@ struct ServerInputMsgDispatcher /// @brief Message dispatcher class to be used with /// @b comms::processAllWithDispatchViaDispatcher() function (or similar). -/// @details Same as @ref ServerInputMsgDispatcher, but passing +/// @details Same as ServerInputMsgDispatcher, but passing /// @ref tutorial9::options::DefaultOptions as template parameter. /// @note Defined in tutorial9/dispatch/DispatchServerInputMessage.h using ServerInputMsgDispatcherDefaultOptions = diff --git a/tutorials/tutorial9/include/tutorial9/field/FieldBase.h b/tutorials/tutorial9/include/tutorial9/field/FieldBase.h index 6563e7eb6..d2512d74d 100644 --- a/tutorials/tutorial9/include/tutorial9/field/FieldBase.h +++ b/tutorials/tutorial9/include/tutorial9/field/FieldBase.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of base class of all the fields. diff --git a/tutorials/tutorial9/include/tutorial9/field/MsgId.h b/tutorials/tutorial9/include/tutorial9/field/MsgId.h index fa27f56cd..89f8d08cc 100644 --- a/tutorials/tutorial9/include/tutorial9/field/MsgId.h +++ b/tutorials/tutorial9/include/tutorial9/field/MsgId.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "MsgId" field. diff --git a/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h b/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h index 9491ac927..f07a2db96 100644 --- a/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h +++ b/tutorials/tutorial9/include/tutorial9/field/MsgIdCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/frame/Frame.h b/tutorials/tutorial9/include/tutorial9/frame/Frame.h index cc0b142f4..85a14c437 100644 --- a/tutorials/tutorial9/include/tutorial9/frame/Frame.h +++ b/tutorials/tutorial9/include/tutorial9/frame/Frame.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Frame" frame class. diff --git a/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h b/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h index b3c2f47ba..e724d0ef8 100644 --- a/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h +++ b/tutorials/tutorial9/include/tutorial9/frame/FrameCommon.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/input/AllMessages.h b/tutorials/tutorial9/include/tutorial9/input/AllMessages.h index f75a0fe52..e04d976cd 100644 --- a/tutorials/tutorial9/include/tutorial9/input/AllMessages.h +++ b/tutorials/tutorial9/include/tutorial9/input/AllMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the AllMessages messages bundle. diff --git a/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h b/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h index e4e240b22..fee66b18a 100644 --- a/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h +++ b/tutorials/tutorial9/include/tutorial9/input/ClientInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ClientInputMessages messages bundle. diff --git a/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h b/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h index bac9f8fb0..224465c86 100644 --- a/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h +++ b/tutorials/tutorial9/include/tutorial9/input/ServerInputMessages.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of the ServerInputMessages messages bundle. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg1.h b/tutorials/tutorial9/include/tutorial9/message/Msg1.h index 97b7e5331..43823edbe 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg1.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg1.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 1" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h index 94446adc0..0b9b09f3d 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg1Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg2.h b/tutorials/tutorial9/include/tutorial9/message/Msg2.h index 07fd999e9..40ae9eaaa 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg2.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg2.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 2" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h index ecd1afa3c..6e9f99942 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg2Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg3.h b/tutorials/tutorial9/include/tutorial9/message/Msg3.h index db2c8004f..e4d6bc588 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg3.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg3.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 3" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h index bc6f80b17..098517670 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg3Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg4.h b/tutorials/tutorial9/include/tutorial9/message/Msg4.h index 35796a420..0a42cf418 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg4.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg4.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of "Message 4" message and its fields. diff --git a/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h b/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h index 7a5bbeb60..23e2aec8b 100644 --- a/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h +++ b/tutorials/tutorial9/include/tutorial9/message/Msg4Common.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains common template parameters independent functionality of diff --git a/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h index b0f30c5a9..50ee71158 100644 --- a/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/BareMetalDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol bare metal default options. diff --git a/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h index dc08737f2..6c6009322 100644 --- a/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/ClientDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol client default options. diff --git a/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h index ac54f2c6c..145fb11ea 100644 --- a/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/DataViewDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol data view default options. diff --git a/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h index 7e7ea0b9b..f627a9cf6 100644 --- a/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/DefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol default options. @@ -13,8 +13,12 @@ namespace tutorial9 namespace options { +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + /// @brief Default (empty) options of the protocol. -struct DefaultOptions +template +struct DefaultOptionsT : public TBase { /// @brief Extra options for messages. struct message @@ -61,6 +65,9 @@ struct DefaultOptions }; +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + } // namespace options } // namespace tutorial9 diff --git a/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h b/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h index 6e5dc4085..36d6b3c20 100644 --- a/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h +++ b/tutorials/tutorial9/include/tutorial9/options/ServerDefaultOptions.h @@ -1,4 +1,4 @@ -// Generated by commsdsl2comms v4.0.1 +// Generated by commsdsl2comms v5.0.0 /// @file /// @brief Contains definition of protocol server default options. From 4868b4c7a22a137ab2ba663ab52483ba2c79150b Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sat, 30 Jul 2022 19:06:58 +1000 Subject: [PATCH 03/12] Added definition for tutorial22. --- README.md | 1 + lib/include/Session.h | 10 +- lib/src/Session.cpp | 14 +- lib/src/TcpClient.cpp | 4 +- lib/src/TcpClient.h | 1 + lib/src/TcpServer.cpp | 9 +- lib/src/TcpServer.h | 4 +- tutorials/CMakeLists.txt | 1 + tutorials/tutorial14/README.md | 10 +- tutorials/tutorial14/dsl/schema.xml | 2 +- tutorials/tutorial21/README.md | 2 +- tutorials/tutorial22/CMakeLists.txt | 19 ++ tutorials/tutorial22/README.md | 4 + tutorials/tutorial22/dsl/schema.xml | 40 +++ .../include/tutorial22/field/Length.h.value | 30 ++ .../tutorial22/include/tutorial22/Message.h | 29 ++ .../tutorial22/include/tutorial22/MsgId.h | 27 ++ .../tutorial22/include/tutorial22/Version.h | 27 ++ .../dispatch/DispatchClientInputMessage.h | 198 ++++++++++++ .../tutorial22/dispatch/DispatchMessage.h | 198 ++++++++++++ .../dispatch/DispatchServerInputMessage.h | 198 ++++++++++++ .../include/tutorial22/field/FieldBase.h | 30 ++ .../include/tutorial22/field/Length.h | 303 ++++++++++++++++++ .../include/tutorial22/field/LengthCommon.h | 131 ++++++++ .../include/tutorial22/field/MsgId.h | 86 +++++ .../include/tutorial22/field/MsgIdCommon.h | 81 +++++ .../include/tutorial22/frame/Frame.h | 158 +++++++++ .../include/tutorial22/frame/FrameCommon.h | 58 ++++ .../include/tutorial22/input/AllMessages.h | 31 ++ .../tutorial22/input/ClientInputMessages.h | 31 ++ .../tutorial22/input/ServerInputMessages.h | 31 ++ .../include/tutorial22/message/Msg1.h | 80 +++++ .../include/tutorial22/message/Msg1Common.h | 33 ++ .../include/tutorial22/message/Msg2.h | 117 +++++++ .../include/tutorial22/message/Msg2Common.h | 52 +++ .../options/BareMetalDefaultOptions.h | 84 +++++ .../tutorial22/options/ClientDefaultOptions.h | 27 ++ .../options/DataViewDefaultOptions.h | 69 ++++ .../tutorial22/options/DefaultOptions.h | 69 ++++ .../tutorial22/options/ServerDefaultOptions.h | 27 ++ tutorials/tutorial22/src/ClientSession.cpp | 148 +++++++++ tutorials/tutorial22/src/ClientSession.h | 76 +++++ tutorials/tutorial22/src/ServerSession.cpp | 61 ++++ tutorials/tutorial22/src/ServerSession.h | 56 ++++ 44 files changed, 2646 insertions(+), 21 deletions(-) create mode 100644 tutorials/tutorial22/CMakeLists.txt create mode 100644 tutorials/tutorial22/README.md create mode 100644 tutorials/tutorial22/dsl/schema.xml create mode 100644 tutorials/tutorial22/dsl_src/include/tutorial22/field/Length.h.value create mode 100644 tutorials/tutorial22/include/tutorial22/Message.h create mode 100644 tutorials/tutorial22/include/tutorial22/MsgId.h create mode 100644 tutorials/tutorial22/include/tutorial22/Version.h create mode 100644 tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h create mode 100644 tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h create mode 100644 tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h create mode 100644 tutorials/tutorial22/include/tutorial22/field/FieldBase.h create mode 100644 tutorials/tutorial22/include/tutorial22/field/Length.h create mode 100644 tutorials/tutorial22/include/tutorial22/field/LengthCommon.h create mode 100644 tutorials/tutorial22/include/tutorial22/field/MsgId.h create mode 100644 tutorials/tutorial22/include/tutorial22/field/MsgIdCommon.h create mode 100644 tutorials/tutorial22/include/tutorial22/frame/Frame.h create mode 100644 tutorials/tutorial22/include/tutorial22/frame/FrameCommon.h create mode 100644 tutorials/tutorial22/include/tutorial22/input/AllMessages.h create mode 100644 tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h create mode 100644 tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h create mode 100644 tutorials/tutorial22/include/tutorial22/message/Msg1.h create mode 100644 tutorials/tutorial22/include/tutorial22/message/Msg1Common.h create mode 100644 tutorials/tutorial22/include/tutorial22/message/Msg2.h create mode 100644 tutorials/tutorial22/include/tutorial22/message/Msg2Common.h create mode 100644 tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h create mode 100644 tutorials/tutorial22/include/tutorial22/options/ClientDefaultOptions.h create mode 100644 tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h create mode 100644 tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h create mode 100644 tutorials/tutorial22/include/tutorial22/options/ServerDefaultOptions.h create mode 100644 tutorials/tutorial22/src/ClientSession.cpp create mode 100644 tutorials/tutorial22/src/ClientSession.h create mode 100644 tutorials/tutorial22/src/ServerSession.cpp create mode 100644 tutorials/tutorial22/src/ServerSession.h diff --git a/README.md b/README.md index 6959fd9d8..957004497 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ $> nmake install - [tutorial19](../../tree/master/tutorials/tutorial19) - Introduction to protocol version support. - [tutorial20](../../tree/master/tutorials/tutorial20) - Reporting protocol version in one of the messages. - [tutorial21](../../tree/master/tutorials/tutorial21) - Cast between different field types. +- [tutorial21](../../tree/master/tutorials/tutorial22) - Complex length fields. # How-Tos diff --git a/lib/include/Session.h b/lib/include/Session.h index d3f817bc5..e23a8a924 100644 --- a/lib/include/Session.h +++ b/lib/include/Session.h @@ -17,16 +17,16 @@ class Session public: using Ptr = std::unique_ptr; using Socket = boost::asio::ip::tcp::socket; + using SocketPtr = std::unique_ptr; explicit Session(boost_wrap::io& io) : - m_io(io), - m_socket(io) + m_io(io) { } - virtual ~Session() = default; + virtual ~Session(); - void setSocket(Socket&& socket) + void setSocket(SocketPtr socket) { m_socket = std::move(socket); } @@ -150,7 +150,7 @@ class Session void doRead(); boost_wrap::io& m_io; - Socket m_socket; + SocketPtr m_socket; std::array m_inBuf; std::vector m_inData; TerminateCb m_terminateCb; diff --git a/lib/src/Session.cpp b/lib/src/Session.cpp index 8b19579fa..5b84e8d9a 100644 --- a/lib/src/Session.cpp +++ b/lib/src/Session.cpp @@ -1,13 +1,16 @@ #include "Session.h" #include +#include namespace cc_tutorial { +Session::~Session() = default; + bool Session::start() { - assert(m_socket.is_open()); + assert(m_socket->is_open()); if (!startImpl()) { return false; @@ -28,14 +31,14 @@ void Session::sendOutput(const std::uint8_t* buf, std::size_t bufLen) std::copy(buf, buf + bufLen, std::ostream_iterator(std::cout, " ")); std::cout << std::dec << std::endl; - if (!m_socket.is_open()) { + if (!m_socket->is_open()) { return; } std::size_t consumed = 0U; while (consumed < bufLen) { boost::system::error_code ec; - consumed += boost::asio::write(m_socket, boost::asio::buffer(buf, bufLen), ec); + consumed += boost::asio::write(*m_socket, boost::asio::buffer(buf, bufLen), ec); if (ec) { std::cerr << "ERROR: Failed to write: " << ec.message() << std::endl; terminateSession(); @@ -52,8 +55,9 @@ void Session::terminateSession() void Session::doRead() { - assert(m_socket.is_open()); - m_socket.async_read_some( + assert(m_socket); + assert(m_socket->is_open()); + m_socket->async_read_some( boost::asio::buffer(m_inBuf), [this](const boost::system::error_code& ec, std::size_t bytesCount) { diff --git a/lib/src/TcpClient.cpp b/lib/src/TcpClient.cpp index 485a42b62..f1bb78cb0 100644 --- a/lib/src/TcpClient.cpp +++ b/lib/src/TcpClient.cpp @@ -19,9 +19,9 @@ TcpClient::TcpClient(boost_wrap::io& io) bool TcpClient::start(PortType port) { - Socket socket(m_io); + SocketPtr socket(new Socket(m_io)); boost::system::error_code ec; - socket.connect(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port), ec); + socket->connect(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port), ec); if (ec) { std::cerr << "ERROR: Failed to connect with error: " << ec.message(); return false; diff --git a/lib/src/TcpClient.h b/lib/src/TcpClient.h index 75f90cdd5..e7d17c907 100644 --- a/lib/src/TcpClient.h +++ b/lib/src/TcpClient.h @@ -11,6 +11,7 @@ class TcpClient { public: using Socket = Session::Socket; + using SocketPtr = Session::SocketPtr; using PortType = unsigned short; explicit TcpClient(boost_wrap::io& io); diff --git a/lib/src/TcpServer.cpp b/lib/src/TcpServer.cpp index 2d5785a7e..67365e4c9 100644 --- a/lib/src/TcpServer.cpp +++ b/lib/src/TcpServer.cpp @@ -8,8 +8,7 @@ namespace cc_tutorial TcpServer::TcpServer(boost_wrap::io& io) : m_io(io), - m_acceptor(io), - m_socket(io) + m_acceptor(io) { } @@ -43,8 +42,9 @@ bool TcpServer::start(PortType port) void TcpServer::doAccept() { + m_socket.reset(new Socket(m_io)); m_acceptor.async_accept( - m_socket, + *m_socket, [this](const boost::system::error_code& ec) { if (ec == boost::asio::error::operation_aborted) { @@ -58,7 +58,7 @@ void TcpServer::doAccept() } std::stringstream stream; - stream << m_socket.remote_endpoint(); + stream << m_socket->remote_endpoint(); auto sessionId = stream.str(); std::cout << "INFO: New connection from " << sessionId << std::endl; @@ -83,6 +83,7 @@ void TcpServer::doAccept() break; } + assert(!m_socket); m_sessions.insert(std::make_pair(std::move(sessionId), std::move(session))); } while (false); diff --git a/lib/src/TcpServer.h b/lib/src/TcpServer.h index 5be46a657..ad722e6c9 100644 --- a/lib/src/TcpServer.h +++ b/lib/src/TcpServer.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include @@ -14,6 +15,7 @@ class TcpServer public: using Acceptor = boost::asio::ip::tcp::acceptor; using Socket = boost::asio::ip::tcp::socket; + using SocketPtr = std::unique_ptr; using PortType = unsigned short; explicit TcpServer(boost_wrap::io& io); @@ -27,7 +29,7 @@ class TcpServer boost_wrap::io& m_io; Acceptor m_acceptor; - Socket m_socket; + SocketPtr m_socket; SessionsMap m_sessions; }; diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt index 1515bf989..1518e1052 100644 --- a/tutorials/CMakeLists.txt +++ b/tutorials/CMakeLists.txt @@ -31,3 +31,4 @@ add_subdirectory (tutorial18) add_subdirectory (tutorial19) add_subdirectory (tutorial20) add_subdirectory (tutorial21) +add_subdirectory (tutorial22) diff --git a/tutorials/tutorial14/README.md b/tutorials/tutorial14/README.md index 212e5851a..14b425d86 100644 --- a/tutorials/tutorial14/README.md +++ b/tutorials/tutorial14/README.md @@ -84,7 +84,7 @@ need to be interpreted as two `uint16` values. The [CommsDSL](https://github.com/commschamp/CommsDSL-Specification) definition of such message may look like this: ```xml - + @@ -230,6 +230,7 @@ code generator is correct or custom code injection is required. Since **v4.0** o [CommsDSL](https://github.com/commschamp/CommsDSL-Specification) and [commsdsl2comms](https://github.com/commschamp/commsdsl) it is possible to specify overriding code requirements using the following properties: +- **valueOverride** - specifies overriding code requirement for the **value** retrieval operation. - **readOverride** - specifies overriding code requirement for the **read** operation. - **writeOverride** - specifies overriding code requirement for the **write** operation. - **refreshOverride** - specifies overriding code requirement for the **refresh** operation. @@ -247,7 +248,12 @@ All these properties can have one of the following values: - **none** - The [commsdsl2comms](https://github.com/commschamp/commsdsl) code generator will ignore the custom code for injection even if it's available. - +The `Msg1` definition of the schema uses these properties: +``` + + ... + +``` ---- ## Summary diff --git a/tutorials/tutorial14/dsl/schema.xml b/tutorials/tutorial14/dsl/schema.xml index c5e61281c..51d4aea50 100644 --- a/tutorials/tutorial14/dsl/schema.xml +++ b/tutorials/tutorial14/dsl/schema.xml @@ -25,7 +25,7 @@ - + diff --git a/tutorials/tutorial21/README.md b/tutorials/tutorial21/README.md index 7f5df7bd8..8dbef3486 100644 --- a/tutorials/tutorial21/README.md +++ b/tutorials/tutorial21/README.md @@ -143,4 +143,4 @@ a temporary buffer (because their inner `ValueType` types are NOT convertible). `static_cast` when field's inner `ValueType` types are convertible and uses temporary buffer with write / read operations when such conversion is not possible. -[Read Previous Tutorial](../tutorial20) <----------------------- +[Read Previous Tutorial](../tutorial20) <----------------------- [Read Next Tutorial](../tutorial22) diff --git a/tutorials/tutorial22/CMakeLists.txt b/tutorials/tutorial22/CMakeLists.txt new file mode 100644 index 000000000..2be0f05d0 --- /dev/null +++ b/tutorials/tutorial22/CMakeLists.txt @@ -0,0 +1,19 @@ +get_filename_component(name ${CMAKE_CURRENT_SOURCE_DIR} NAME) + +set (schema_files + ${CMAKE_CURRENT_SOURCE_DIR}/dsl/schema.xml +) + +set (server_src + src/ServerSession.cpp +) + +set (client_src + src/ClientSession.cpp +) + +dsl_tutorial_parse(${name} SCHEMAS ${schema_files} SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dsl_src) + +bin_tutorial_server(${name} ${server_src}) +bin_tutorial_client(${name} ${client_src}) + diff --git a/tutorials/tutorial22/README.md b/tutorials/tutorial22/README.md new file mode 100644 index 000000000..2ebf600ad --- /dev/null +++ b/tutorials/tutorial22/README.md @@ -0,0 +1,4 @@ +# Tutorial 22 +Complex length fields. + +[Read Previous Tutorial](../tutorial21) <----------------------- diff --git a/tutorials/tutorial22/dsl/schema.xml b/tutorials/tutorial22/dsl/schema.xml new file mode 100644 index 000000000..373d6dbbb --- /dev/null +++ b/tutorials/tutorial22/dsl/schema.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorials/tutorial22/dsl_src/include/tutorial22/field/Length.h.value b/tutorials/tutorial22/dsl_src/include/tutorial22/field/Length.h.value new file mode 100644 index 000000000..85f8c3f97 --- /dev/null +++ b/tutorials/tutorial22/dsl_src/include/tutorial22/field/Length.h.value @@ -0,0 +1,30 @@ +/// @brief Get length value +std::size_t getValue() const +{ + if (!field_short().isLongForm()) { + return static_cast(field_short().value()); + } + + COMMS_ASSERT(field_long().doesExist()); // Make sure the field in the consistent state + return static_cast(field_long().field().value()); +} + +/// @brief Set length value +void setValue(std::size_t val) +{ + if (val < Field_short::valueLongForm()) { + field_short().setValue(val); + field_long().setMissing(); + return; + } + + field_short().setLongForm(); + field_long().field().setValue(val); + field_long().setExists(); +} + +/// @brief Maximal possible length value +static constexpr std::size_t maxValue() +{ + return std::numeric_limits::max(); +} diff --git a/tutorials/tutorial22/include/tutorial22/Message.h b/tutorials/tutorial22/include/tutorial22/Message.h new file mode 100644 index 000000000..4d1d0f571 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/Message.h @@ -0,0 +1,29 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Message" interface class. + +#pragma once + +#include "comms/Message.h" +#include "comms/options.h" +#include "tutorial22/MsgId.h" + +namespace tutorial22 +{ + + +/// @brief Definition of "Message" common interface class. +/// @tparam TOpt Interface definition options +/// @headerfile tutorial22/Message.h +template +using Message = + comms::Message< + TOpt..., + comms::option::def::BigEndian, + comms::option::def::MsgIdType + >; + +} // namespace tutorial22 + + diff --git a/tutorials/tutorial22/include/tutorial22/MsgId.h b/tutorials/tutorial22/include/tutorial22/MsgId.h new file mode 100644 index 000000000..2959b6a73 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/MsgId.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of message ids enumeration. + +#pragma once + +#include +#include "tutorial22/Version.h" + +namespace tutorial22 +{ +/// @brief Message ids enumeration. +enum MsgId : std::uint8_t +{ + MsgId_M1 = 1, ///< message id of Message 1 message. , + MsgId_M2 = 2, ///< message id of Message 2 message. , + MsgId_M3 = 3, ///< message id of Message 3 message. , + + // --- Extra values generated for convenience ---, + MsgId_FirstValue = 1, ///< First defined value., + MsgId_LastValue = 3, ///< Last defined value., + MsgId_ValuesLimit = 4, ///< Upper limit for defined values. +}; + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/Version.h b/tutorials/tutorial22/include/tutorial22/Version.h new file mode 100644 index 000000000..17a28fb85 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/Version.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains protocol version definition. + +#pragma once + +#include "comms/version.h" + +/// @brief Version of the protocol specification. +#define TUTORIAL22_SPEC_VERSION (0U) + +namespace tutorial22 +{ + +/// @brief Version of the protocol specification. +inline constexpr unsigned specVersion() +{ + return TUTORIAL22_SPEC_VERSION; +} + +} // namespace tutorial22 + +// Generated compile time check for minimal supported version of the COMMS library +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), + "The version of COMMS library is too old"); + diff --git a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h new file mode 100644 index 000000000..2de827df9 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h @@ -0,0 +1,198 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains dispatch to handling function(s) for client input input messages. + +#pragma once + +#include "tutorial22/MsgId.h" +#include "tutorial22/input/ClientInputMessages.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace dispatch +{ + +/// @brief Dispatch message object to its appropriate handling function. +/// @details @b switch statement based (on message ID) cast and dispatch functionality. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. Must define +/// @b handle() member function for every message type it exects +/// to handle and one for the interface class as well. +/// @code +/// using MyInterface = tutorial22::Message<...>; +/// using MyMsg1 = tutorial22::message::Msg1; +/// using MyMsg2 = tutorial22::message::Msg2; +/// struct MyHandler { +/// void handle(MyMsg1& msg) {...} +/// void handle(MyMsg2& msg) {...} +/// ... +/// // Handle all unexpected or irrelevant messages. +/// void handle(MyInterface& msg) {...} +/// }; +/// @endcode +/// Every @b handle() function may return a value, but every +/// function must return the @b same type. +/// @note Defined in tutorial22/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessage( + tutorial22::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + using InterfaceType = typename std::decay::type; + switch(id) { + case tutorial22::MsgId_M1: + { + using MsgType = tutorial22::message::Msg1; + return handler.handle(static_cast(msg)); + } + case tutorial22::MsgId_M2: + { + using MsgType = tutorial22::message::Msg2; + return handler.handle(static_cast(msg)); + } + default: + break; + }; + + return handler.handle(msg); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchClientInputMessage(), but receives extra @b idx parameter. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// Expected to be @b 0. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchClientInputMessage() +/// @note Defined in tutorial22/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessage( + tutorial22::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + if (idx != 0U) { + return handler.handle(msg); + } + return dispatchClientInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchClientInputMessage(), but passing +/// tutorial22::options::DefaultOptions as first template parameter. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchClientInputMessage() +/// @note Defined in tutorial22/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessageDefaultOptions( + tutorial22::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchClientInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchClientInputMessageDefaultOptions(), +/// but receives extra @b idx parameter. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchClientInputMessageDefaultOptions() +/// @note Defined in tutorial22/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessageDefaultOptions( + tutorial22::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchClientInputMessage(id, idx, msg, handler); +} + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @headerfile tutorial22/dispatch/DispatchClientInputMessage.h +template +struct ClientInputMsgDispatcher +{ + /// @brief Class detection tag + using MsgDispatcherTag = void; + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchClientInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] idx Index (or offset) of the message among those having the same numeric ID. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchClientInputMessage() function returns. + template + static auto dispatch(tutorial22::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(tutorial22::dispatch::dispatchClientInputMessage(id, idx, msg, handler)) + { + return tutorial22::dispatch::dispatchClientInputMessage(id, idx, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial22::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, idx, msg, handler)) + { + return dispatch(id, idx, msg, handler); + } + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchClientInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchClientInputMessage() function returns. + template + static auto dispatch(tutorial22::MsgId id, TMsg& msg, THandler& handler) -> + decltype(tutorial22::dispatch::dispatchClientInputMessage(id, msg, handler)) + { + return tutorial22::dispatch::dispatchClientInputMessage(id, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial22::MsgId id, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, msg, handler)) + { + return dispatch(id, msg, handler); + } +}; + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @details Same as ClientInputMsgDispatcher, but passing +/// @ref tutorial22::options::DefaultOptions as template parameter. +/// @note Defined in tutorial22/dispatch/DispatchClientInputMessage.h +using ClientInputMsgDispatcherDefaultOptions = + ClientInputMsgDispatcher; + + + +} // namespace dispatch + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h new file mode 100644 index 000000000..4271b923e --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h @@ -0,0 +1,198 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains dispatch to handling function(s) for all input messages. + +#pragma once + +#include "tutorial22/MsgId.h" +#include "tutorial22/input/AllMessages.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace dispatch +{ + +/// @brief Dispatch message object to its appropriate handling function. +/// @details @b switch statement based (on message ID) cast and dispatch functionality. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. Must define +/// @b handle() member function for every message type it exects +/// to handle and one for the interface class as well. +/// @code +/// using MyInterface = tutorial22::Message<...>; +/// using MyMsg1 = tutorial22::message::Msg1; +/// using MyMsg2 = tutorial22::message::Msg2; +/// struct MyHandler { +/// void handle(MyMsg1& msg) {...} +/// void handle(MyMsg2& msg) {...} +/// ... +/// // Handle all unexpected or irrelevant messages. +/// void handle(MyInterface& msg) {...} +/// }; +/// @endcode +/// Every @b handle() function may return a value, but every +/// function must return the @b same type. +/// @note Defined in tutorial22/dispatch/DispatchMessage.h +template +auto dispatchMessage( + tutorial22::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + using InterfaceType = typename std::decay::type; + switch(id) { + case tutorial22::MsgId_M1: + { + using MsgType = tutorial22::message::Msg1; + return handler.handle(static_cast(msg)); + } + case tutorial22::MsgId_M2: + { + using MsgType = tutorial22::message::Msg2; + return handler.handle(static_cast(msg)); + } + default: + break; + }; + + return handler.handle(msg); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchMessage(), but receives extra @b idx parameter. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// Expected to be @b 0. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchMessage() +/// @note Defined in tutorial22/dispatch/DispatchMessage.h +template +auto dispatchMessage( + tutorial22::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + if (idx != 0U) { + return handler.handle(msg); + } + return dispatchMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchMessage(), but passing +/// tutorial22::options::DefaultOptions as first template parameter. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchMessage() +/// @note Defined in tutorial22/dispatch/DispatchMessage.h +template +auto dispatchMessageDefaultOptions( + tutorial22::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchMessageDefaultOptions(), +/// but receives extra @b idx parameter. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchMessageDefaultOptions() +/// @note Defined in tutorial22/dispatch/DispatchMessage.h +template +auto dispatchMessageDefaultOptions( + tutorial22::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchMessage(id, idx, msg, handler); +} + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @headerfile tutorial22/dispatch/DispatchMessage.h +template +struct MsgDispatcher +{ + /// @brief Class detection tag + using MsgDispatcherTag = void; + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchMessage() function. + /// @param[in] id ID of the message. + /// @param[in] idx Index (or offset) of the message among those having the same numeric ID. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchMessage() function returns. + template + static auto dispatch(tutorial22::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(tutorial22::dispatch::dispatchMessage(id, idx, msg, handler)) + { + return tutorial22::dispatch::dispatchMessage(id, idx, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial22::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, idx, msg, handler)) + { + return dispatch(id, idx, msg, handler); + } + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchMessage() function. + /// @param[in] id ID of the message. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchMessage() function returns. + template + static auto dispatch(tutorial22::MsgId id, TMsg& msg, THandler& handler) -> + decltype(tutorial22::dispatch::dispatchMessage(id, msg, handler)) + { + return tutorial22::dispatch::dispatchMessage(id, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial22::MsgId id, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, msg, handler)) + { + return dispatch(id, msg, handler); + } +}; + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @details Same as MsgDispatcher, but passing +/// @ref tutorial22::options::DefaultOptions as template parameter. +/// @note Defined in tutorial22/dispatch/DispatchMessage.h +using MsgDispatcherDefaultOptions = + MsgDispatcher; + + + +} // namespace dispatch + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h new file mode 100644 index 000000000..1eaa37013 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h @@ -0,0 +1,198 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains dispatch to handling function(s) for client input input messages. + +#pragma once + +#include "tutorial22/MsgId.h" +#include "tutorial22/input/ServerInputMessages.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace dispatch +{ + +/// @brief Dispatch message object to its appropriate handling function. +/// @details @b switch statement based (on message ID) cast and dispatch functionality. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. Must define +/// @b handle() member function for every message type it exects +/// to handle and one for the interface class as well. +/// @code +/// using MyInterface = tutorial22::Message<...>; +/// using MyMsg1 = tutorial22::message::Msg1; +/// using MyMsg2 = tutorial22::message::Msg2; +/// struct MyHandler { +/// void handle(MyMsg1& msg) {...} +/// void handle(MyMsg2& msg) {...} +/// ... +/// // Handle all unexpected or irrelevant messages. +/// void handle(MyInterface& msg) {...} +/// }; +/// @endcode +/// Every @b handle() function may return a value, but every +/// function must return the @b same type. +/// @note Defined in tutorial22/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessage( + tutorial22::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + using InterfaceType = typename std::decay::type; + switch(id) { + case tutorial22::MsgId_M1: + { + using MsgType = tutorial22::message::Msg1; + return handler.handle(static_cast(msg)); + } + case tutorial22::MsgId_M2: + { + using MsgType = tutorial22::message::Msg2; + return handler.handle(static_cast(msg)); + } + default: + break; + }; + + return handler.handle(msg); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchServerInputMessage(), but receives extra @b idx parameter. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// Expected to be @b 0. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchServerInputMessage() +/// @note Defined in tutorial22/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessage( + tutorial22::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + if (idx != 0U) { + return handler.handle(msg); + } + return dispatchServerInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchServerInputMessage(), but passing +/// tutorial22::options::DefaultOptions as first template parameter. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchServerInputMessage() +/// @note Defined in tutorial22/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessageDefaultOptions( + tutorial22::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchServerInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchServerInputMessageDefaultOptions(), +/// but receives extra @b idx parameter. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchServerInputMessageDefaultOptions() +/// @note Defined in tutorial22/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessageDefaultOptions( + tutorial22::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchServerInputMessage(id, idx, msg, handler); +} + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial22::options::DefaultOptions. +/// @headerfile tutorial22/dispatch/DispatchServerInputMessage.h +template +struct ServerInputMsgDispatcher +{ + /// @brief Class detection tag + using MsgDispatcherTag = void; + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchServerInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] idx Index (or offset) of the message among those having the same numeric ID. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchServerInputMessage() function returns. + template + static auto dispatch(tutorial22::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(tutorial22::dispatch::dispatchServerInputMessage(id, idx, msg, handler)) + { + return tutorial22::dispatch::dispatchServerInputMessage(id, idx, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial22::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, idx, msg, handler)) + { + return dispatch(id, idx, msg, handler); + } + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchServerInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchServerInputMessage() function returns. + template + static auto dispatch(tutorial22::MsgId id, TMsg& msg, THandler& handler) -> + decltype(tutorial22::dispatch::dispatchServerInputMessage(id, msg, handler)) + { + return tutorial22::dispatch::dispatchServerInputMessage(id, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial22::MsgId id, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, msg, handler)) + { + return dispatch(id, msg, handler); + } +}; + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @details Same as ServerInputMsgDispatcher, but passing +/// @ref tutorial22::options::DefaultOptions as template parameter. +/// @note Defined in tutorial22/dispatch/DispatchServerInputMessage.h +using ServerInputMsgDispatcherDefaultOptions = + ServerInputMsgDispatcher; + + + +} // namespace dispatch + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/field/FieldBase.h b/tutorials/tutorial22/include/tutorial22/field/FieldBase.h new file mode 100644 index 000000000..cb3a066d4 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/field/FieldBase.h @@ -0,0 +1,30 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of base class of all the fields. + +#pragma once + +#include "comms/Field.h" +#include "comms/options.h" +#include "tutorial22/Version.h" + +namespace tutorial22 +{ + +namespace field +{ + +/// @brief Common base class for all the fields. +/// @tparam TOpt Extra options. +template +using FieldBase = + comms::Field< + TOpt..., + comms::option::def::BigEndian + >; + +} // namespace field + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/field/Length.h b/tutorials/tutorial22/include/tutorial22/field/Length.h new file mode 100644 index 000000000..1da52530a --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/field/Length.h @@ -0,0 +1,303 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Length" field. + +#pragma once + +#include +#include +#include "comms/field/Bundle.h" +#include "comms/field/IntValue.h" +#include "comms/field/Optional.h" +#include "comms/options.h" +#include "tutorial22/field/FieldBase.h" +#include "tutorial22/field/LengthCommon.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace field +{ + + +/// @brief Scope for all the member fields of +/// @ref Length field. +/// @tparam TOpt Protocol options. +template +struct LengthMembers +{ + /// @brief Definition of "Short" field. + class Short : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Single special value name info entry. + using SpecialNameInfo = tutorial22::field::LengthMembersCommon::ShortCommon::SpecialNameInfo; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = tutorial22::field::LengthMembersCommon::ShortCommon::SpecialNamesMapInfo; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::field::LengthMembersCommon::ShortCommon::hasSpecials(); + } + + /// @brief Special value "LongForm". + /// @see @ref tutorial22::field::LengthMembersCommon::ShortCommon::valueLongForm(). + static constexpr ValueType valueLongForm() + { + return tutorial22::field::LengthMembersCommon::ShortCommon::valueLongForm(); + } + + /// @brief Check the value is equal to special @ref valueLongForm(). + bool isLongForm() const + { + return Base::getValue() == valueLongForm(); + } + + /// @brief Assign special value @ref valueLongForm() to the field. + void setLongForm() + { + Base::setValue(valueLongForm()); + } + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + return tutorial22::field::LengthMembersCommon::ShortCommon::specialNamesMap(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::LengthMembersCommon::ShortCommon::name(); + } + + + }; + + + /// @brief Scope for all the member fields of + /// @ref Long field. + struct LongMembers + { + /// @brief Definition of "ActLong" field. + class ActLong : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint16_t + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint16_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::field::LengthMembersCommon::LongMembersCommon::ActLongCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::LengthMembersCommon::LongMembersCommon::ActLongCommon::name(); + } + + + }; + + + }; + + /// @brief Definition of "Long" field. + class Long : public + comms::field::Optional< + typename LongMembers::ActLong, + comms::option::def::MissingByDefault + > + { + using Base = + comms::field::Optional< + typename LongMembers::ActLong, + comms::option::def::MissingByDefault + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::LengthMembersCommon::LongCommon::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + Short, + Long + >; +}; + +/// @brief Definition of "Length" field. +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +class Length : public + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename LengthMembers::All, + TExtraOpts..., + comms::option::def::HasCustomRead, + comms::option::def::HasCustomRefresh + > +{ + using Base = + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename LengthMembers::All, + TExtraOpts..., + comms::option::def::HasCustomRead, + comms::option::def::HasCustomRefresh + >; +public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_FIELD_MEMBERS_NAMES macro + /// related to @b comms::field::Bundle class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_short index, @b Field_short type and @b field_short() access function - + /// for tutorial22::field::LengthMembers::Short member field. + /// @li @b FieldIdx_long index, @b Field_long type and @b field_long() access function - + /// for tutorial22::field::LengthMembers::Long member field. + COMMS_FIELD_MEMBERS_NAMES( + short, + long + ); + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::LengthCommon::name(); + } + + /// @brief Get length value + std::size_t getValue() const + { + if (!field_short().isLongForm()) { + return static_cast(field_short().value()); + } + + COMMS_ASSERT(field_long().doesExist()); // Make sure the field in the consistent state + return static_cast(field_long().field().value()); + } + + /// @brief Set length value + void setValue(std::size_t val) + { + if (val < Field_short::valueLongForm()) { + field_short().setValue(val); + field_long().setMissing(); + return; + } + + field_short().setLongForm(); + field_long().field().setValue(val); + field_long().setExists(); + } + + /// @brief Maximal possible length value + static constexpr std::size_t maxValue() + { + return std::numeric_limits::max(); + } + + /// @brief Generated read functionality. + template + comms::ErrorStatus read(TIter& iter, std::size_t len) + { + auto es = comms::ErrorStatus::Success; + do { + es = Base::template readUntilAndUpdateLen(iter, len); + if (es != comms::ErrorStatus::Success) { + break; + } + + readPrepare_long(); + + es = Base::template readFrom(iter, len); + + } while(false); + return es; + } + + + /// @brief Generated refresh functionality. + bool refresh() + { + bool updated = Base::refresh(); + updated = refresh_long() || updated; + return updated; + + } + + + +private: + void readPrepare_long() + { + refresh_long(); + + } + + bool refresh_long() + { + auto mode = comms::field::OptionalMode::Missing; + if (field_short().getValue() == static_cast(255U)) { + mode = comms::field::OptionalMode::Exists; + } + + if (field_long().getMode() == mode) { + return false; + } + + field_long().setMode(mode); + return true; + + } + + +}; + + +} // namespace field + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/field/LengthCommon.h b/tutorials/tutorial22/include/tutorial22/field/LengthCommon.h new file mode 100644 index 000000000..b22941386 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/field/LengthCommon.h @@ -0,0 +1,131 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial22::field::Length field. + +#pragma once + +#include +#include +#include + +namespace tutorial22 +{ + +namespace field +{ + + +/// @brief Scope for all the common definitions of the member fields of +/// @ref tutorial22::field::Length field. +struct LengthMembersCommon +{ + /// @brief Common types and functions for + /// @ref tutorial22::field::LengthMembers::Short field. + struct ShortCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::field::LengthMembers::Short field. + using ValueType = std::uint8_t; + + /// @brief Single special value name info entry. + using SpecialNameInfo = std::pair; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = std::pair; + + /// @brief Name of the @ref tutorial22::field::LengthMembers::Short field. + static const char* name() + { + return "Short"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return true; + } + + /// @brief Special value "LongForm". + static constexpr ValueType valueLongForm() + { + return static_cast(255); + } + + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + static const SpecialNameInfo Map[] = { + std::make_pair(valueLongForm(), "LongForm") + }; + static const std::size_t MapSize = std::extent::value; + + return std::make_pair(&Map[0], MapSize); + } + + + }; + + /// @brief Scope for all the common definitions of the member fields of + /// @ref tutorial22::field::LengthMembers::Long field. + struct LongMembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial22::field::LengthMembers::LongMembers::ActLong field. + struct ActLongCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::field::LengthMembers::LongMembers::ActLong field. + using ValueType = std::uint16_t; + + /// @brief Name of the @ref tutorial22::field::LengthMembers::LongMembers::ActLong field. + static const char* name() + { + return "ActLong"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + }; + + /// @brief Common types and functions for + /// @ref tutorial22::field::LengthMembers::Long field. + struct LongCommon + { + /// @brief Name of the @ref tutorial22::field::LengthMembers::Long field. + static const char* name() + { + return "Long"; + } + + }; + +}; + +/// @brief Common types and functions for +/// @ref tutorial22::field::Length field. +struct LengthCommon +{ + /// @brief Name of the @ref tutorial22::field::Length field. + static const char* name() + { + return "Length"; + } + +}; + +} // namespace field + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/field/MsgId.h b/tutorials/tutorial22/include/tutorial22/field/MsgId.h new file mode 100644 index 000000000..9cb5f5763 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/field/MsgId.h @@ -0,0 +1,86 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "MsgId" field. + +#pragma once + +#include "comms/field/EnumValue.h" +#include "comms/options.h" +#include "tutorial22/field/FieldBase.h" +#include "tutorial22/field/MsgIdCommon.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace field +{ + + +/// @brief Definition of "MsgId" field. +/// @see @ref tutorial22::MsgId +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +class MsgId : public + comms::field::EnumValue< + tutorial22::field::FieldBase<>, + tutorial22::field::MsgIdCommon::ValueType, + TExtraOpts..., + comms::option::def::ValidNumValueRange<1, 3> + > +{ + using Base = + comms::field::EnumValue< + tutorial22::field::FieldBase<>, + tutorial22::field::MsgIdCommon::ValueType, + TExtraOpts..., + comms::option::def::ValidNumValueRange<1, 3> + >; +public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Single value name info entry. + using ValueNameInfo = tutorial22::field::MsgIdCommon::ValueNameInfo; + + /// @brief Type returned from @ref valueNamesMap() member function. + /// @see @ref tutorial22::field::MsgIdCommon::ValueNamesMapInfo. + using ValueNamesMapInfo = tutorial22::field::MsgIdCommon::ValueNamesMapInfo; + + /// @brief Retrieve name of the enum value. + /// @see @ref tutorial22::field::MsgIdCommon::valueName(). + static const char* valueName(ValueType val) + { + return tutorial22::field::MsgIdCommon::valueName(val); + } + + /// @brief Retrieve name of the @b current value + const char* valueName() const + { + return valueName(Base::getValue()); + } + + /// @brief Retrieve map of enum value names. + /// @see @ref tutorial22::field::MsgIdCommon::valueNamesMap(). + static ValueNamesMapInfo valueNamesMap() + { + return tutorial22::field::MsgIdCommon::valueNamesMap(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::MsgIdCommon::name(); + } + + +}; + + +} // namespace field + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/field/MsgIdCommon.h b/tutorials/tutorial22/include/tutorial22/field/MsgIdCommon.h new file mode 100644 index 000000000..2252dccec --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/field/MsgIdCommon.h @@ -0,0 +1,81 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial22::field::MsgId field. + +#pragma once + +#include +#include +#include +#include +#include +#include "tutorial22/MsgId.h" + +namespace tutorial22 +{ + +namespace field +{ + + +/// @brief Common types and functions for +/// @ref tutorial22::field::MsgId field. +struct MsgIdCommon +{ + /// @brief Values enumerator for + /// @ref tutorial22::field::MsgId field. + using ValueType = tutorial22::MsgId; + + /// @brief Single value name info entry + using ValueNameInfo = const char*; + + /// @brief Type returned from @ref valueNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using ValueNamesMapInfo = std::pair; + + /// @brief Name of the @ref tutorial22::field::MsgId field. + static const char* name() + { + return "MsgId"; + } + + /// @brief Retrieve name of the enum value + static const char* valueName(ValueType val) + { + auto namesMapInfo = valueNamesMap(); + if (namesMapInfo.second <= static_cast(val)) { + return nullptr; + } + + return namesMapInfo.first[static_cast(val)]; + } + + /// @brief Retrieve map of enum value names + static ValueNamesMapInfo valueNamesMap() + { + static const char* Map[] = { + nullptr, + "Message 1", + "Message 2", + "Message 3" + }; + static const std::size_t MapSize = std::extent::value; + + return std::make_pair(&Map[0], MapSize); + } + + +}; + +/// @brief Values enumerator for +/// @ref tutorial22::field::MsgId field. +using MsgIdVal = MsgIdCommon::ValueType; + + +} // namespace field + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/frame/Frame.h b/tutorials/tutorial22/include/tutorial22/frame/Frame.h new file mode 100644 index 000000000..c3aaecdc6 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/frame/Frame.h @@ -0,0 +1,158 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Frame" frame class. + +#pragma once + +#include +#include "comms/field/IntValue.h" +#include "comms/options.h" +#include "comms/protocol/MsgDataLayer.h" +#include "comms/protocol/MsgIdLayer.h" +#include "comms/protocol/MsgSizeLayer.h" +#include "comms/protocol/SyncPrefixLayer.h" +#include "tutorial22/field/FieldBase.h" +#include "tutorial22/field/Length.h" +#include "tutorial22/field/MsgId.h" +#include "tutorial22/frame/FrameCommon.h" +#include "tutorial22/input/AllMessages.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace frame +{ + + +/// @brief Layers definition of @ref Frame frame class. +/// @tparam TOpt Protocol options. +/// @see @ref Frame +/// @headerfile tutorial22/frame/Frame.h +template +struct FrameLayers +{ + /// @brief Definition of layer "Data". + using Data = + comms::protocol::MsgDataLayer< + typename TOpt::frame::FrameLayers::Data + >; + + /// @brief Definition of layer "Id". + template + using Id = + comms::protocol::MsgIdLayer< + tutorial22::field::MsgId< + TOpt + >, + TMessage, + TAllMessages, + Data, + typename TOpt::frame::FrameLayers::Id + >; + + /// @brief Definition of layer "Size". + template + using Size = + comms::protocol::MsgSizeLayer< + tutorial22::field::Length< + TOpt + >, + Id + >; + + /// @brief Scope for field(s) of @ref Sync layer. + struct SyncMembers + { + /// @brief Definition of "SyncField" field. + class SyncField : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint16_t, + comms::option::def::FailOnInvalid, + comms::option::def::DefaultNumValue<43996L> + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint16_t, + comms::option::def::FailOnInvalid, + comms::option::def::DefaultNumValue<43996L> + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::frame::FrameLayersCommon::SyncMembersCommon::SyncFieldCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::frame::FrameLayersCommon::SyncMembersCommon::SyncFieldCommon::name(); + } + + + }; + + + }; + + /// @brief Definition of layer "Sync". + template + using Sync = + comms::protocol::SyncPrefixLayer< + typename SyncMembers::SyncField, + Size + >; + + /// @brief Final protocol stack definition. + template + using Stack = Sync; + +}; + +/// @brief Definition of "Frame" frame class. +/// @tparam TMessage Common interface class of all the messages +/// @tparam TAllMessages All supported input messages. +/// @tparam TOpt Frame definition options +/// @headerfile tutorial22/frame/Frame.h +template < + typename TMessage, + typename TAllMessages = tutorial22::input::AllMessages, + typename TOpt = tutorial22::options::DefaultOptions +> +class Frame : public + FrameLayers::template Stack +{ + using Base = typename + FrameLayers::template Stack; +public: + /// @brief Allow access to frame definition layers. + /// @details See definition of @b COMMS_PROTOCOL_LAYERS_ACCESS macro + /// from COMMS library for details. + /// + /// The generated functions are: + /// @li layer_data() for @ref FrameLayers::Data layer. + /// @li layer_id() for @ref FrameLayers::Id layer. + /// @li layer_size() for @ref FrameLayers::Size layer. + /// @li layer_sync() for @ref FrameLayers::Sync layer. + COMMS_PROTOCOL_LAYERS_ACCESS( + data, + id, + size, + sync + ); +}; + +} // namespace frame + +} // namespace tutorial22 + + diff --git a/tutorials/tutorial22/include/tutorial22/frame/FrameCommon.h b/tutorials/tutorial22/include/tutorial22/frame/FrameCommon.h new file mode 100644 index 000000000..e2e945854 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/frame/FrameCommon.h @@ -0,0 +1,58 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// fields used in definition of @ref tutorial22::frame::Frame frame. + +#pragma once + +#include + +namespace tutorial22 +{ + +namespace frame +{ + + +/// @brief Common types and functions of fields using in definition of +/// @ref tutorial22::frame::Frame frame. +/// @see tutorial22::frame::FrameLayers +struct FrameLayersCommon +{ + /// @brief Scope for all the common definitions of the fields defined in + /// @ref tutorial22::frame::FrameLayers::SyncMembers struct. + struct SyncMembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial22::frame::FrameLayers::SyncMembers::SyncField field. + struct SyncFieldCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::frame::FrameLayers::SyncMembers::SyncField field. + using ValueType = std::uint16_t; + + /// @brief Name of the @ref tutorial22::frame::FrameLayers::SyncMembers::SyncField field. + static const char* name() + { + return "SyncField"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + }; + +}; + +} // namespace frame + +} // namespace tutorial22 + + diff --git a/tutorials/tutorial22/include/tutorial22/input/AllMessages.h b/tutorials/tutorial22/include/tutorial22/input/AllMessages.h new file mode 100644 index 000000000..3e2355c70 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/input/AllMessages.h @@ -0,0 +1,31 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of the AllMessages messages bundle. + +#pragma once + +#include +#include "tutorial22/message/Msg1.h" +#include "tutorial22/message/Msg2.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace input +{ + +/// @brief Messages of the protocol in ascending order. +/// @tparam TBase Base class of all the messages. +/// @tparam TOpt Protocol definition options. +template +using AllMessages = + std::tuple< + tutorial22::message::Msg1, + tutorial22::message::Msg2 + >; + +} // namespace input + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h b/tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h new file mode 100644 index 000000000..a438c6f96 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h @@ -0,0 +1,31 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of the ClientInputMessages messages bundle. + +#pragma once + +#include +#include "tutorial22/message/Msg1.h" +#include "tutorial22/message/Msg2.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace input +{ + +/// @brief Messages of the protocol in ascending order. +/// @tparam TBase Base class of all the messages. +/// @tparam TOpt Protocol definition options. +template +using ClientInputMessages = + std::tuple< + tutorial22::message::Msg1, + tutorial22::message::Msg2 + >; + +} // namespace input + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h b/tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h new file mode 100644 index 000000000..bfec61bf5 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h @@ -0,0 +1,31 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of the ServerInputMessages messages bundle. + +#pragma once + +#include +#include "tutorial22/message/Msg1.h" +#include "tutorial22/message/Msg2.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace input +{ + +/// @brief Messages of the protocol in ascending order. +/// @tparam TBase Base class of all the messages. +/// @tparam TOpt Protocol definition options. +template +using ServerInputMessages = + std::tuple< + tutorial22::message::Msg1, + tutorial22::message::Msg2 + >; + +} // namespace input + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg1.h b/tutorials/tutorial22/include/tutorial22/message/Msg1.h new file mode 100644 index 000000000..85ddca91e --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/message/Msg1.h @@ -0,0 +1,80 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Message 1" message and its fields. + +#pragma once + +#include +#include "comms/MessageBase.h" +#include "tutorial22/MsgId.h" +#include "tutorial22/message/Msg1Common.h" +#include "tutorial22/options/DefaultOptions.h" + + +namespace tutorial22 +{ + +namespace message +{ + + +/// @brief Fields of @ref Msg1. +/// @tparam TOpt Extra options +/// @see @ref Msg1 +/// @headerfile tutorial22/message/Msg1.h +template +struct Msg1Fields +{ + /// @brief All the fields bundled in std::tuple. + using All = std::tuple< + >; +}; + +/// @brief Definition of "Message 1" message class. +/// @details +/// See @ref Msg1Fields for definition of the fields this message contains. +/// @tparam TMsgBase Base (interface) class. +/// @tparam TOpt Extra options +/// @headerfile tutorial22/message/Msg1.h +template +class Msg1 : public + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + > +{ + // Redefinition of the base class type + using Base = + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + >; + +public: + // Compile time check for serialisation length. + static const std::size_t MsgMinLen = Base::doMinLength(); + static const std::size_t MsgMaxLen = Base::doMaxLength(); + static_assert(MsgMinLen == 0U, "Unexpected min serialisation length"); + static_assert(MsgMaxLen == 0U, "Unexpected max serialisation length"); + + /// @brief Name of the message. + static const char* doName() + { + return tutorial22::message::Msg1Common::name(); + } + + +}; + +} // namespace message + +} // namespace tutorial22 + + diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg1Common.h b/tutorials/tutorial22/include/tutorial22/message/Msg1Common.h new file mode 100644 index 000000000..34a6a11ae --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/message/Msg1Common.h @@ -0,0 +1,33 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial22::message::Msg1 message and its fields. + +#pragma once + +namespace tutorial22 +{ + +namespace message +{ + + +/// @brief Common types and functions of +/// @ref tutorial22::message::Msg1 message. +struct Msg1Common +{ + /// @brief Name of the @ref tutorial22::message::Msg1 message. + static const char* name() + { + return "Message 1"; + } + +}; + +} // namespace message + +} // namespace tutorial22 + + + diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg2.h b/tutorials/tutorial22/include/tutorial22/message/Msg2.h new file mode 100644 index 000000000..e4acdecce --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/message/Msg2.h @@ -0,0 +1,117 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Message 2" message and its fields. + +#pragma once + +#include +#include "comms/MessageBase.h" +#include "comms/field/String.h" +#include "comms/options.h" +#include "tutorial22/MsgId.h" +#include "tutorial22/field/FieldBase.h" +#include "tutorial22/message/Msg2Common.h" +#include "tutorial22/options/DefaultOptions.h" + + +namespace tutorial22 +{ + +namespace message +{ + + +/// @brief Fields of @ref Msg2. +/// @tparam TOpt Extra options +/// @see @ref Msg2 +/// @headerfile tutorial22/message/Msg2.h +template +struct Msg2Fields +{ + /// @brief Definition of "F1" field. + class F1 : public + comms::field::String< + tutorial22::field::FieldBase<>, + typename TOpt::message::Msg2Fields::F1 + > + { + using Base = + comms::field::String< + tutorial22::field::FieldBase<>, + typename TOpt::message::Msg2Fields::F1 + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial22::message::Msg2FieldsCommon::F1Common::name(); + } + + + }; + + + /// @brief All the fields bundled in std::tuple. + using All = std::tuple< + F1 + >; +}; + +/// @brief Definition of "Message 2" message class. +/// @details +/// See @ref Msg2Fields for definition of the fields this message contains. +/// @tparam TMsgBase Base (interface) class. +/// @tparam TOpt Extra options +/// @headerfile tutorial22/message/Msg2.h +template +class Msg2 : public + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + > +{ + // Redefinition of the base class type + using Base = + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + >; + +public: + /// @brief Provide names and allow access to internal fields. + /// @details See definition of @b COMMS_MSG_FIELDS_NAMES macro + /// related to @b comms::MessageBase class from COMMS library + /// for details. + /// + /// The generated values, types and functions are: + /// @li @b FieldIdx_f1 index, @b Field_f1 type and @b field_f1() access fuction + /// for @ref Msg2Fields::F1 field. + COMMS_MSG_FIELDS_NAMES( + f1 + ); + + // Compile time check for serialisation length. + static const std::size_t MsgMinLen = Base::doMinLength(); + static_assert(MsgMinLen == 0U, "Unexpected min serialisation length"); + + /// @brief Name of the message. + static const char* doName() + { + return tutorial22::message::Msg2Common::name(); + } + + +}; + +} // namespace message + +} // namespace tutorial22 + + diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg2Common.h b/tutorials/tutorial22/include/tutorial22/message/Msg2Common.h new file mode 100644 index 000000000..96b18bd82 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/message/Msg2Common.h @@ -0,0 +1,52 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial22::message::Msg2 message and its fields. + +#pragma once + +namespace tutorial22 +{ + +namespace message +{ + + +/// @brief Common types and functions for fields of +/// @ref tutorial22::message::Msg2 message. +/// @see tutorial22::message::Msg2Fields +struct Msg2FieldsCommon +{ + /// @brief Common types and functions for + /// @ref tutorial22::message::Msg2Fields::F1 field. + struct F1Common + { + /// @brief Name of the @ref tutorial22::message::Msg2Fields::F1 field. + static const char* name() + { + return "F1"; + } + + }; + +}; + +/// @brief Common types and functions of +/// @ref tutorial22::message::Msg2 message. +struct Msg2Common +{ + /// @brief Name of the @ref tutorial22::message::Msg2 message. + static const char* name() + { + return "Message 2"; + } + +}; + +} // namespace message + +} // namespace tutorial22 + + + diff --git a/tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h new file mode 100644 index 000000000..ac2bdf455 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h @@ -0,0 +1,84 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol bare metal default options. + +#pragma once + +#include "tutorial22/options/DefaultOptions.h" + +#ifndef DEFAULT_SEQ_FIXED_STORAGE_SIZE +/// @brief Define default fixed size for various sequence fields +/// @details May be defined during compile time to change the default value. +#define DEFAULT_SEQ_FIXED_STORAGE_SIZE 32 +#endif + +namespace tutorial22 +{ + +namespace options +{ + +/// @brief Default bare metal options of the protocol. +template +struct BareMetalDefaultOptionsT : public TBase +{ + /// @brief Extra options for messages. + struct message : public TBase::message + { + /// @brief Extra options for fields of + /// @ref tutorial22::message::Msg2 message. + struct Msg2Fields : public TBase::message::Msg2Fields + { + /// @brief Extra options for @ref + /// tutorial22::message::Msg2Fields::F1 + /// field. + using F1 = + std::tuple< + comms::option::app::FixedSizeStorage, + typename TBase::message::Msg2Fields::F1 + >; + + }; + + }; // struct message + + /// @brief Extra options for frames. + struct frame : public TBase::frame + { + /// @brief Extra options for layers of + /// @ref tutorial22::frame::Frame frame. + struct FrameLayers : public TBase::frame::FrameLayers + { + /// @brief Extra options for @ref + /// tutorial22::frame::FrameLayers::Data + /// layer. + using Data = + std::tuple< + comms::option::app::FixedSizeStorage, + typename TBase::frame::FrameLayers::Data + >; + + /// @brief Extra options for @ref + /// tutorial22::frame::FrameLayers::Id + /// layer. + using Id = + std::tuple< + comms::option::app::InPlaceAllocation, + typename TBase::frame::FrameLayers::Id + >; + + + }; // struct FrameLayers + + }; // struct frame + + +}; + +/// @brief Alias to @ref BareMetalDefaultOptionsT with default template parameter. +using BareMetalDefaultOptions = BareMetalDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/options/ClientDefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/ClientDefaultOptions.h new file mode 100644 index 000000000..8301609f9 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/options/ClientDefaultOptions.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol client default options. + +#pragma once + +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace options +{ + +/// @brief Default client options of the protocol. +template +struct ClientDefaultOptionsT : public TBase +{ +}; + +/// @brief Alias to @ref ClientDefaultOptionsT with default template parameter. +using ClientDefaultOptions = ClientDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h new file mode 100644 index 000000000..c6b09c7e6 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h @@ -0,0 +1,69 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol data view default options. + +#pragma once + +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace options +{ + +/// @brief Default data view options of the protocol. +template +struct DataViewDefaultOptionsT : public TBase +{ + /// @brief Extra options for messages. + struct message : public TBase::message + { + /// @brief Extra options for fields of + /// @ref tutorial22::message::Msg2 message. + struct Msg2Fields : public TBase::message::Msg2Fields + { + /// @brief Extra options for @ref + /// tutorial22::message::Msg2Fields::F1 + /// field. + using F1 = + std::tuple< + comms::option::app::OrigDataView, + typename TBase::message::Msg2Fields::F1 + >; + + }; + + }; // struct message + + /// @brief Extra options for frames. + struct frame : public TBase::frame + { + /// @brief Extra options for layers of + /// @ref tutorial22::frame::Frame frame. + struct FrameLayers : public TBase::frame::FrameLayers + { + /// @brief Extra options for @ref + /// tutorial22::frame::FrameLayers::Data + /// layer. + using Data = + std::tuple< + comms::option::app::OrigDataView, + typename TBase::frame::FrameLayers::Data + >; + + + }; // struct FrameLayers + + }; // struct frame + + +}; + +/// @brief Alias to @ref DataViewDefaultOptionsT with default template parameter. +using DataViewDefaultOptions = DataViewDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h new file mode 100644 index 000000000..e0676717c --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h @@ -0,0 +1,69 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol default options. + +#pragma once + +#include "comms/options.h" + +namespace tutorial22 +{ + +namespace options +{ + +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + +/// @brief Default (empty) options of the protocol. +template +struct DefaultOptionsT : public TBase +{ + /// @brief Extra options for messages. + struct message + { + /// @brief Extra options for fields of + /// @ref tutorial22::message::Msg2 message. + struct Msg2Fields + { + /// @brief Extra options for @ref + /// tutorial22::message::Msg2Fields::F1 + /// field. + using F1 = comms::option::EmptyOption; + + }; + + }; // struct message + + /// @brief Extra options for frames. + struct frame + { + /// @brief Extra options for layers of + /// @ref tutorial22::frame::Frame frame. + struct FrameLayers + { + /// @brief Extra options for @ref + /// tutorial22::frame::FrameLayers::Data + /// layer. + using Data = comms::option::EmptyOption; + + /// @brief Extra options for @ref + /// tutorial22::frame::FrameLayers::Id + /// layer. + using Id = comms::option::EmptyOption; + + + }; // struct FrameLayers + + }; // struct frame + + +}; + +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/include/tutorial22/options/ServerDefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/ServerDefaultOptions.h new file mode 100644 index 000000000..6b0424492 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/options/ServerDefaultOptions.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol server default options. + +#pragma once + +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace options +{ + +/// @brief Default server options of the protocol. +template +struct ServerDefaultOptionsT : public TBase +{ +}; + +/// @brief Alias to @ref ServerDefaultOptionsT with default template parameter. +using ServerDefaultOptions = ServerDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial22 diff --git a/tutorials/tutorial22/src/ClientSession.cpp b/tutorials/tutorial22/src/ClientSession.cpp new file mode 100644 index 000000000..d250aead1 --- /dev/null +++ b/tutorials/tutorial22/src/ClientSession.cpp @@ -0,0 +1,148 @@ +#include "ClientSession.h" + +#include +#include + +#include "comms/cast.h" +#include "comms/iterator.h" +#include "comms/process.h" + +namespace cc_tutorial +{ + +void ClientSession::handle(Msg1& msg) +{ + std::cout << "Received message \"" << msg.doName() << "\" with ID=" << (unsigned)msg.doGetId() << std::endl; + + if (m_currentStage != CommsStage_Msg1) { + std::cerr << "ERROR: Unexpected stage" << std::endl; + return; + } + + doNextStage(); +} + +void ClientSession::handle(Msg2& msg) +{ + std::cout << "Received message \"" << msg.doName() << "\" with ID=" << (unsigned)msg.doGetId() << std::endl; + + if (m_currentStage != CommsStage_Msg2) { + std::cerr << "ERROR: Unexpected stage" << std::endl; + return; + } + + doNextStage(); +} + +void ClientSession::handle(Message& msg) +{ + std::cerr << "ERROR: Received unexpected message \"" << msg.name() << " with ID=" << (unsigned)msg.getId() << std::endl; +} + +bool ClientSession::startImpl() +{ + doNextStage(); + return true; +} + +std::size_t ClientSession::processInputImpl(const std::uint8_t* buf, std::size_t bufLen) +{ + std::cout << "Processing input: " << std::hex; + std::copy_n(buf, bufLen, std::ostream_iterator(std::cout, " ")); + std::cout << std::dec << std::endl; + + // Process reported input, create relevant message objects and + // dispatch all the created messages + // to this object for handling (appropriate handle() member function will be called) + return comms::processAllWithDispatch(buf, bufLen, m_frame, *this); +} + +void ClientSession::sendMessage(Message& msg) +{ + std::cout << "Sending message \"" << msg.name() << "\" with ID=" << (unsigned)msg.getId() << std::endl; + + // The statement below uses polymorphic message name and ID retrievals. + std::vector output; + + // Use polymorphic serialization length calculation to reserve + // needed capacity + output.reserve(m_frame.length(msg)); + + // Serialize message into the buffer (including framing) + // The serialization uses polymorphic write functionality. + auto writeIter = std::back_inserter(output); + + // The frame will use polymorphic message ID retrieval to + // prefix message payload with message ID + auto es = m_frame.write(msg, writeIter, output.max_size()); + if (es == comms::ErrorStatus::UpdateRequired) { + auto updateIter = &output[0]; + es = m_frame.update(updateIter, output.size()); + } + + if (es != comms::ErrorStatus::Success) { + assert(!"Write operation failed unexpectedly"); + return; + } + + // Send serialized message back + sendOutput(&output[0], output.size()); +} + +void ClientSession::doNextStage() +{ + do { + if (CommsStage_NumOfValues <= m_currentStage) { + // Happens in first cycle + m_currentStage = static_cast(0); + break; + } + + m_currentStage = + static_cast( + static_cast(m_currentStage) + 1); + + if (m_currentStage < CommsStage_NumOfValues) { + break; + } + + // Client execution is complete + getIo().stop(); + return; + } while (false); + + using NextSendFunc = void (ClientSession::*)(); + static const NextSendFunc Map[] = { + /* CommsStage_Msg1 */ &ClientSession::sendMsg1, + /* CommsStage_Msg2 */ &ClientSession::sendMsg2, + }; + static const std::size_t MapSize = std::extent::value; + static_assert(MapSize == CommsStage_NumOfValues, "Invalid Map"); + + auto func = Map[m_currentStage]; + (this->*func)(); // Call appropriate sending function +} + +void ClientSession::sendMsg1() +{ + Msg1 msg; + + sendMessage(msg); +} + +void ClientSession::sendMsg2() +{ + Msg2 msg; + + // Make the message long + msg.field_f1().value().assign(300, 'a'); + + sendMessage(msg); +} + +SessionPtr Session::createClient(boost_wrap::io& io) +{ + return SessionPtr(new ClientSession(io)); +} + +} // namespace cc_tutorial diff --git a/tutorials/tutorial22/src/ClientSession.h b/tutorials/tutorial22/src/ClientSession.h new file mode 100644 index 000000000..cc1072cac --- /dev/null +++ b/tutorials/tutorial22/src/ClientSession.h @@ -0,0 +1,76 @@ +#pragma once + +#include +#include + +#include "tutorial22/Message.h" +#include "tutorial22/frame/Frame.h" +#include "tutorial22/input/ClientInputMessages.h" +#include "tutorial22/options/ClientDefaultOptions.h" +#include "tutorial22/options/DataViewDefaultOptions.h" + +#include "Session.h" + +namespace cc_tutorial +{ + +class ClientSession : public Session +{ + using Base = Session; +public: + using Base::Base; // Inherit constructors + + // Common interface class for all the messages + using Message = + tutorial22::Message< + comms::option::app::ReadIterator, // Polymorphic read + comms::option::app::WriteIterator > >, // Polymorphic write + comms::option::app::LengthInfoInterface, // Polymorphic length calculation + comms::option::app::IdInfoInterface, // Polymorphic message ID retrieval + comms::option::app::NameInterface, // Polymorphic name retrieval + comms::option::app::Handler, // Polymorphic dispatch + comms::option::app::RefreshInterface // Polymorphic refresh + >; + + // Protocol options for client + using ClientProtocolOptions = tutorial22::options::ClientDefaultOptions; + + // Definition of all the used message classes + using Msg1 = tutorial22::message::Msg1; + using Msg2 = tutorial22::message::Msg2; + + // Handling functions for all the dispatched message objects + void handle(Msg1& msg); + void handle(Msg2& msg); + void handle(Message& msg); + +protected: + virtual bool startImpl() override final; + virtual std::size_t processInputImpl(const std::uint8_t* buf, std::size_t bufLen) override final; + +private: + enum CommsStage + { + CommsStage_Msg1, + CommsStage_Msg2, + CommsStage_NumOfValues + }; + + void sendMessage(Message& msg); + void doNextStage(); + void sendMsg1(); + void sendMsg2(); + + // Client specific frame + using Frame = + tutorial22::frame::Frame< + Message, + tutorial22::input::ClientInputMessages, + ClientProtocolOptions + >; + + Frame m_frame; + CommsStage m_currentStage = CommsStage_NumOfValues; +}; + +} // namespace cc_tutorial diff --git a/tutorials/tutorial22/src/ServerSession.cpp b/tutorials/tutorial22/src/ServerSession.cpp new file mode 100644 index 000000000..07cd83096 --- /dev/null +++ b/tutorials/tutorial22/src/ServerSession.cpp @@ -0,0 +1,61 @@ +#include "ServerSession.h" + +#include + +#include "comms/process.h" +#include "comms/iterator.h" + +namespace cc_tutorial +{ + +void ServerSession::handle(Message& msg) +{ + std::cout << "Received message \"" << msg.name() << + "\" with ID=" << (unsigned)msg.getId() << std::endl; + sendMessage(msg); +} + +std::size_t ServerSession::processInputImpl(const std::uint8_t* buf, std::size_t bufLen) +{ + std::cout << "Processing input: " << std::hex; + std::copy_n(buf, bufLen, std::ostream_iterator(std::cout, " ")); + std::cout << std::dec << std::endl; + + // Process reported input, create relevant message objects and + // dispatch all the created messages + // to this object for handling (handle() member function will be called) + return comms::processAllWithDispatch(buf, bufLen, m_frame, *this); +} + +void ServerSession::sendMessage(const Message& msg) +{ + std::cout << "Sending message \"" << msg.name() << "\" with ID=" << (unsigned)msg.getId() << std::endl; + + std::vector output; + + // Use polymorphic serialization length calculation to create + // buffer of the requires size + output.resize(m_frame.length(msg)); + + // Serialize message into the buffer (including framing) + // The serialization uses polymorphic write functionality. + auto writeIter = &output[0]; + auto es = m_frame.write(msg, writeIter, output.size()); + if (es != comms::ErrorStatus::Success) { + assert(!"Write operation failed unexpectedly"); + return; + } + + // writeIter has been advanced, check that it reached end of the allocated buffer. + assert(output.size() == static_cast(std::distance(&output[0], writeIter))); + + // Send (re)serialized message back + sendOutput(&output[0], output.size()); +} + +SessionPtr Session::createServer(boost_wrap::io& io) +{ + return SessionPtr(new ServerSession(io)); +} + +} // namespace cc_tutorial diff --git a/tutorials/tutorial22/src/ServerSession.h b/tutorials/tutorial22/src/ServerSession.h new file mode 100644 index 000000000..f983abcf4 --- /dev/null +++ b/tutorials/tutorial22/src/ServerSession.h @@ -0,0 +1,56 @@ +#pragma once + +#include "comms/GenericMessage.h" + +#include "tutorial22/Message.h" +#include "tutorial22/frame/Frame.h" +#include "tutorial22/input/ServerInputMessages.h" +#include "tutorial22/options/ServerDefaultOptions.h" +#include "tutorial22/options/DataViewDefaultOptions.h" +#include "Session.h" + +namespace cc_tutorial +{ + +class ServerSession : public Session +{ + using Base = Session; +public: + using Base::Base; // Inherit constructors + + // Common interface class for all the messages + using Message = + tutorial22::Message< + comms::option::app::ReadIterator, // Polymorphic read + comms::option::app::WriteIterator, // Polymorphic write + comms::option::app::LengthInfoInterface, // Polymorphic length calculation + comms::option::app::IdInfoInterface, // Polymorphic message ID retrieval + comms::option::app::NameInterface, // Polymorphic name retrieval + comms::option::app::Handler // Polymorphic dispatch + >; + + using ServerProtocolOptions = + tutorial22::options::DataViewDefaultOptionsT< + tutorial22::options::ServerDefaultOptions + >; + + void handle(Message& msg); + +protected: + virtual std::size_t processInputImpl(const std::uint8_t* buf, std::size_t bufLen) override final; + +private: + // Server specific frame + using Frame = + tutorial22::frame::Frame< + Message, + tutorial22::input::ServerInputMessages, + ServerProtocolOptions + >; + + void sendMessage(const Message& msg); + + Frame m_frame; +}; + +} // namespace cc_tutorial From 74e37ee1693ae1777378a2bc97a1e3dccfccbb27 Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sun, 31 Jul 2022 10:56:08 +1000 Subject: [PATCH 04/12] Added README for tutorial22. --- tutorials/tutorial22/README.md | 99 +++ tutorials/tutorial22/dsl/schema.xml | 40 +- .../dispatch/DispatchClientInputMessage.h | 9 +- .../tutorial22/dispatch/DispatchMessage.h | 9 +- .../dispatch/DispatchServerInputMessage.h | 9 +- .../include/tutorial22/field/TlvProp.h | 649 ++++++++++++++++++ .../include/tutorial22/field/TlvPropCommon.h | 249 +++++++ .../include/tutorial22/input/AllMessages.h | 4 +- .../tutorial22/input/ClientInputMessages.h | 4 +- .../tutorial22/input/ServerInputMessages.h | 4 +- .../include/tutorial22/message/Msg1.h | 44 +- .../include/tutorial22/message/Msg1Common.h | 19 + .../include/tutorial22/message/Msg2.h | 117 ---- .../include/tutorial22/message/Msg2Common.h | 52 -- .../options/BareMetalDefaultOptions.h | 43 +- .../options/DataViewDefaultOptions.h | 45 +- .../tutorial22/options/DefaultOptions.h | 33 +- tutorials/tutorial22/src/ClientSession.cpp | 84 ++- tutorials/tutorial22/src/ClientSession.h | 12 +- tutorials/tutorial4/README.md | 2 +- tutorials/tutorial4/dsl/schema.xml | 2 +- 21 files changed, 1277 insertions(+), 252 deletions(-) create mode 100644 tutorials/tutorial22/include/tutorial22/field/TlvProp.h create mode 100644 tutorials/tutorial22/include/tutorial22/field/TlvPropCommon.h delete mode 100644 tutorials/tutorial22/include/tutorial22/message/Msg2.h delete mode 100644 tutorials/tutorial22/include/tutorial22/message/Msg2Common.h diff --git a/tutorials/tutorial22/README.md b/tutorials/tutorial22/README.md index 2ebf600ad..bba0d9516 100644 --- a/tutorials/tutorial22/README.md +++ b/tutorials/tutorial22/README.md @@ -1,4 +1,103 @@ # Tutorial 22 Complex length fields. +Up until **v5.0** of the [CommsDSL Specification](https://commschamp.github.io/commsdsl_spec/) the +`semanticType="length"` property was allowed to be assinged only for **<int>** fields. Since **v5.0** +it is allowed for complex fields, such as **<bundle>** or **<bitfield>**. However, +the custom code is required to be injected which implements the functionality of +setting and retrieving numeric length values. + +This tutorial demonstrates using the length field, which is serialized as one byte in case the +remaining length value is `254` or lower. Otherwise is is serialized as 3 bytes, where the +first one is special value `0xff (255)`, followed by the 2 bytes of real length. + +The [schema](dsl/schema.xml) file defines the `Length` field as the following **<bundle>**: +```xml + + + + + + + + +``` +Usage of **valueOverride** property ensures that the custom code +of value retrieval is injected into the code generation. + +The custom code itself +(residing in [dsl_src/include/tutorial22/field/Length.h.value](dsl_src/include/tutorial22/field/Length.h.value) +and finding its way to the actual code in +[include/tutorial22/field/Length.h](include/tutorial22/field/Length.h)) +defines three functions: +```cpp +/// @brief Get length value +std::size_t getValue() const +{ + if (!field_short().isLongForm()) { + return static_cast(field_short().value()); + } + + COMMS_ASSERT(field_long().doesExist()); // Make sure the field in the consistent state + return static_cast(field_long().field().value()); +} + +/// @brief Set length value +void setValue(std::size_t val) +{ + if (val < Field_short::valueLongForm()) { + field_short().setValue(val); + field_long().setMissing(); + return; + } + + field_short().setLongForm(); + field_long().field().setValue(val); + field_long().setExists(); +} + +/// @brief Maximal possible length value +static constexpr std::size_t maxValue() +{ + return std::numeric_limits::max(); +} +``` +**NOTE**, that so far (in all the previous tutorials) the field's value has been accessed +by reference using `value()` member functions. Version **v5.0** of the +[COMMS Library](https://github.com/commschamp/comms) introduces extra `getValue()` and +`setValue()` functions for every field class, which are just wrappers around the `value()` one. +They can be overridden when custom functionality of +dealing with field's value is required, like in the case described in this tutorial. + +Also when dealing with **remaining length** value, some internal functionality of the +[COMMS Library](https://github.com/commschamp/comms) requires **compile time** knowledge +of maximal possible length value. As the result additional `maxValue()` function +also is required to be provided. It needs to be `constexpr` to provide the information +at compile time. + +The test of this tutorial implements list of TLV properties described in the +[tutorial4](../tutorial4). The code in the [ClientSession](src/ClientSession.cpp) that +prepares the message to be sent out looks like this: +```cpp +void ClientSession::sendMsg1() +{ + Msg1 msg; + + auto& listOfProps = msg.field_f1().value(); // vector of variant fields + listOfProps.resize(2); + assert(msg.doLength() == 0U); + assert(!listOfProps[0].valid()); + assert(!listOfProps[1].valid()); + + listOfProps[0].initField_prop1().field_val().value() = 0x12; + listOfProps[1].initField_prop2().field_val().value().assign(300, 'a'); // Force long length form. + + msg.doRefresh(); // Bring message to a consistent state + sendMessage(msg); +} +``` +Please analyze the raw data dump produced by both the "client" and the "server" application +of this tutorial to see that in case of first property the **short** form of the `Length` field +is used, while for the second one the **long** form is in place. + [Read Previous Tutorial](../tutorial21) <----------------------- diff --git a/tutorials/tutorial22/dsl/schema.xml b/tutorials/tutorial22/dsl/schema.xml index 373d6dbbb..7b533de17 100644 --- a/tutorials/tutorial22/dsl/schema.xml +++ b/tutorials/tutorial22/dsl/schema.xml @@ -19,6 +19,39 @@ + + + + + + + + + + + + Type-Length-Value Property + + + + + + + + + + + + + + + + + + + + + @@ -31,10 +64,7 @@ - - - - + + - diff --git a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h index 2de827df9..d1ade57f7 100644 --- a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchClientInputMessage.h @@ -27,10 +27,10 @@ namespace dispatch /// @code /// using MyInterface = tutorial22::Message<...>; /// using MyMsg1 = tutorial22::message::Msg1; -/// using MyMsg2 = tutorial22::message::Msg2; +/// using MySomeOtherMessage = SomeOtherMessage; /// struct MyHandler { /// void handle(MyMsg1& msg) {...} -/// void handle(MyMsg2& msg) {...} +/// void handle(MySomeOtherMessage& msg) {...} /// ... /// // Handle all unexpected or irrelevant messages. /// void handle(MyInterface& msg) {...} @@ -52,11 +52,6 @@ auto dispatchClientInputMessage( using MsgType = tutorial22::message::Msg1; return handler.handle(static_cast(msg)); } - case tutorial22::MsgId_M2: - { - using MsgType = tutorial22::message::Msg2; - return handler.handle(static_cast(msg)); - } default: break; }; diff --git a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h index 4271b923e..4aef61cfc 100644 --- a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h +++ b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchMessage.h @@ -27,10 +27,10 @@ namespace dispatch /// @code /// using MyInterface = tutorial22::Message<...>; /// using MyMsg1 = tutorial22::message::Msg1; -/// using MyMsg2 = tutorial22::message::Msg2; +/// using MySomeOtherMessage = SomeOtherMessage; /// struct MyHandler { /// void handle(MyMsg1& msg) {...} -/// void handle(MyMsg2& msg) {...} +/// void handle(MySomeOtherMessage& msg) {...} /// ... /// // Handle all unexpected or irrelevant messages. /// void handle(MyInterface& msg) {...} @@ -52,11 +52,6 @@ auto dispatchMessage( using MsgType = tutorial22::message::Msg1; return handler.handle(static_cast(msg)); } - case tutorial22::MsgId_M2: - { - using MsgType = tutorial22::message::Msg2; - return handler.handle(static_cast(msg)); - } default: break; }; diff --git a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h index 1eaa37013..dfc173abb 100644 --- a/tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial22/include/tutorial22/dispatch/DispatchServerInputMessage.h @@ -27,10 +27,10 @@ namespace dispatch /// @code /// using MyInterface = tutorial22::Message<...>; /// using MyMsg1 = tutorial22::message::Msg1; -/// using MyMsg2 = tutorial22::message::Msg2; +/// using MySomeOtherMessage = SomeOtherMessage; /// struct MyHandler { /// void handle(MyMsg1& msg) {...} -/// void handle(MyMsg2& msg) {...} +/// void handle(MySomeOtherMessage& msg) {...} /// ... /// // Handle all unexpected or irrelevant messages. /// void handle(MyInterface& msg) {...} @@ -52,11 +52,6 @@ auto dispatchServerInputMessage( using MsgType = tutorial22::message::Msg1; return handler.handle(static_cast(msg)); } - case tutorial22::MsgId_M2: - { - using MsgType = tutorial22::message::Msg2; - return handler.handle(static_cast(msg)); - } default: break; }; diff --git a/tutorials/tutorial22/include/tutorial22/field/TlvProp.h b/tutorials/tutorial22/include/tutorial22/field/TlvProp.h new file mode 100644 index 000000000..4478af429 --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/field/TlvProp.h @@ -0,0 +1,649 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "TlvProp" field. + +#pragma once + +#include +#include +#include "comms/Assert.h" +#include "comms/CompileControl.h" +#include "comms/field/ArrayList.h" +#include "comms/field/Bundle.h" +#include "comms/field/IntValue.h" +#include "comms/field/String.h" +#include "comms/field/Variant.h" +#include "comms/options.h" +#include "tutorial22/field/FieldBase.h" +#include "tutorial22/field/Length.h" +#include "tutorial22/field/TlvPropCommon.h" +#include "tutorial22/options/DefaultOptions.h" + +namespace tutorial22 +{ + +namespace field +{ + + +/// @brief Scope for all the member fields of +/// @ref TlvProp field. +/// @tparam TOpt Protocol options. +template +struct TlvPropMembers +{ + /// @brief Scope for all the member fields of + /// @ref Prop1 field. + struct Prop1Members + { + /// @brief Definition of "Key" field. + class Key : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t, + comms::option::def::FailOnInvalid<>, + comms::option::def::ValidNumValue<0>, + comms::option::def::HasCustomRefresh + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t, + comms::option::def::FailOnInvalid<>, + comms::option::def::ValidNumValue<0>, + comms::option::def::HasCustomRefresh + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::field::TlvPropMembersCommon::Prop1MembersCommon::KeyCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::Prop1MembersCommon::KeyCommon::name(); + } + + /// @brief Generated refresh functionality. + bool refresh() + { + bool updated = Base::refresh(); + if (Base::valid()) { + return updated; + }; + Base::setValue(0); + return true; + + } + + + + }; + + + /// @brief Definition of "Length" field. + using Length = + tutorial22::field::Length< + TOpt + >; + + + /// @brief Definition of "Val" field. + class Val : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint32_t, + comms::option::def::AvailableLengthLimit + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint32_t, + comms::option::def::AvailableLengthLimit + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::field::TlvPropMembersCommon::Prop1MembersCommon::ValCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::Prop1MembersCommon::ValCommon::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + Key, + Length, + Val + >; + }; + + /// @brief Definition of "Prop1" field. + class Prop1 : public + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename Prop1Members::All, + comms::option::def::RemLengthMemberField<1U> + > + { + using Base = + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename Prop1Members::All, + comms::option::def::RemLengthMemberField<1U> + >; + public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_FIELD_MEMBERS_NAMES macro + /// related to @b comms::field::Bundle class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_key index, @b Field_key type and @b field_key() access function - + /// for tutorial22::field::TlvPropMembers::Prop1Members::Key member field. + /// @li @b FieldIdx_length index, @b Field_length type and @b field_length() access function - + /// for tutorial22::field::TlvPropMembers::Prop1Members::Length member field. + /// @li @b FieldIdx_val index, @b Field_val type and @b field_val() access function - + /// for tutorial22::field::TlvPropMembers::Prop1Members::Val member field. + COMMS_FIELD_MEMBERS_NAMES( + key, + length, + val + ); + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::Prop1Common::name(); + } + + + }; + + + /// @brief Scope for all the member fields of + /// @ref Prop2 field. + struct Prop2Members + { + /// @brief Definition of "Key" field. + class Key : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t, + comms::option::def::FailOnInvalid<>, + comms::option::def::DefaultNumValue<2>, + comms::option::def::ValidNumValue<2>, + comms::option::def::HasCustomRefresh + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t, + comms::option::def::FailOnInvalid<>, + comms::option::def::DefaultNumValue<2>, + comms::option::def::ValidNumValue<2>, + comms::option::def::HasCustomRefresh + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::field::TlvPropMembersCommon::Prop2MembersCommon::KeyCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::Prop2MembersCommon::KeyCommon::name(); + } + + /// @brief Generated refresh functionality. + bool refresh() + { + bool updated = Base::refresh(); + if (Base::valid()) { + return updated; + }; + Base::setValue(2); + return true; + + } + + + + }; + + + /// @brief Definition of "Length" field. + using Length = + tutorial22::field::Length< + TOpt + >; + + + /// @brief Definition of "Val" field. + class Val : public + comms::field::String< + tutorial22::field::FieldBase<>, + typename TOpt::field::TlvPropMembers::Prop2Members::Val + > + { + using Base = + comms::field::String< + tutorial22::field::FieldBase<>, + typename TOpt::field::TlvPropMembers::Prop2Members::Val + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::Prop2MembersCommon::ValCommon::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + Key, + Length, + Val + >; + }; + + /// @brief Definition of "Prop2" field. + class Prop2 : public + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename Prop2Members::All, + comms::option::def::RemLengthMemberField<1U> + > + { + using Base = + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename Prop2Members::All, + comms::option::def::RemLengthMemberField<1U> + >; + public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_FIELD_MEMBERS_NAMES macro + /// related to @b comms::field::Bundle class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_key index, @b Field_key type and @b field_key() access function - + /// for tutorial22::field::TlvPropMembers::Prop2Members::Key member field. + /// @li @b FieldIdx_length index, @b Field_length type and @b field_length() access function - + /// for tutorial22::field::TlvPropMembers::Prop2Members::Length member field. + /// @li @b FieldIdx_val index, @b Field_val type and @b field_val() access function - + /// for tutorial22::field::TlvPropMembers::Prop2Members::Val member field. + COMMS_FIELD_MEMBERS_NAMES( + key, + length, + val + ); + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::Prop2Common::name(); + } + + + }; + + + /// @brief Scope for all the member fields of + /// @ref Any field. + struct AnyMembers + { + /// @brief Definition of "Key" field. + class Key : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::field::TlvPropMembersCommon::AnyMembersCommon::KeyCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::AnyMembersCommon::KeyCommon::name(); + } + + + }; + + + /// @brief Definition of "Length" field. + class Length : public + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t + > + { + using Base = + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial22::field::TlvPropMembersCommon::AnyMembersCommon::LengthCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::AnyMembersCommon::LengthCommon::name(); + } + + + }; + + + /// @brief Definition of "Val" field. + class Val : public + comms::field::ArrayList< + tutorial22::field::FieldBase<>, + std::uint8_t, + typename TOpt::field::TlvPropMembers::AnyMembers::Val + > + { + using Base = + comms::field::ArrayList< + tutorial22::field::FieldBase<>, + std::uint8_t, + typename TOpt::field::TlvPropMembers::AnyMembers::Val + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::AnyMembersCommon::ValCommon::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + Key, + Length, + Val + >; + }; + + /// @brief Definition of "Any" field. + class Any : public + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename AnyMembers::All, + comms::option::def::RemLengthMemberField<1U> + > + { + using Base = + comms::field::Bundle< + tutorial22::field::FieldBase<>, + typename AnyMembers::All, + comms::option::def::RemLengthMemberField<1U> + >; + public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_FIELD_MEMBERS_NAMES macro + /// related to @b comms::field::Bundle class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_key index, @b Field_key type and @b field_key() access function - + /// for tutorial22::field::TlvPropMembers::AnyMembers::Key member field. + /// @li @b FieldIdx_length index, @b Field_length type and @b field_length() access function - + /// for tutorial22::field::TlvPropMembers::AnyMembers::Length member field. + /// @li @b FieldIdx_val index, @b Field_val type and @b field_val() access function - + /// for tutorial22::field::TlvPropMembers::AnyMembers::Val member field. + COMMS_FIELD_MEMBERS_NAMES( + key, + length, + val + ); + + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropMembersCommon::AnyCommon::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + Prop1, + Prop2, + Any + >; +}; + +/// @brief Definition of "TlvProp" field. +/// @details +/// Type-Length-Value Property +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +class TlvProp : public + comms::field::Variant< + tutorial22::field::FieldBase<>, + typename TlvPropMembers::All, + TExtraOpts..., + comms::option::def::HasCustomRead + > +{ + using Base = + comms::field::Variant< + tutorial22::field::FieldBase<>, + typename TlvPropMembers::All, + TExtraOpts..., + comms::option::def::HasCustomRead + >; +public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_VARIANT_MEMBERS_NAMES macro + /// related to @b comms::field::Variant class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_prop1 index, @b Field_prop1 type, + /// @b initField_prop1() and @b accessField_prop1() access functions - + /// for tutorial22::field::TlvPropMembers::Prop1 member field. + /// @li @b FieldIdx_prop2 index, @b Field_prop2 type, + /// @b initField_prop2() and @b accessField_prop2() access functions - + /// for tutorial22::field::TlvPropMembers::Prop2 member field. + /// @li @b FieldIdx_any index, @b Field_any type, + /// @b initField_any() and @b accessField_any() access functions - + /// for tutorial22::field::TlvPropMembers::Any member field. + COMMS_VARIANT_MEMBERS_NAMES( + prop1, + prop2, + any + ); + + /// @brief Optimized currFieldExec functionality. + /// @details Replaces the currFieldExec() member function defined + /// by @b comms::field::Variant. + template + void currFieldExec(TFunc&& func) + { + switch (Base::currentField()) { + case FieldIdx_prop1: + memFieldDispatch(accessField_prop1(), std::forward(func)); + break; + case FieldIdx_prop2: + memFieldDispatch(accessField_prop2(), std::forward(func)); + break; + case FieldIdx_any: + memFieldDispatch(accessField_any(), std::forward(func)); + break; + default: + static constexpr bool Invalid_field_execution = false; + static_cast(Invalid_field_execution); + COMMS_ASSERT(Invalid_field_execution); + break; + } + } + + /// @brief Optimized currFieldExec functionality (const variant). + /// @details Replaces the currFieldExec() member function defined + /// by @b comms::field::Variant. + template + void currFieldExec(TFunc&& func) const + { + switch (Base::currentField()) { + case FieldIdx_prop1: + memFieldDispatch(accessField_prop1(), std::forward(func)); + break; + case FieldIdx_prop2: + memFieldDispatch(accessField_prop2(), std::forward(func)); + break; + case FieldIdx_any: + memFieldDispatch(accessField_any(), std::forward(func)); + break; + default: + static constexpr bool Invalid_field_execution = false; + static_cast(Invalid_field_execution); + COMMS_ASSERT(Invalid_field_execution); + break; + } + } + + /// @brief Name of the field. + static const char* name() + { + return tutorial22::field::TlvPropCommon::name(); + } + + COMMS_MSVC_WARNING_PUSH + COMMS_MSVC_WARNING_DISABLE(4702) + /// @brief Generated read functionality. + template + comms::ErrorStatus read(TIter& iter, std::size_t len) + { + using CommonKeyField= + comms::field::IntValue< + tutorial22::field::FieldBase<>, + std::uint8_t, + comms::option::def::FailOnInvalid<> + >; + CommonKeyField commonKeyField; + + auto origIter = iter; + auto es = commonKeyField.read(iter, len); + if (es != comms::ErrorStatus::Success) { + return es; + } + + auto consumedLen = static_cast(std::distance(origIter, iter)); + COMMS_ASSERT(consumedLen <= len); + len -= consumedLen; + + switch (commonKeyField.getValue()) { + case 0U /* 0x00U */: + { + auto& field_prop1 = initField_prop1(); + COMMS_ASSERT(field_prop1.field_key().getValue() == commonKeyField.getValue()); + return field_prop1.template readFrom<1>(iter, len); + } + case 2U /* 0x02U */: + { + auto& field_prop2 = initField_prop2(); + COMMS_ASSERT(field_prop2.field_key().getValue() == commonKeyField.getValue()); + return field_prop2.template readFrom<1>(iter, len); + } + default: + initField_any().field_key().setValue(commonKeyField.getValue()); + return accessField_any().template readFrom<1>(iter, len); + }; + + return comms::ErrorStatus::InvalidMsgData; + + } + COMMS_MSVC_WARNING_POP + + + +private: + template + static void memFieldDispatch(TField&& f, TFunc&& func) + { + #ifdef _MSC_VER + func.operator()(std::forward(f)); // VS compiler + #else // #ifdef _MSC_VER + func.template operator()(std::forward(f)); // All other compilers + #endif // #ifdef _MSC_VER + } + + +}; + + +} // namespace field + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/field/TlvPropCommon.h b/tutorials/tutorial22/include/tutorial22/field/TlvPropCommon.h new file mode 100644 index 000000000..e1570bedf --- /dev/null +++ b/tutorials/tutorial22/include/tutorial22/field/TlvPropCommon.h @@ -0,0 +1,249 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial22::field::TlvProp field. + +#pragma once + +#include +#include "tutorial22/field/LengthCommon.h" + +namespace tutorial22 +{ + +namespace field +{ + + +/// @brief Scope for all the common definitions of the member fields of +/// @ref tutorial22::field::TlvProp field. +struct TlvPropMembersCommon +{ + /// @brief Scope for all the common definitions of the member fields of + /// @ref tutorial22::field::TlvPropMembers::Prop1 field. + struct Prop1MembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop1Members::Key field. + struct KeyCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::field::TlvPropMembers::Prop1Members::Key field. + using ValueType = std::uint8_t; + + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::Prop1Members::Key field. + static const char* name() + { + return "Key"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common definitions of the member fields of + /// @ref tutorial22::field::TlvPropMembers::Prop1Members::Length field. + using LengthMembersCommon = tutorial22::field::LengthMembersCommon; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop1Members::Length field. + using LengthCommon = tutorial22::field::LengthCommon; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop1Members::Val field. + struct ValCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::field::TlvPropMembers::Prop1Members::Val field. + using ValueType = std::uint32_t; + + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::Prop1Members::Val field. + static const char* name() + { + return "Val"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + }; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop1 field. + struct Prop1Common + { + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::Prop1 field. + static const char* name() + { + return "Prop1"; + } + + }; + + /// @brief Scope for all the common definitions of the member fields of + /// @ref tutorial22::field::TlvPropMembers::Prop2 field. + struct Prop2MembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop2Members::Key field. + struct KeyCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::field::TlvPropMembers::Prop2Members::Key field. + using ValueType = std::uint8_t; + + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::Prop2Members::Key field. + static const char* name() + { + return "Key"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common definitions of the member fields of + /// @ref tutorial22::field::TlvPropMembers::Prop2Members::Length field. + using LengthMembersCommon = tutorial22::field::LengthMembersCommon; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop2Members::Length field. + using LengthCommon = tutorial22::field::LengthCommon; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop2Members::Val field. + struct ValCommon + { + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::Prop2Members::Val field. + static const char* name() + { + return "Val"; + } + + }; + + }; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Prop2 field. + struct Prop2Common + { + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::Prop2 field. + static const char* name() + { + return "Prop2"; + } + + }; + + /// @brief Scope for all the common definitions of the member fields of + /// @ref tutorial22::field::TlvPropMembers::Any field. + struct AnyMembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::AnyMembers::Key field. + struct KeyCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::field::TlvPropMembers::AnyMembers::Key field. + using ValueType = std::uint8_t; + + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::AnyMembers::Key field. + static const char* name() + { + return "Key"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::AnyMembers::Length field. + struct LengthCommon + { + /// @brief Re-definition of the value type used by + /// tutorial22::field::TlvPropMembers::AnyMembers::Length field. + using ValueType = std::uint8_t; + + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::AnyMembers::Length field. + static const char* name() + { + return "Length"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::AnyMembers::Val field. + struct ValCommon + { + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::AnyMembers::Val field. + static const char* name() + { + return "Val"; + } + + }; + + }; + + /// @brief Common types and functions for + /// @ref tutorial22::field::TlvPropMembers::Any field. + struct AnyCommon + { + /// @brief Name of the @ref tutorial22::field::TlvPropMembers::Any field. + static const char* name() + { + return "Any"; + } + + }; + +}; + +/// @brief Common types and functions for +/// @ref tutorial22::field::TlvProp field. +struct TlvPropCommon +{ + /// @brief Name of the @ref tutorial22::field::TlvProp field. + static const char* name() + { + return "TlvProp"; + } + +}; + +} // namespace field + +} // namespace tutorial22 + diff --git a/tutorials/tutorial22/include/tutorial22/input/AllMessages.h b/tutorials/tutorial22/include/tutorial22/input/AllMessages.h index 3e2355c70..332eb72fa 100644 --- a/tutorials/tutorial22/include/tutorial22/input/AllMessages.h +++ b/tutorials/tutorial22/include/tutorial22/input/AllMessages.h @@ -7,7 +7,6 @@ #include #include "tutorial22/message/Msg1.h" -#include "tutorial22/message/Msg2.h" #include "tutorial22/options/DefaultOptions.h" namespace tutorial22 @@ -22,8 +21,7 @@ namespace input template using AllMessages = std::tuple< - tutorial22::message::Msg1, - tutorial22::message::Msg2 + tutorial22::message::Msg1 >; } // namespace input diff --git a/tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h b/tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h index a438c6f96..e8d37a4b5 100644 --- a/tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h +++ b/tutorials/tutorial22/include/tutorial22/input/ClientInputMessages.h @@ -7,7 +7,6 @@ #include #include "tutorial22/message/Msg1.h" -#include "tutorial22/message/Msg2.h" #include "tutorial22/options/DefaultOptions.h" namespace tutorial22 @@ -22,8 +21,7 @@ namespace input template using ClientInputMessages = std::tuple< - tutorial22::message::Msg1, - tutorial22::message::Msg2 + tutorial22::message::Msg1 >; } // namespace input diff --git a/tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h b/tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h index bfec61bf5..d16e423f9 100644 --- a/tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h +++ b/tutorials/tutorial22/include/tutorial22/input/ServerInputMessages.h @@ -7,7 +7,6 @@ #include #include "tutorial22/message/Msg1.h" -#include "tutorial22/message/Msg2.h" #include "tutorial22/options/DefaultOptions.h" namespace tutorial22 @@ -22,8 +21,7 @@ namespace input template using ServerInputMessages = std::tuple< - tutorial22::message::Msg1, - tutorial22::message::Msg2 + tutorial22::message::Msg1 >; } // namespace input diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg1.h b/tutorials/tutorial22/include/tutorial22/message/Msg1.h index 85ddca91e..20ffa7304 100644 --- a/tutorials/tutorial22/include/tutorial22/message/Msg1.h +++ b/tutorials/tutorial22/include/tutorial22/message/Msg1.h @@ -7,7 +7,11 @@ #include #include "comms/MessageBase.h" +#include "comms/field/ArrayList.h" +#include "comms/options.h" #include "tutorial22/MsgId.h" +#include "tutorial22/field/FieldBase.h" +#include "tutorial22/field/TlvProp.h" #include "tutorial22/message/Msg1Common.h" #include "tutorial22/options/DefaultOptions.h" @@ -26,8 +30,34 @@ namespace message template struct Msg1Fields { + /// @brief Definition of "F1" field. + class F1 : public + comms::field::ArrayList< + tutorial22::field::FieldBase<>, + tutorial22::field::TlvProp, + typename TOpt::message::Msg1Fields::F1 + > + { + using Base = + comms::field::ArrayList< + tutorial22::field::FieldBase<>, + tutorial22::field::TlvProp, + typename TOpt::message::Msg1Fields::F1 + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial22::message::Msg1FieldsCommon::F1Common::name(); + } + + + }; + + /// @brief All the fields bundled in std::tuple. using All = std::tuple< + F1 >; }; @@ -58,11 +88,21 @@ class Msg1 : public >; public: + /// @brief Provide names and allow access to internal fields. + /// @details See definition of @b COMMS_MSG_FIELDS_NAMES macro + /// related to @b comms::MessageBase class from COMMS library + /// for details. + /// + /// The generated values, types and functions are: + /// @li @b FieldIdx_f1 index, @b Field_f1 type and @b field_f1() access fuction + /// for @ref Msg1Fields::F1 field. + COMMS_MSG_FIELDS_NAMES( + f1 + ); + // Compile time check for serialisation length. static const std::size_t MsgMinLen = Base::doMinLength(); - static const std::size_t MsgMaxLen = Base::doMaxLength(); static_assert(MsgMinLen == 0U, "Unexpected min serialisation length"); - static_assert(MsgMaxLen == 0U, "Unexpected max serialisation length"); /// @brief Name of the message. static const char* doName() diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg1Common.h b/tutorials/tutorial22/include/tutorial22/message/Msg1Common.h index 34a6a11ae..ed162a3c6 100644 --- a/tutorials/tutorial22/include/tutorial22/message/Msg1Common.h +++ b/tutorials/tutorial22/include/tutorial22/message/Msg1Common.h @@ -13,6 +13,25 @@ namespace message { +/// @brief Common types and functions for fields of +/// @ref tutorial22::message::Msg1 message. +/// @see tutorial22::message::Msg1Fields +struct Msg1FieldsCommon +{ + /// @brief Common types and functions for + /// @ref tutorial22::message::Msg1Fields::F1 field. + struct F1Common + { + /// @brief Name of the @ref tutorial22::message::Msg1Fields::F1 field. + static const char* name() + { + return "F1"; + } + + }; + +}; + /// @brief Common types and functions of /// @ref tutorial22::message::Msg1 message. struct Msg1Common diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg2.h b/tutorials/tutorial22/include/tutorial22/message/Msg2.h deleted file mode 100644 index e4acdecce..000000000 --- a/tutorials/tutorial22/include/tutorial22/message/Msg2.h +++ /dev/null @@ -1,117 +0,0 @@ -// Generated by commsdsl2comms v5.0.0 - -/// @file -/// @brief Contains definition of "Message 2" message and its fields. - -#pragma once - -#include -#include "comms/MessageBase.h" -#include "comms/field/String.h" -#include "comms/options.h" -#include "tutorial22/MsgId.h" -#include "tutorial22/field/FieldBase.h" -#include "tutorial22/message/Msg2Common.h" -#include "tutorial22/options/DefaultOptions.h" - - -namespace tutorial22 -{ - -namespace message -{ - - -/// @brief Fields of @ref Msg2. -/// @tparam TOpt Extra options -/// @see @ref Msg2 -/// @headerfile tutorial22/message/Msg2.h -template -struct Msg2Fields -{ - /// @brief Definition of "F1" field. - class F1 : public - comms::field::String< - tutorial22::field::FieldBase<>, - typename TOpt::message::Msg2Fields::F1 - > - { - using Base = - comms::field::String< - tutorial22::field::FieldBase<>, - typename TOpt::message::Msg2Fields::F1 - >; - public: - /// @brief Name of the field. - static const char* name() - { - return tutorial22::message::Msg2FieldsCommon::F1Common::name(); - } - - - }; - - - /// @brief All the fields bundled in std::tuple. - using All = std::tuple< - F1 - >; -}; - -/// @brief Definition of "Message 2" message class. -/// @details -/// See @ref Msg2Fields for definition of the fields this message contains. -/// @tparam TMsgBase Base (interface) class. -/// @tparam TOpt Extra options -/// @headerfile tutorial22/message/Msg2.h -template -class Msg2 : public - comms::MessageBase< - TMsgBase, - comms::option::def::StaticNumIdImpl, - comms::option::def::FieldsImpl::All>, - comms::option::def::MsgType >, - comms::option::def::HasName - > -{ - // Redefinition of the base class type - using Base = - comms::MessageBase< - TMsgBase, - comms::option::def::StaticNumIdImpl, - comms::option::def::FieldsImpl::All>, - comms::option::def::MsgType >, - comms::option::def::HasName - >; - -public: - /// @brief Provide names and allow access to internal fields. - /// @details See definition of @b COMMS_MSG_FIELDS_NAMES macro - /// related to @b comms::MessageBase class from COMMS library - /// for details. - /// - /// The generated values, types and functions are: - /// @li @b FieldIdx_f1 index, @b Field_f1 type and @b field_f1() access fuction - /// for @ref Msg2Fields::F1 field. - COMMS_MSG_FIELDS_NAMES( - f1 - ); - - // Compile time check for serialisation length. - static const std::size_t MsgMinLen = Base::doMinLength(); - static_assert(MsgMinLen == 0U, "Unexpected min serialisation length"); - - /// @brief Name of the message. - static const char* doName() - { - return tutorial22::message::Msg2Common::name(); - } - - -}; - -} // namespace message - -} // namespace tutorial22 - - diff --git a/tutorials/tutorial22/include/tutorial22/message/Msg2Common.h b/tutorials/tutorial22/include/tutorial22/message/Msg2Common.h deleted file mode 100644 index 96b18bd82..000000000 --- a/tutorials/tutorial22/include/tutorial22/message/Msg2Common.h +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by commsdsl2comms v5.0.0 - -/// @file -/// @brief Contains common template parameters independent functionality of -/// @ref tutorial22::message::Msg2 message and its fields. - -#pragma once - -namespace tutorial22 -{ - -namespace message -{ - - -/// @brief Common types and functions for fields of -/// @ref tutorial22::message::Msg2 message. -/// @see tutorial22::message::Msg2Fields -struct Msg2FieldsCommon -{ - /// @brief Common types and functions for - /// @ref tutorial22::message::Msg2Fields::F1 field. - struct F1Common - { - /// @brief Name of the @ref tutorial22::message::Msg2Fields::F1 field. - static const char* name() - { - return "F1"; - } - - }; - -}; - -/// @brief Common types and functions of -/// @ref tutorial22::message::Msg2 message. -struct Msg2Common -{ - /// @brief Name of the @ref tutorial22::message::Msg2 message. - static const char* name() - { - return "Message 2"; - } - -}; - -} // namespace message - -} // namespace tutorial22 - - - diff --git a/tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h index ac2bdf455..ac943aaf5 100644 --- a/tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h +++ b/tutorials/tutorial22/include/tutorial22/options/BareMetalDefaultOptions.h @@ -23,20 +23,55 @@ namespace options template struct BareMetalDefaultOptionsT : public TBase { + /// @brief Extra options for fields. + struct field : public TBase::field + { + struct TlvPropMembers : public TBase::field::TlvPropMembers + { + struct Prop2Members : public TBase::field::TlvPropMembers::Prop2Members + { + /// @brief Extra options for @ref + /// tutorial22::field::TlvPropMembers::Prop2Members::Val + /// field. + using Val = + std::tuple< + comms::option::app::FixedSizeStorage, + typename TBase::field::TlvPropMembers::Prop2Members::Val + >; + + }; // struct Prop2Members + + struct AnyMembers : public TBase::field::TlvPropMembers::AnyMembers + { + /// @brief Extra options for @ref + /// tutorial22::field::TlvPropMembers::AnyMembers::Val + /// field. + using Val = + std::tuple< + comms::option::app::FixedSizeStorage, + typename TBase::field::TlvPropMembers::AnyMembers::Val + >; + + }; // struct AnyMembers + + }; // struct TlvPropMembers + + }; // struct field + /// @brief Extra options for messages. struct message : public TBase::message { /// @brief Extra options for fields of - /// @ref tutorial22::message::Msg2 message. - struct Msg2Fields : public TBase::message::Msg2Fields + /// @ref tutorial22::message::Msg1 message. + struct Msg1Fields : public TBase::message::Msg1Fields { /// @brief Extra options for @ref - /// tutorial22::message::Msg2Fields::F1 + /// tutorial22::message::Msg1Fields::F1 /// field. using F1 = std::tuple< comms::option::app::FixedSizeStorage, - typename TBase::message::Msg2Fields::F1 + typename TBase::message::Msg1Fields::F1 >; }; diff --git a/tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h index c6b09c7e6..5f2473053 100644 --- a/tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h +++ b/tutorials/tutorial22/include/tutorial22/options/DataViewDefaultOptions.h @@ -17,25 +17,40 @@ namespace options template struct DataViewDefaultOptionsT : public TBase { - /// @brief Extra options for messages. - struct message : public TBase::message + /// @brief Extra options for fields. + struct field : public TBase::field { - /// @brief Extra options for fields of - /// @ref tutorial22::message::Msg2 message. - struct Msg2Fields : public TBase::message::Msg2Fields + struct TlvPropMembers : public TBase::field::TlvPropMembers { - /// @brief Extra options for @ref - /// tutorial22::message::Msg2Fields::F1 - /// field. - using F1 = - std::tuple< - comms::option::app::OrigDataView, - typename TBase::message::Msg2Fields::F1 - >; + struct Prop2Members : public TBase::field::TlvPropMembers::Prop2Members + { + /// @brief Extra options for @ref + /// tutorial22::field::TlvPropMembers::Prop2Members::Val + /// field. + using Val = + std::tuple< + comms::option::app::OrigDataView, + typename TBase::field::TlvPropMembers::Prop2Members::Val + >; + + }; // struct Prop2Members + + struct AnyMembers : public TBase::field::TlvPropMembers::AnyMembers + { + /// @brief Extra options for @ref + /// tutorial22::field::TlvPropMembers::AnyMembers::Val + /// field. + using Val = + std::tuple< + comms::option::app::OrigDataView, + typename TBase::field::TlvPropMembers::AnyMembers::Val + >; + + }; // struct AnyMembers - }; + }; // struct TlvPropMembers - }; // struct message + }; // struct field /// @brief Extra options for frames. struct frame : public TBase::frame diff --git a/tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h b/tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h index e0676717c..bdf47e846 100644 --- a/tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h +++ b/tutorials/tutorial22/include/tutorial22/options/DefaultOptions.h @@ -20,15 +20,42 @@ struct EmptyOptions {}; template struct DefaultOptionsT : public TBase { + /// @brief Extra options for fields. + struct field + { + struct TlvPropMembers + { + struct Prop2Members + { + /// @brief Extra options for @ref + /// tutorial22::field::TlvPropMembers::Prop2Members::Val + /// field. + using Val = comms::option::EmptyOption; + + }; // struct Prop2Members + + struct AnyMembers + { + /// @brief Extra options for @ref + /// tutorial22::field::TlvPropMembers::AnyMembers::Val + /// field. + using Val = comms::option::EmptyOption; + + }; // struct AnyMembers + + }; // struct TlvPropMembers + + }; // struct field + /// @brief Extra options for messages. struct message { /// @brief Extra options for fields of - /// @ref tutorial22::message::Msg2 message. - struct Msg2Fields + /// @ref tutorial22::message::Msg1 message. + struct Msg1Fields { /// @brief Extra options for @ref - /// tutorial22::message::Msg2Fields::F1 + /// tutorial22::message::Msg1Fields::F1 /// field. using F1 = comms::option::EmptyOption; diff --git a/tutorials/tutorial22/src/ClientSession.cpp b/tutorials/tutorial22/src/ClientSession.cpp index d250aead1..4d96b5236 100644 --- a/tutorials/tutorial22/src/ClientSession.cpp +++ b/tutorials/tutorial22/src/ClientSession.cpp @@ -10,23 +10,43 @@ namespace cc_tutorial { -void ClientSession::handle(Msg1& msg) +namespace { - std::cout << "Received message \"" << msg.doName() << "\" with ID=" << (unsigned)msg.doGetId() << std::endl; - if (m_currentStage != CommsStage_Msg1) { - std::cerr << "ERROR: Unexpected stage" << std::endl; - return; +class PropDispatchHelper +{ +public: + explicit PropDispatchHelper(ClientSession& session) + : m_session(session) + { } - doNextStage(); -} + template + void operator()(const TField& field) + { + m_session.handleProp(field); + } + +private: + ClientSession& m_session; +}; -void ClientSession::handle(Msg2& msg) +} // namespace + +void ClientSession::handle(Msg1& msg) { std::cout << "Received message \"" << msg.doName() << "\" with ID=" << (unsigned)msg.doGetId() << std::endl; - if (m_currentStage != CommsStage_Msg2) { + auto& f1Vec = msg.field_f1().value(); + std::cout << '\t' << msg.field_f1().name() << " (" << f1Vec.size() << " elements)\n"; + for (auto idx = 0U; idx < f1Vec.size(); ++idx) { + auto& elem = f1Vec[idx]; // access to the variant element + elem.currFieldExec(PropDispatchHelper(*this)); + } + + std::cout << std::endl; + + if (m_currentStage != CommsStage_Msg1) { std::cerr << "ERROR: Unexpected stage" << std::endl; return; } @@ -39,6 +59,35 @@ void ClientSession::handle(Message& msg) std::cerr << "ERROR: Received unexpected message \"" << msg.name() << " with ID=" << (unsigned)msg.getId() << std::endl; } + +void ClientSession::handleProp(const Prop1& prop) +{ + std::cout << "\t\t" << prop.name() << ":\n" << + "\t\t\t" << prop.field_key().name() << " = " << (unsigned)prop.field_key().value() << '\n' << + "\t\t\t" << prop.field_length().name() << " = " << (unsigned)prop.field_length().getValue() << '\n' << + "\t\t\t" << prop.field_val().name() << " = " << prop.field_val().value() << '\n'; +} + +void ClientSession::handleProp(const Prop2& prop) +{ + std::cout << "\t\t" << prop.name() << ":\n" << + "\t\t\t" << prop.field_key().name() << " = " << (unsigned)prop.field_key().value() << '\n' << + "\t\t\t" << prop.field_length().name() << " = " << (unsigned)prop.field_length().getValue() << '\n' << + "\t\t\t" << prop.field_val().name() << " = " << prop.field_val().value() << '\n'; +} + +void ClientSession::handleProp(const AnyProp& prop) +{ + std::cout << "\t\t" << prop.name() << ":\n" << + "\t\t\t" << prop.field_key().name() << " = " << (unsigned)prop.field_key().value() << '\n' << + "\t\t\t" << prop.field_length().name() << " = " << (unsigned)prop.field_length().getValue() << '\n' << + "\t\t\t" << prop.field_val().name() << " = " << std::hex; + + std::copy(prop.field_val().value().begin(), prop.field_val().value().end(), std::ostream_iterator(std::cout, " ")); + std::cout << std::dec << '\n'; +} + + bool ClientSession::startImpl() { doNextStage(); @@ -114,7 +163,6 @@ void ClientSession::doNextStage() using NextSendFunc = void (ClientSession::*)(); static const NextSendFunc Map[] = { /* CommsStage_Msg1 */ &ClientSession::sendMsg1, - /* CommsStage_Msg2 */ &ClientSession::sendMsg2, }; static const std::size_t MapSize = std::extent::value; static_assert(MapSize == CommsStage_NumOfValues, "Invalid Map"); @@ -127,16 +175,16 @@ void ClientSession::sendMsg1() { Msg1 msg; - sendMessage(msg); -} + auto& listOfProps = msg.field_f1().value(); // vector of variant fields + listOfProps.resize(2); + assert(msg.doLength() == 0U); + assert(!listOfProps[0].valid()); + assert(!listOfProps[1].valid()); -void ClientSession::sendMsg2() -{ - Msg2 msg; + listOfProps[0].initField_prop1().field_val().value() = 0x12; + listOfProps[1].initField_prop2().field_val().value().assign(300, 'a'); // Force long length form. - // Make the message long - msg.field_f1().value().assign(300, 'a'); - + msg.doRefresh(); // Bring message to a consistent state sendMessage(msg); } diff --git a/tutorials/tutorial22/src/ClientSession.h b/tutorials/tutorial22/src/ClientSession.h index cc1072cac..fa0ca3064 100644 --- a/tutorials/tutorial22/src/ClientSession.h +++ b/tutorials/tutorial22/src/ClientSession.h @@ -37,13 +37,19 @@ class ClientSession : public Session // Definition of all the used message classes using Msg1 = tutorial22::message::Msg1; - using Msg2 = tutorial22::message::Msg2; // Handling functions for all the dispatched message objects void handle(Msg1& msg); - void handle(Msg2& msg); void handle(Message& msg); + using Prop1 = Msg1::Field_f1::ValueType::value_type::Field_prop1; + using Prop2 = Msg1::Field_f1::ValueType::value_type::Field_prop2; + using AnyProp = Msg1::Field_f1::ValueType::value_type::Field_any; + + void handleProp(const Prop1& prop); + void handleProp(const Prop2& prop); + void handleProp(const AnyProp& prop); + protected: virtual bool startImpl() override final; virtual std::size_t processInputImpl(const std::uint8_t* buf, std::size_t bufLen) override final; @@ -52,14 +58,12 @@ class ClientSession : public Session enum CommsStage { CommsStage_Msg1, - CommsStage_Msg2, CommsStage_NumOfValues }; void sendMessage(Message& msg); void doNextStage(); void sendMsg1(); - void sendMsg2(); // Client specific frame using Frame = diff --git a/tutorials/tutorial4/README.md b/tutorials/tutorial4/README.md index 693f379f7..d8ca425b6 100644 --- a/tutorials/tutorial4/README.md +++ b/tutorials/tutorial4/README.md @@ -425,7 +425,7 @@ this tutorial. - + diff --git a/tutorials/tutorial4/dsl/schema.xml b/tutorials/tutorial4/dsl/schema.xml index 865c7c7bc..f760a58b3 100644 --- a/tutorials/tutorial4/dsl/schema.xml +++ b/tutorials/tutorial4/dsl/schema.xml @@ -72,7 +72,7 @@ - + From a36018604b2495ba7d670d613e5f621e0bdeaf2c Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sun, 31 Jul 2022 11:06:09 +1000 Subject: [PATCH 05/12] Added summary to tutorial22. --- README.md | 2 +- tutorials/tutorial22/README.md | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 957004497..0d0d2c619 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ $> nmake install - [tutorial19](../../tree/master/tutorials/tutorial19) - Introduction to protocol version support. - [tutorial20](../../tree/master/tutorials/tutorial20) - Reporting protocol version in one of the messages. - [tutorial21](../../tree/master/tutorials/tutorial21) - Cast between different field types. -- [tutorial21](../../tree/master/tutorials/tutorial22) - Complex length fields. +- [tutorial22](../../tree/master/tutorials/tutorial22) - Complex length fields. # How-Tos diff --git a/tutorials/tutorial22/README.md b/tutorials/tutorial22/README.md index bba0d9516..0a2f7fd0e 100644 --- a/tutorials/tutorial22/README.md +++ b/tutorials/tutorial22/README.md @@ -100,4 +100,16 @@ Please analyze the raw data dump produced by both the "client" and the "server" of this tutorial to see that in case of first property the **short** form of the `Length` field is used, while for the second one the **long** form is in place. +## Summary + +- Version **v5.0** of [CommsDSL Specification](https://commschamp.github.io/commsdsl_spec/) + allows using complex fields like **<bundle>** or **<bitfield>** to be used + as length with `semanticType="length"` property assigned. +- Version **v5.0** of the [COMMS Library](https://github.com/commschamp/comms) uses + extra `getValue()` and `setValue()` wrapping functions (in addition to the `value()`), + which can be overridden in the injected code to provide custom value handling functionality. +- In most cases custom length retrieval functionality also requires providing `maxValue()` + static constexpr function, which provides maximal remaining length value. + + [Read Previous Tutorial](../tutorial21) <----------------------- From d21948de7f45fb5baa29cde34c8f1edb3662f816 Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sun, 31 Jul 2022 11:24:06 +1000 Subject: [PATCH 06/12] Replacing usage of "idReplacement" deprecated property with "semanticLayerType". --- howtos/howto2/README.md | 4 ++-- howtos/howto2/dsl/schema.xml | 2 +- howtos/howto8/README.md | 4 ++-- howtos/howto8/dsl/schema.xml | 2 +- tutorials/tutorial17/README.md | 19 ++++++++++++++++--- tutorials/tutorial17/dsl/schema.xml | 4 ++-- .../include/tutorial4/field/TlvProp.h | 6 ++---- 7 files changed, 26 insertions(+), 15 deletions(-) diff --git a/howtos/howto2/README.md b/howtos/howto2/README.md index dd7593e07..e526bfb4b 100644 --- a/howtos/howto2/README.md +++ b/howtos/howto2/README.md @@ -10,7 +10,7 @@ ID (4 bits) + SIZE (12 bits) | PAYLOAD The [schema](dsl/schema.xml) of this tutorial defines the such frame in the following way: ```xml - + @@ -20,7 +20,7 @@ The [schema](dsl/schema.xml) of this tutorial defines the such frame in the foll ``` Please note that the defined **<custom>** layer is marked as the replacement of the -**<id>** layer using **idReplacement** property +**<id>** layer using `semanticLayerType="id"` property (because there must be a layer responsible for the message object allocation). The [tutorial17](../../tutorials/tutorial17) explains usage of the custom framing diff --git a/howtos/howto2/dsl/schema.xml b/howtos/howto2/dsl/schema.xml index 28a017701..85d2a4dc6 100644 --- a/howtos/howto2/dsl/schema.xml +++ b/howtos/howto2/dsl/schema.xml @@ -16,7 +16,7 @@ - + diff --git a/howtos/howto8/README.md b/howtos/howto8/README.md index 414f95aa6..a6a14cb7a 100644 --- a/howtos/howto8/README.md +++ b/howtos/howto8/README.md @@ -34,7 +34,7 @@ The protocol framing is defined the following way: - + @@ -50,7 +50,7 @@ The protocol framing is defined the following way: ``` The `ID` processing framing layer cannot not be defined using built-in `` because the latter is expected to deal with the pure numeric value ID without any extra (most significant) control bit indicating presence of the optional flags. -As the result `` one needs to be used with `idReplacement="true"` property set. +As the result `` one needs to be used with `semanticLayerType="id"` property set. The `FLAGS` processing framing layer also cannot be defined using built-in `` because it needs additional processing logic of whether the field is present. diff --git a/howtos/howto8/dsl/schema.xml b/howtos/howto8/dsl/schema.xml index aecf94a59..b285a432f 100644 --- a/howtos/howto8/dsl/schema.xml +++ b/howtos/howto8/dsl/schema.xml @@ -23,7 +23,7 @@ - + diff --git a/tutorials/tutorial17/README.md b/tutorials/tutorial17/README.md index 14667ed35..c2ca42436 100644 --- a/tutorials/tutorial17/README.md +++ b/tutorials/tutorial17/README.md @@ -23,7 +23,7 @@ However instead of having separate **<value>** layer in its frame, both **id** and **size** values, but also having some extra flags bits. ```xml - + @@ -31,7 +31,7 @@ However instead of having separate **<value>** layer in its frame, both - + @@ -46,11 +46,24 @@ Please pay attention to the following details: - The default **<id>** and **<size>** do **NOT** support the intended split of the value into multiple sub-fields. Hence the **<custom>** layer definition needs to be used instead. -- The layer that replaces **<id>** must set **idReplacement** property to **true**. +- The layer that replaces **<id>** must set **semanticLayerType** property to **id** to let + the code generator know which layer replaces original **<id>** layer. +- Setting **semanticLayerType** for the layer that replaced **<size>** is not necessary + at this stage of developement (the code generator doesn't produce any special code for such layer), + but still recommended. - The **<bitfield>** field is used to split the field in multiple members. - In this particular tutorial `SizeWithFlags` follows the `IdWithFlags`, i.e the frame is ` ID (with flags) | SIZE (with flags) | PAYLOAD`. The opposite case where the size handling precedes the id is also supported but it has its nuances. It will be covered in one of the **howto**-s. + +---- + +**SIDE NOTE**: Before **v5.0** of the [CommsDSL Specification](https://commschamp.github.io/commsdsl_spec/), +the `IdWithFlags` custom layer had to use `idReplacement="true"` property to indicate that +the layer replaces the original **<id>**. Since **v5.0** it is deprecated and **semanticLayerType** +should be used instead. + +---- Let's take a look inside generated [include/tutorial17/frame/Frame.h](include/tutorial17/frame/Frame.h). It contains the following include statements: diff --git a/tutorials/tutorial17/dsl/schema.xml b/tutorials/tutorial17/dsl/schema.xml index e5727f082..04d34b2c0 100644 --- a/tutorials/tutorial17/dsl/schema.xml +++ b/tutorials/tutorial17/dsl/schema.xml @@ -19,7 +19,7 @@ - + @@ -27,7 +27,7 @@ - + diff --git a/tutorials/tutorial4/include/tutorial4/field/TlvProp.h b/tutorials/tutorial4/include/tutorial4/field/TlvProp.h index e9d118f63..4b15cc4ff 100644 --- a/tutorials/tutorial4/include/tutorial4/field/TlvProp.h +++ b/tutorials/tutorial4/include/tutorial4/field/TlvProp.h @@ -755,15 +755,13 @@ struct TlvPropMembers class Key : public comms::field::IntValue< tutorial4::field::FieldBase<>, - std::uint8_t, - comms::option::def::FailOnInvalid<> + std::uint8_t > { using Base = comms::field::IntValue< tutorial4::field::FieldBase<>, - std::uint8_t, - comms::option::def::FailOnInvalid<> + std::uint8_t >; public: /// @brief Re-definition of the value type. From 189304ccf879804cc324e8ff9a86826c8d493626 Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sun, 31 Jul 2022 12:06:15 +1000 Subject: [PATCH 07/12] Added reuse and replace info to tutorial2. --- tutorials/tutorial2/CMakeLists.txt | 1 + tutorials/tutorial2/README.md | 43 ++- tutorials/tutorial2/dsl/main.xml | 1 + tutorials/tutorial2/dsl/msg17.xml | 24 ++ tutorials/tutorial2/include/tutorial2/MsgId.h | 5 +- .../dispatch/DispatchClientInputMessage.h | 5 + .../tutorial2/dispatch/DispatchMessage.h | 5 + .../dispatch/DispatchServerInputMessage.h | 5 + .../tutorial2/include/tutorial2/field/MsgId.h | 4 +- .../include/tutorial2/field/MsgIdCommon.h | 3 +- .../include/tutorial2/input/AllMessages.h | 4 +- .../tutorial2/input/ClientInputMessages.h | 4 +- .../tutorial2/input/ServerInputMessages.h | 4 +- .../include/tutorial2/message/Msg17.h | 324 ++++++++++++++++++ .../include/tutorial2/message/Msg17Common.h | 180 ++++++++++ tutorials/tutorial2/src/ClientSession.cpp | 37 ++ tutorials/tutorial2/src/ClientSession.h | 4 + 17 files changed, 643 insertions(+), 10 deletions(-) create mode 100644 tutorials/tutorial2/dsl/msg17.xml create mode 100644 tutorials/tutorial2/include/tutorial2/message/Msg17.h create mode 100644 tutorials/tutorial2/include/tutorial2/message/Msg17Common.h diff --git a/tutorials/tutorial2/CMakeLists.txt b/tutorials/tutorial2/CMakeLists.txt index c9e609598..21de40a67 100644 --- a/tutorials/tutorial2/CMakeLists.txt +++ b/tutorials/tutorial2/CMakeLists.txt @@ -18,6 +18,7 @@ set (schema_files ${CMAKE_CURRENT_SOURCE_DIR}/dsl/msg14.xml ${CMAKE_CURRENT_SOURCE_DIR}/dsl/msg15.xml ${CMAKE_CURRENT_SOURCE_DIR}/dsl/msg16.xml + ${CMAKE_CURRENT_SOURCE_DIR}/dsl/msg17.xml ) set (server_src diff --git a/tutorials/tutorial2/README.md b/tutorials/tutorial2/README.md index c04a83e36..af78fff48 100644 --- a/tutorials/tutorial2/README.md +++ b/tutorials/tutorial2/README.md @@ -377,7 +377,7 @@ class Msg15 : public Since release **v4.0** of the [CommsDSL](https://github.com/commschamp/CommsDSL-Specification) as well as [commsdsl2comms](https://github.com/commschamp/commsdsl) code generator it became possible to copy fields from the definition of the [<bundle>](#bundle-fields) -field, not just another **<message>. +field, not just another **<message>**. The message `Msg16` inside [dsl/msg16.xml](dsl/msg16.xml) is defined the following way: ```xml @@ -2603,6 +2603,42 @@ void ClientSession::sendMsg14() } ``` +## Reusing Fields Definitions +In many cases some fields may share some portions of their definitions. To avoid various +copy-paste errors, the **CommsDSL** allows reusing of other fields using `reuse` +property like it is done in [dsl/msg17.xml](dsl/msg17.xml). Using this property is +equivalent to copying all other properties from one field to another. +```xml + + + + + + + + + + + + + + + + + + + + + +``` +In the example above the `Msg17.F1` field copies all the properties from `I17_1` and +then modifies its `defaultValue` as well as adds extra <special> one. + +The `Msg17.F2` <bungle> field copies all the properties including the original two +member fields, adds the third one (`M3`) and replaces the (`M2`) with different field. + +The replacing of the member fields became available since **v5.0** of the +[CommsDSL Specification](https://commschamp.github.io/commsdsl_spec). ## Summary @@ -2619,6 +2655,9 @@ void ClientSession::sendMsg14() - Reusing definition of one message to define another is possible using **copyFieldsFrom** property. The same property can be used to copy member fields from the definition of the [<bundle>](#bundle-fields) field. +- Reusing other fields definitions is possuble using **reuse** property. +- The replacing of member fields in composite fields like **<bundle>** and **<bitfield>** + is available since version **v5.0** of the **CommsDSL** using **<replace>** child node. - The fields are abstractions around actual value storage to provide common interface for all field types. - The primary and most frequently used member function of the field objects @@ -2659,7 +2698,7 @@ void ClientSession::sendMsg14() object. - Due to the nature of these tutorials it is not possible to cover **all** aspects (properties) of all the available fields, it is highly recommended to read - [CommsDSL](https://github.com/commschamp/CommsDSL-Specification) specification in + [CommsDSL](https://commschamp.github.io/commsdsl_spec) specification in full after reading the tutorials. - All the field classes are implemented by extending one of the field definition classes provided by the [COMMS Library](https://github.com/commschamp/comms) diff --git a/tutorials/tutorial2/dsl/main.xml b/tutorials/tutorial2/dsl/main.xml index 214eaa41d..1f2404978 100644 --- a/tutorials/tutorial2/dsl/main.xml +++ b/tutorials/tutorial2/dsl/main.xml @@ -18,6 +18,7 @@ + diff --git a/tutorials/tutorial2/dsl/msg17.xml b/tutorials/tutorial2/dsl/msg17.xml new file mode 100644 index 000000000..279ac0bbc --- /dev/null +++ b/tutorials/tutorial2/dsl/msg17.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorials/tutorial2/include/tutorial2/MsgId.h b/tutorials/tutorial2/include/tutorial2/MsgId.h index 704eaf115..ecfeed01a 100644 --- a/tutorials/tutorial2/include/tutorial2/MsgId.h +++ b/tutorials/tutorial2/include/tutorial2/MsgId.h @@ -29,11 +29,12 @@ enum MsgId : std::uint8_t MsgId_M14 = 14, ///< message id of @b M14 message. , MsgId_M15 = 15, ///< message id of @b M15 message. , MsgId_M16 = 16, ///< message id of @b M16 message. , + MsgId_M17 = 17, ///< message id of @b M17 message. , // --- Extra values generated for convenience ---, MsgId_FirstValue = 1, ///< First defined value., - MsgId_LastValue = 16, ///< Last defined value., - MsgId_ValuesLimit = 17, ///< Upper limit for defined values. + MsgId_LastValue = 17, ///< Last defined value., + MsgId_ValuesLimit = 18, ///< Upper limit for defined values. }; } // namespace tutorial2 diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h index 644558747..3ad56e2fa 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchClientInputMessage.h @@ -127,6 +127,11 @@ auto dispatchClientInputMessage( using MsgType = tutorial2::message::Msg16; return handler.handle(static_cast(msg)); } + case tutorial2::MsgId_M17: + { + using MsgType = tutorial2::message::Msg17; + return handler.handle(static_cast(msg)); + } default: break; }; diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h index aea774ba4..4e840dc55 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchMessage.h @@ -127,6 +127,11 @@ auto dispatchMessage( using MsgType = tutorial2::message::Msg16; return handler.handle(static_cast(msg)); } + case tutorial2::MsgId_M17: + { + using MsgType = tutorial2::message::Msg17; + return handler.handle(static_cast(msg)); + } default: break; }; diff --git a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h index f09979cf1..bfeea5665 100644 --- a/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h +++ b/tutorials/tutorial2/include/tutorial2/dispatch/DispatchServerInputMessage.h @@ -127,6 +127,11 @@ auto dispatchServerInputMessage( using MsgType = tutorial2::message::Msg16; return handler.handle(static_cast(msg)); } + case tutorial2::MsgId_M17: + { + using MsgType = tutorial2::message::Msg17; + return handler.handle(static_cast(msg)); + } default: break; }; diff --git a/tutorials/tutorial2/include/tutorial2/field/MsgId.h b/tutorials/tutorial2/include/tutorial2/field/MsgId.h index f7498c385..f329c596d 100644 --- a/tutorials/tutorial2/include/tutorial2/field/MsgId.h +++ b/tutorials/tutorial2/include/tutorial2/field/MsgId.h @@ -28,7 +28,7 @@ class MsgId : public tutorial2::field::FieldBase<>, tutorial2::field::MsgIdCommon::ValueType, TExtraOpts..., - comms::option::def::ValidNumValueRange<1, 16> + comms::option::def::ValidNumValueRange<1, 17> > { using Base = @@ -36,7 +36,7 @@ class MsgId : public tutorial2::field::FieldBase<>, tutorial2::field::MsgIdCommon::ValueType, TExtraOpts..., - comms::option::def::ValidNumValueRange<1, 16> + comms::option::def::ValidNumValueRange<1, 17> >; public: /// @brief Re-definition of the value type. diff --git a/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h b/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h index 9e071a98e..2de403203 100644 --- a/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h +++ b/tutorials/tutorial2/include/tutorial2/field/MsgIdCommon.h @@ -73,7 +73,8 @@ struct MsgIdCommon "M13", "M14", "M15", - "M16" + "M16", + "M17" }; static const std::size_t MapSize = std::extent::value; diff --git a/tutorials/tutorial2/include/tutorial2/input/AllMessages.h b/tutorials/tutorial2/include/tutorial2/input/AllMessages.h index 34ae4b509..ff4768406 100644 --- a/tutorials/tutorial2/include/tutorial2/input/AllMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/AllMessages.h @@ -14,6 +14,7 @@ #include "tutorial2/message/Msg14.h" #include "tutorial2/message/Msg15.h" #include "tutorial2/message/Msg16.h" +#include "tutorial2/message/Msg17.h" #include "tutorial2/message/Msg2.h" #include "tutorial2/message/Msg3.h" #include "tutorial2/message/Msg4.h" @@ -51,7 +52,8 @@ using AllMessages = tutorial2::message::Msg13, tutorial2::message::Msg14, tutorial2::message::Msg15, - tutorial2::message::Msg16 + tutorial2::message::Msg16, + tutorial2::message::Msg17 >; } // namespace input diff --git a/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h b/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h index e22c784c5..6339b8ba6 100644 --- a/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/ClientInputMessages.h @@ -14,6 +14,7 @@ #include "tutorial2/message/Msg14.h" #include "tutorial2/message/Msg15.h" #include "tutorial2/message/Msg16.h" +#include "tutorial2/message/Msg17.h" #include "tutorial2/message/Msg2.h" #include "tutorial2/message/Msg3.h" #include "tutorial2/message/Msg4.h" @@ -51,7 +52,8 @@ using ClientInputMessages = tutorial2::message::Msg13, tutorial2::message::Msg14, tutorial2::message::Msg15, - tutorial2::message::Msg16 + tutorial2::message::Msg16, + tutorial2::message::Msg17 >; } // namespace input diff --git a/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h b/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h index 2e8338595..a55eaad99 100644 --- a/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h +++ b/tutorials/tutorial2/include/tutorial2/input/ServerInputMessages.h @@ -14,6 +14,7 @@ #include "tutorial2/message/Msg14.h" #include "tutorial2/message/Msg15.h" #include "tutorial2/message/Msg16.h" +#include "tutorial2/message/Msg17.h" #include "tutorial2/message/Msg2.h" #include "tutorial2/message/Msg3.h" #include "tutorial2/message/Msg4.h" @@ -51,7 +52,8 @@ using ServerInputMessages = tutorial2::message::Msg13, tutorial2::message::Msg14, tutorial2::message::Msg15, - tutorial2::message::Msg16 + tutorial2::message::Msg16, + tutorial2::message::Msg17 >; } // namespace input diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg17.h b/tutorials/tutorial2/include/tutorial2/message/Msg17.h new file mode 100644 index 000000000..24a29c4cd --- /dev/null +++ b/tutorials/tutorial2/include/tutorial2/message/Msg17.h @@ -0,0 +1,324 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Message 17" message and its fields. + +#pragma once + +#include +#include +#include "comms/MessageBase.h" +#include "comms/field/Bundle.h" +#include "comms/field/IntValue.h" +#include "comms/options.h" +#include "tutorial2/MsgId.h" +#include "tutorial2/field/FieldBase.h" +#include "tutorial2/message/Msg17Common.h" +#include "tutorial2/options/DefaultOptions.h" + + +namespace tutorial2 +{ + +namespace message +{ + + +/// @brief Fields of @ref Msg17. +/// @tparam TOpt Extra options +/// @see @ref Msg17 +/// @headerfile tutorial2/message/Msg17.h +template +struct Msg17Fields +{ + /// @brief Definition of "F1" field. + class F1 : public + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint32_t, + comms::option::def::DefaultNumValue<10> + > + { + using Base = + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint32_t, + comms::option::def::DefaultNumValue<10> + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Single special value name info entry. + using SpecialNameInfo = tutorial2::message::Msg17FieldsCommon::F1Common::SpecialNameInfo; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = tutorial2::message::Msg17FieldsCommon::F1Common::SpecialNamesMapInfo; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial2::message::Msg17FieldsCommon::F1Common::hasSpecials(); + } + + /// @brief Special value "S1". + /// @see @ref tutorial2::message::Msg17FieldsCommon::F1Common::valueS1(). + static constexpr ValueType valueS1() + { + return tutorial2::message::Msg17FieldsCommon::F1Common::valueS1(); + } + + /// @brief Check the value is equal to special @ref valueS1(). + bool isS1() const + { + return Base::getValue() == valueS1(); + } + + /// @brief Assign special value @ref valueS1() to the field. + void setS1() + { + Base::setValue(valueS1()); + } + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + return tutorial2::message::Msg17FieldsCommon::F1Common::specialNamesMap(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial2::message::Msg17FieldsCommon::F1Common::name(); + } + + + }; + + + /// @brief Scope for all the member fields of + /// @ref F2 field. + struct F2Members + { + /// @brief Definition of "M1" field. + class M1 : public + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint16_t + > + { + using Base = + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint16_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial2::message::Msg17FieldsCommon::F2MembersCommon::M1Common::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial2::message::Msg17FieldsCommon::F2MembersCommon::M1Common::name(); + } + + + }; + + + /// @brief Definition of "M2" field. + class M2 : public + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint16_t + > + { + using Base = + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint16_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial2::message::Msg17FieldsCommon::F2MembersCommon::M2Common::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial2::message::Msg17FieldsCommon::F2MembersCommon::M2Common::name(); + } + + + }; + + + /// @brief Definition of "M3" field. + class M3 : public + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint16_t + > + { + using Base = + comms::field::IntValue< + tutorial2::field::FieldBase<>, + std::uint16_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial2::message::Msg17FieldsCommon::F2MembersCommon::M3Common::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial2::message::Msg17FieldsCommon::F2MembersCommon::M3Common::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + M1, + M2, + M3 + >; + }; + + /// @brief Definition of "F2" field. + class F2 : public + comms::field::Bundle< + tutorial2::field::FieldBase<>, + typename F2Members::All + > + { + using Base = + comms::field::Bundle< + tutorial2::field::FieldBase<>, + typename F2Members::All + >; + public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_FIELD_MEMBERS_NAMES macro + /// related to @b comms::field::Bundle class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_m1 index, @b Field_m1 type and @b field_m1() access function - + /// for tutorial2::message::Msg17Fields::F2Members::M1 member field. + /// @li @b FieldIdx_m2 index, @b Field_m2 type and @b field_m2() access function - + /// for tutorial2::message::Msg17Fields::F2Members::M2 member field. + /// @li @b FieldIdx_m3 index, @b Field_m3 type and @b field_m3() access function - + /// for tutorial2::message::Msg17Fields::F2Members::M3 member field. + COMMS_FIELD_MEMBERS_NAMES( + m1, + m2, + m3 + ); + + + /// @brief Name of the field. + static const char* name() + { + return tutorial2::message::Msg17FieldsCommon::F2Common::name(); + } + + + }; + + + /// @brief All the fields bundled in std::tuple. + using All = std::tuple< + F1, + F2 + >; +}; + +/// @brief Definition of "Message 17" message class. +/// @details +/// See @ref Msg17Fields for definition of the fields this message contains. +/// @tparam TMsgBase Base (interface) class. +/// @tparam TOpt Extra options +/// @headerfile tutorial2/message/Msg17.h +template +class Msg17 : public + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + > +{ + // Redefinition of the base class type + using Base = + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + >; + +public: + /// @brief Provide names and allow access to internal fields. + /// @details See definition of @b COMMS_MSG_FIELDS_NAMES macro + /// related to @b comms::MessageBase class from COMMS library + /// for details. + /// + /// The generated values, types and functions are: + /// @li @b FieldIdx_f1 index, @b Field_f1 type and @b field_f1() access fuction + /// for @ref Msg17Fields::F1 field. + /// @li @b FieldIdx_f2 index, @b Field_f2 type and @b field_f2() access fuction + /// for @ref Msg17Fields::F2 field. + COMMS_MSG_FIELDS_NAMES( + f1, + f2 + ); + + // Compile time check for serialisation length. + static const std::size_t MsgMinLen = Base::doMinLength(); + static const std::size_t MsgMaxLen = Base::doMaxLength(); + static_assert(MsgMinLen == 10U, "Unexpected min serialisation length"); + static_assert(MsgMaxLen == 10U, "Unexpected max serialisation length"); + + /// @brief Name of the message. + static const char* doName() + { + return tutorial2::message::Msg17Common::name(); + } + + +}; + +} // namespace message + +} // namespace tutorial2 + + diff --git a/tutorials/tutorial2/include/tutorial2/message/Msg17Common.h b/tutorials/tutorial2/include/tutorial2/message/Msg17Common.h new file mode 100644 index 000000000..59c221e53 --- /dev/null +++ b/tutorials/tutorial2/include/tutorial2/message/Msg17Common.h @@ -0,0 +1,180 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial2::message::Msg17 message and its fields. + +#pragma once + +#include +#include +#include + +namespace tutorial2 +{ + +namespace message +{ + + +/// @brief Common types and functions for fields of +/// @ref tutorial2::message::Msg17 message. +/// @see tutorial2::message::Msg17Fields +struct Msg17FieldsCommon +{ + /// @brief Common types and functions for + /// @ref tutorial2::message::Msg17Fields::F1 field. + struct F1Common + { + /// @brief Re-definition of the value type used by + /// tutorial2::message::Msg17Fields::F1 field. + using ValueType = std::uint32_t; + + /// @brief Single special value name info entry. + using SpecialNameInfo = std::pair; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = std::pair; + + /// @brief Name of the @ref tutorial2::message::Msg17Fields::F1 field. + static const char* name() + { + return "F1"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return true; + } + + /// @brief Special value "S1". + static constexpr ValueType valueS1() + { + return static_cast(10); + } + + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + static const SpecialNameInfo Map[] = { + std::make_pair(valueS1(), "S1") + }; + static const std::size_t MapSize = std::extent::value; + + return std::make_pair(&Map[0], MapSize); + } + + + }; + + /// @brief Scope for all the common definitions of the member fields of + /// @ref tutorial2::message::Msg17Fields::F2 field. + struct F2MembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial2::message::Msg17Fields::F2Members::M1 field. + struct M1Common + { + /// @brief Re-definition of the value type used by + /// tutorial2::message::Msg17Fields::F2Members::M1 field. + using ValueType = std::uint16_t; + + /// @brief Name of the @ref tutorial2::message::Msg17Fields::F2Members::M1 field. + static const char* name() + { + return "M1"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common types and functions for + /// @ref tutorial2::message::Msg17Fields::F2Members::M2 field. + struct M2Common + { + /// @brief Re-definition of the value type used by + /// tutorial2::message::Msg17Fields::F2Members::M2 field. + using ValueType = std::uint16_t; + + /// @brief Name of the @ref tutorial2::message::Msg17Fields::F2Members::M2 field. + static const char* name() + { + return "M2"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + /// @brief Common types and functions for + /// @ref tutorial2::message::Msg17Fields::F2Members::M3 field. + struct M3Common + { + /// @brief Re-definition of the value type used by + /// tutorial2::message::Msg17Fields::F2Members::M3 field. + using ValueType = std::uint16_t; + + /// @brief Name of the @ref tutorial2::message::Msg17Fields::F2Members::M3 field. + static const char* name() + { + return "M3"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + }; + + /// @brief Common types and functions for + /// @ref tutorial2::message::Msg17Fields::F2 field. + struct F2Common + { + /// @brief Name of the @ref tutorial2::message::Msg17Fields::F2 field. + static const char* name() + { + return "F2"; + } + + }; + +}; + +/// @brief Common types and functions of +/// @ref tutorial2::message::Msg17 message. +struct Msg17Common +{ + /// @brief Name of the @ref tutorial2::message::Msg17 message. + static const char* name() + { + return "Message 17"; + } + +}; + +} // namespace message + +} // namespace tutorial2 + + + diff --git a/tutorials/tutorial2/src/ClientSession.cpp b/tutorials/tutorial2/src/ClientSession.cpp index d0bbad0e3..b2efdfb0f 100644 --- a/tutorials/tutorial2/src/ClientSession.cpp +++ b/tutorials/tutorial2/src/ClientSession.cpp @@ -311,6 +311,28 @@ void ClientSession::handle(Msg16& msg) doNextStage(); } +void ClientSession::handle(Msg17& msg) +{ + auto* f2Name = msg.field_f2().name(); + std::cout << "Received \"" << msg.doName() << "\" with ID=" << (unsigned)msg.doGetId() << '\n' << + '\t' << msg.field_f1().name() << " = " << + msg.field_f1().value() << '\n' << + '\t' << f2Name << '.' << msg.field_f2().field_m1().name() << " = " << + msg.field_f2().field_m1().value() << '\n' << + '\t' << f2Name << '.' << msg.field_f2().field_m2().name() << " = " << + msg.field_f2().field_m2().value() << '\n' << + '\t' << f2Name << '.' << msg.field_f2().field_m3().name() << " = " << + msg.field_f2().field_m3().value() << '\n'; + std::cout << std::endl; + + if (m_currentStage != CommsStage_Msg17) { + std::cerr << "ERROR: Unexpected message received: " << std::endl; + return; + } + + doNextStage(); +} + void ClientSession::handle(Message& msg) { // The statement below uses polymorphic message name and ID retrievals. @@ -407,6 +429,7 @@ void ClientSession::doNextStage() /* CommsStage_Msg14 */ &ClientSession::sendMsg14, /* CommsStage_Msg15 */ &ClientSession::sendMsg15, /* CommsStage_Msg16 */ &ClientSession::sendMsg16, + /* CommsStage_Msg17 */ &ClientSession::sendMsg17, }; static const std::size_t MapSize = std::extent::value; static_assert(MapSize == CommsStage_NumOfValues, "Invalid Map"); @@ -686,6 +709,20 @@ void ClientSession::sendMsg16() sendMessage(msg); } + +void ClientSession::sendMsg17() +{ + Msg17 msg; + + auto& f2 = msg.field_f2(); // Access to f2 field + // Assign values to f2 members + f2.field_m1().value() = 0x1234; + f2.field_m2().value() = 0x5678; + f2.field_m2().value() = 0xdead; + + sendMessage(msg); +} + SessionPtr Session::createClient(boost_wrap::io& io) { return SessionPtr(new ClientSession(io)); diff --git a/tutorials/tutorial2/src/ClientSession.h b/tutorials/tutorial2/src/ClientSession.h index 274016991..63ea0ce83 100644 --- a/tutorials/tutorial2/src/ClientSession.h +++ b/tutorials/tutorial2/src/ClientSession.h @@ -45,6 +45,7 @@ class ClientSession : public Session using Msg14 = tutorial2::message::Msg14; using Msg15 = tutorial2::message::Msg15; using Msg16 = tutorial2::message::Msg16; + using Msg17 = tutorial2::message::Msg17; // Handling functions for all the dispatched message objects void handle(Msg1& msg); @@ -63,6 +64,7 @@ class ClientSession : public Session void handle(Msg14& msg); void handle(Msg15& msg); void handle(Msg16& msg); + void handle(Msg17& msg); void handle(Message& msg); protected: @@ -88,6 +90,7 @@ class ClientSession : public Session CommsStage_Msg14, CommsStage_Msg15, CommsStage_Msg16, + CommsStage_Msg17, CommsStage_NumOfValues }; @@ -109,6 +112,7 @@ class ClientSession : public Session void sendMsg14(); void sendMsg15(); void sendMsg16(); + void sendMsg17(); using Frame = tutorial2::frame::Frame; Frame m_frame; From cd8ad1126a2a511a77eebc0e85cce20249287e94 Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sun, 31 Jul 2022 14:14:47 +1000 Subject: [PATCH 08/12] Added tutorial23 definition. --- CMakeLists.txt | 9 +- tutorials/CMakeLists.txt | 1 + tutorials/tutorial22/README.md | 2 +- tutorials/tutorial23/CMakeLists.txt | 20 ++ tutorials/tutorial23/README.md | 10 + tutorials/tutorial23/dsl/schema.xml | 34 ++ tutorials/tutorial23/dsl/schema_ext.xml | 25 ++ .../include/t23_ext/ns1/field/Length.h.value | 30 ++ .../tutorial23/include/t23_ext/Version.h | 27 ++ .../include/t23_ext/field/FieldBase.h | 30 ++ .../tutorial23/include/t23_ext/ns1/field/I1.h | 101 ++++++ .../include/t23_ext/ns1/field/I1Common.h | 77 +++++ .../tutorial23/include/t23_ext/ns1/field/S1.h | 102 ++++++ .../include/t23_ext/ns1/field/S1Common.h | 67 ++++ .../t23_ext/options/BareMetalDefaultOptions.h | 55 ++++ .../t23_ext/options/ClientDefaultOptions.h | 27 ++ .../t23_ext/options/DataViewDefaultOptions.h | 49 +++ .../include/t23_ext/options/DefaultOptions.h | 48 +++ .../t23_ext/options/ServerDefaultOptions.h | 27 ++ .../tutorial23/include/tutorial23/Message.h | 29 ++ .../tutorial23/include/tutorial23/MsgId.h | 27 ++ .../tutorial23/include/tutorial23/Version.h | 27 ++ .../dispatch/DispatchClientInputMessage.h | 193 +++++++++++ .../tutorial23/dispatch/DispatchMessage.h | 193 +++++++++++ .../dispatch/DispatchServerInputMessage.h | 193 +++++++++++ .../include/tutorial23/field/FieldBase.h | 30 ++ .../tutorial23/include/tutorial23/field/I1.h | 35 ++ .../include/tutorial23/field/I1Common.h | 25 ++ .../include/tutorial23/field/Length.h | 303 ++++++++++++++++++ .../include/tutorial23/field/LengthCommon.h | 131 ++++++++ .../include/tutorial23/field/MsgId.h | 86 +++++ .../include/tutorial23/field/MsgIdCommon.h | 81 +++++ .../include/tutorial23/frame/Frame.h | 158 +++++++++ .../include/tutorial23/frame/FrameCommon.h | 58 ++++ .../include/tutorial23/input/AllMessages.h | 29 ++ .../tutorial23/input/ClientInputMessages.h | 29 ++ .../tutorial23/input/ServerInputMessages.h | 29 ++ .../include/tutorial23/message/Msg1.h | 141 ++++++++ .../include/tutorial23/message/Msg1Common.h | 71 ++++ .../options/BareMetalDefaultOptions.h | 68 ++++ .../tutorial23/options/ClientDefaultOptions.h | 27 ++ .../options/DataViewDefaultOptions.h | 53 +++ .../tutorial23/options/DefaultOptions.h | 57 ++++ .../tutorial23/options/ServerDefaultOptions.h | 27 ++ tutorials/tutorial23/src/ClientSession.cpp | 132 ++++++++ tutorials/tutorial23/src/ClientSession.h | 78 +++++ tutorials/tutorial23/src/ServerSession.cpp | 61 ++++ tutorials/tutorial23/src/ServerSession.h | 68 ++++ 48 files changed, 3177 insertions(+), 3 deletions(-) create mode 100644 tutorials/tutorial23/CMakeLists.txt create mode 100644 tutorials/tutorial23/README.md create mode 100644 tutorials/tutorial23/dsl/schema.xml create mode 100644 tutorials/tutorial23/dsl/schema_ext.xml create mode 100644 tutorials/tutorial23/dsl_src/include/t23_ext/ns1/field/Length.h.value create mode 100644 tutorials/tutorial23/include/t23_ext/Version.h create mode 100644 tutorials/tutorial23/include/t23_ext/field/FieldBase.h create mode 100644 tutorials/tutorial23/include/t23_ext/ns1/field/I1.h create mode 100644 tutorials/tutorial23/include/t23_ext/ns1/field/I1Common.h create mode 100644 tutorials/tutorial23/include/t23_ext/ns1/field/S1.h create mode 100644 tutorials/tutorial23/include/t23_ext/ns1/field/S1Common.h create mode 100644 tutorials/tutorial23/include/t23_ext/options/BareMetalDefaultOptions.h create mode 100644 tutorials/tutorial23/include/t23_ext/options/ClientDefaultOptions.h create mode 100644 tutorials/tutorial23/include/t23_ext/options/DataViewDefaultOptions.h create mode 100644 tutorials/tutorial23/include/t23_ext/options/DefaultOptions.h create mode 100644 tutorials/tutorial23/include/t23_ext/options/ServerDefaultOptions.h create mode 100644 tutorials/tutorial23/include/tutorial23/Message.h create mode 100644 tutorials/tutorial23/include/tutorial23/MsgId.h create mode 100644 tutorials/tutorial23/include/tutorial23/Version.h create mode 100644 tutorials/tutorial23/include/tutorial23/dispatch/DispatchClientInputMessage.h create mode 100644 tutorials/tutorial23/include/tutorial23/dispatch/DispatchMessage.h create mode 100644 tutorials/tutorial23/include/tutorial23/dispatch/DispatchServerInputMessage.h create mode 100644 tutorials/tutorial23/include/tutorial23/field/FieldBase.h create mode 100644 tutorials/tutorial23/include/tutorial23/field/I1.h create mode 100644 tutorials/tutorial23/include/tutorial23/field/I1Common.h create mode 100644 tutorials/tutorial23/include/tutorial23/field/Length.h create mode 100644 tutorials/tutorial23/include/tutorial23/field/LengthCommon.h create mode 100644 tutorials/tutorial23/include/tutorial23/field/MsgId.h create mode 100644 tutorials/tutorial23/include/tutorial23/field/MsgIdCommon.h create mode 100644 tutorials/tutorial23/include/tutorial23/frame/Frame.h create mode 100644 tutorials/tutorial23/include/tutorial23/frame/FrameCommon.h create mode 100644 tutorials/tutorial23/include/tutorial23/input/AllMessages.h create mode 100644 tutorials/tutorial23/include/tutorial23/input/ClientInputMessages.h create mode 100644 tutorials/tutorial23/include/tutorial23/input/ServerInputMessages.h create mode 100644 tutorials/tutorial23/include/tutorial23/message/Msg1.h create mode 100644 tutorials/tutorial23/include/tutorial23/message/Msg1Common.h create mode 100644 tutorials/tutorial23/include/tutorial23/options/BareMetalDefaultOptions.h create mode 100644 tutorials/tutorial23/include/tutorial23/options/ClientDefaultOptions.h create mode 100644 tutorials/tutorial23/include/tutorial23/options/DataViewDefaultOptions.h create mode 100644 tutorials/tutorial23/include/tutorial23/options/DefaultOptions.h create mode 100644 tutorials/tutorial23/include/tutorial23/options/ServerDefaultOptions.h create mode 100644 tutorials/tutorial23/src/ClientSession.cpp create mode 100644 tutorials/tutorial23/src/ClientSession.h create mode 100644 tutorials/tutorial23/src/ServerSession.cpp create mode 100644 tutorials/tutorial23/src/ServerSession.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 2852fe414..f29248d9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,7 +143,7 @@ endif () function (dsl_parse type name) set (prefix DSL_PARSE) - set (options) + set (options MULTI_SCHEMA) set (oneValueArgs SRC_DIR) set (mutiValueArgs SCHEMAS) cmake_parse_arguments(${prefix} "${options}" "${oneValueArgs}" "${mutiValueArgs}" ${ARGN}) @@ -158,6 +158,11 @@ function (dsl_parse type name) set (code_input_param -c ${DSL_PARSE_SRC_DIR}) file (GLOB_RECURSE src_files "${DSL_PARSE_SRC_DIR}/*") endif () + + set (multi_schema_param) + if (DSL_PARSE_MULTI_SCHEMA) + set (multi_schema_param "-s") + endif () set (commsdsl_tgt_dep) if (TARGET ${COMMSDSL_TGT}) @@ -176,7 +181,7 @@ function (dsl_parse type name) OUTPUT ${output_dir} DEPENDS ${DSL_PARSE_SCHEMAS} ${src_files} ${commsdsl_tgt_dep} ${name}_prot_rm COMMAND ${CMAKE_COMMAND} -E remove_directory ${output_dir} - COMMAND ${COMMSDSL2COMMS} --warn-as-err ${code_input_param} "--comms-tag=${CC_COMMS_TAG}" + COMMAND ${COMMSDSL2COMMS} --warn-as-err ${multi_schema_param} ${code_input_param} "--comms-tag=${CC_COMMS_TAG}" -o ${output_dir} -i ${CMAKE_CURRENT_BINARY_DIR}/${name}/schema_files.txt ) diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt index 1518e1052..a46ce7727 100644 --- a/tutorials/CMakeLists.txt +++ b/tutorials/CMakeLists.txt @@ -32,3 +32,4 @@ add_subdirectory (tutorial19) add_subdirectory (tutorial20) add_subdirectory (tutorial21) add_subdirectory (tutorial22) +add_subdirectory (tutorial23) diff --git a/tutorials/tutorial22/README.md b/tutorials/tutorial22/README.md index 0a2f7fd0e..5cf117290 100644 --- a/tutorials/tutorial22/README.md +++ b/tutorials/tutorial22/README.md @@ -112,4 +112,4 @@ is used, while for the second one the **long** form is in place. static constexpr function, which provides maximal remaining length value. -[Read Previous Tutorial](../tutorial21) <----------------------- +[Read Previous Tutorial](../tutorial21) <----------------------- [Read Next Tutorial](../tutorial23) diff --git a/tutorials/tutorial23/CMakeLists.txt b/tutorials/tutorial23/CMakeLists.txt new file mode 100644 index 000000000..4d6511b5a --- /dev/null +++ b/tutorials/tutorial23/CMakeLists.txt @@ -0,0 +1,20 @@ +get_filename_component(name ${CMAKE_CURRENT_SOURCE_DIR} NAME) + +set (schema_files + ${CMAKE_CURRENT_SOURCE_DIR}/dsl/schema_ext.xml + ${CMAKE_CURRENT_SOURCE_DIR}/dsl/schema.xml +) + +set (server_src + src/ServerSession.cpp +) + +set (client_src + src/ClientSession.cpp +) + +dsl_tutorial_parse(${name} SCHEMAS ${schema_files} SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dsl_src MULTI_SCHEMA) + +bin_tutorial_server(${name} ${server_src}) +bin_tutorial_client(${name} ${client_src}) + diff --git a/tutorials/tutorial23/README.md b/tutorials/tutorial23/README.md new file mode 100644 index 000000000..3eb1fef67 --- /dev/null +++ b/tutorials/tutorial23/README.md @@ -0,0 +1,10 @@ +# Tutorial 23 +Reusing definitions from other schemas. + + +## Summary + +- + + +[Read Previous Tutorial](../tutorial22) <----------------------- diff --git a/tutorials/tutorial23/dsl/schema.xml b/tutorials/tutorial23/dsl/schema.xml new file mode 100644 index 000000000..f9b3edcb0 --- /dev/null +++ b/tutorials/tutorial23/dsl/schema.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorials/tutorial23/dsl/schema_ext.xml b/tutorials/tutorial23/dsl/schema_ext.xml new file mode 100644 index 000000000..807b0a007 --- /dev/null +++ b/tutorials/tutorial23/dsl/schema_ext.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorials/tutorial23/dsl_src/include/t23_ext/ns1/field/Length.h.value b/tutorials/tutorial23/dsl_src/include/t23_ext/ns1/field/Length.h.value new file mode 100644 index 000000000..85f8c3f97 --- /dev/null +++ b/tutorials/tutorial23/dsl_src/include/t23_ext/ns1/field/Length.h.value @@ -0,0 +1,30 @@ +/// @brief Get length value +std::size_t getValue() const +{ + if (!field_short().isLongForm()) { + return static_cast(field_short().value()); + } + + COMMS_ASSERT(field_long().doesExist()); // Make sure the field in the consistent state + return static_cast(field_long().field().value()); +} + +/// @brief Set length value +void setValue(std::size_t val) +{ + if (val < Field_short::valueLongForm()) { + field_short().setValue(val); + field_long().setMissing(); + return; + } + + field_short().setLongForm(); + field_long().field().setValue(val); + field_long().setExists(); +} + +/// @brief Maximal possible length value +static constexpr std::size_t maxValue() +{ + return std::numeric_limits::max(); +} diff --git a/tutorials/tutorial23/include/t23_ext/Version.h b/tutorials/tutorial23/include/t23_ext/Version.h new file mode 100644 index 000000000..5c6086776 --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/Version.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains protocol version definition. + +#pragma once + +#include "comms/version.h" + +/// @brief Version of the protocol specification. +#define T23_EXT_SPEC_VERSION (0U) + +namespace t23_ext +{ + +/// @brief Version of the protocol specification. +inline constexpr unsigned specVersion() +{ + return T23_EXT_SPEC_VERSION; +} + +} // namespace t23_ext + +// Generated compile time check for minimal supported version of the COMMS library +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), + "The version of COMMS library is too old"); + diff --git a/tutorials/tutorial23/include/t23_ext/field/FieldBase.h b/tutorials/tutorial23/include/t23_ext/field/FieldBase.h new file mode 100644 index 000000000..c9ebdb8a9 --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/field/FieldBase.h @@ -0,0 +1,30 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of base class of all the fields. + +#pragma once + +#include "comms/Field.h" +#include "comms/options.h" +#include "t23_ext/Version.h" + +namespace t23_ext +{ + +namespace field +{ + +/// @brief Common base class for all the fields. +/// @tparam TOpt Extra options. +template +using FieldBase = + comms::Field< + TOpt..., + comms::option::def::BigEndian + >; + +} // namespace field + +} // namespace t23_ext + diff --git a/tutorials/tutorial23/include/t23_ext/ns1/field/I1.h b/tutorials/tutorial23/include/t23_ext/ns1/field/I1.h new file mode 100644 index 000000000..9eb012200 --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/ns1/field/I1.h @@ -0,0 +1,101 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "I1" field. + +#pragma once + +#include +#include "comms/field/IntValue.h" +#include "comms/options.h" +#include "t23_ext/field/FieldBase.h" +#include "t23_ext/ns1/field/I1Common.h" +#include "t23_ext/options/DefaultOptions.h" + +namespace t23_ext +{ + +namespace ns1 +{ + +namespace field +{ + + +/// @brief Definition of "I1" field. +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +class I1 : public + comms::field::IntValue< + t23_ext::field::FieldBase<>, + std::uint16_t, + TExtraOpts... + > +{ + using Base = + comms::field::IntValue< + t23_ext::field::FieldBase<>, + std::uint16_t, + TExtraOpts... + >; +public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Single special value name info entry. + using SpecialNameInfo = t23_ext::ns1::field::I1Common::SpecialNameInfo; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = t23_ext::ns1::field::I1Common::SpecialNamesMapInfo; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return t23_ext::ns1::field::I1Common::hasSpecials(); + } + + /// @brief Special value "S1". + /// @see @ref t23_ext::ns1::field::I1Common::valueS1(). + static constexpr ValueType valueS1() + { + return t23_ext::ns1::field::I1Common::valueS1(); + } + + /// @brief Check the value is equal to special @ref valueS1(). + bool isS1() const + { + return Base::getValue() == valueS1(); + } + + /// @brief Assign special value @ref valueS1() to the field. + void setS1() + { + Base::setValue(valueS1()); + } + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + return t23_ext::ns1::field::I1Common::specialNamesMap(); + } + + + /// @brief Name of the field. + static const char* name() + { + return t23_ext::ns1::field::I1Common::name(); + } + + +}; + + +} // namespace field + +} // namespace ns1 + +} // namespace t23_ext + diff --git a/tutorials/tutorial23/include/t23_ext/ns1/field/I1Common.h b/tutorials/tutorial23/include/t23_ext/ns1/field/I1Common.h new file mode 100644 index 000000000..fe30585ae --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/ns1/field/I1Common.h @@ -0,0 +1,77 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref t23_ext::ns1::field::I1 field. + +#pragma once + +#include +#include +#include + +namespace t23_ext +{ + +namespace ns1 +{ + +namespace field +{ + + +/// @brief Common types and functions for +/// @ref t23_ext::ns1::field::I1 field. +struct I1Common +{ + /// @brief Re-definition of the value type used by + /// t23_ext::ns1::field::I1 field. + using ValueType = std::uint16_t; + + /// @brief Single special value name info entry. + using SpecialNameInfo = std::pair; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = std::pair; + + /// @brief Name of the @ref t23_ext::ns1::field::I1 field. + static const char* name() + { + return "I1"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return true; + } + + /// @brief Special value "S1". + static constexpr ValueType valueS1() + { + return static_cast(255); + } + + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + static const SpecialNameInfo Map[] = { + std::make_pair(valueS1(), "S1") + }; + static const std::size_t MapSize = std::extent::value; + + return std::make_pair(&Map[0], MapSize); + } + + +}; + +} // namespace field + +} // namespace ns1 + +} // namespace t23_ext + diff --git a/tutorials/tutorial23/include/t23_ext/ns1/field/S1.h b/tutorials/tutorial23/include/t23_ext/ns1/field/S1.h new file mode 100644 index 000000000..12257de1c --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/ns1/field/S1.h @@ -0,0 +1,102 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "S1" field. + +#pragma once + +#include +#include "comms/field/IntValue.h" +#include "comms/field/String.h" +#include "comms/options.h" +#include "t23_ext/field/FieldBase.h" +#include "t23_ext/ns1/field/S1Common.h" +#include "t23_ext/options/DefaultOptions.h" + +namespace t23_ext +{ + +namespace ns1 +{ + +namespace field +{ + + +/// @brief Scope for all the member fields of +/// @ref S1 field. +/// @tparam TOpt Protocol options. +template +struct S1Members +{ + /// @brief Definition of "LengthPrefix" field. + class LengthPrefix : public + comms::field::IntValue< + t23_ext::field::FieldBase<>, + std::uint8_t + > + { + using Base = + comms::field::IntValue< + t23_ext::field::FieldBase<>, + std::uint8_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return t23_ext::ns1::field::S1MembersCommon::LengthPrefixCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return t23_ext::ns1::field::S1MembersCommon::LengthPrefixCommon::name(); + } + + + }; + + +}; + +/// @brief Definition of "S1" field. +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +class S1 : public + comms::field::String< + t23_ext::field::FieldBase<>, + TExtraOpts..., + typename TOpt::t23_ext::ns1::field::S1, + comms::option::def::SequenceSerLengthFieldPrefix::LengthPrefix> + > +{ + using Base = + comms::field::String< + t23_ext::field::FieldBase<>, + TExtraOpts..., + typename TOpt::t23_ext::ns1::field::S1, + comms::option::def::SequenceSerLengthFieldPrefix::LengthPrefix> + >; +public: + /// @brief Name of the field. + static const char* name() + { + return t23_ext::ns1::field::S1Common::name(); + } + + +}; + + +} // namespace field + +} // namespace ns1 + +} // namespace t23_ext + diff --git a/tutorials/tutorial23/include/t23_ext/ns1/field/S1Common.h b/tutorials/tutorial23/include/t23_ext/ns1/field/S1Common.h new file mode 100644 index 000000000..57d74a373 --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/ns1/field/S1Common.h @@ -0,0 +1,67 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref t23_ext::ns1::field::S1 field. + +#pragma once + +#include + +namespace t23_ext +{ + +namespace ns1 +{ + +namespace field +{ + + +/// @brief Scope for all the common definitions of the member fields of +/// @ref t23_ext::ns1::field::S1 field. +struct S1MembersCommon +{ + /// @brief Common types and functions for + /// @ref t23_ext::ns1::field::S1Members::LengthPrefix field. + struct LengthPrefixCommon + { + /// @brief Re-definition of the value type used by + /// t23_ext::ns1::field::S1Members::LengthPrefix field. + using ValueType = std::uint8_t; + + /// @brief Name of the @ref t23_ext::ns1::field::S1Members::LengthPrefix field. + static const char* name() + { + return "LengthPrefix"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + +}; + +/// @brief Common types and functions for +/// @ref t23_ext::ns1::field::S1 field. +struct S1Common +{ + /// @brief Name of the @ref t23_ext::ns1::field::S1 field. + static const char* name() + { + return "S1"; + } + +}; + +} // namespace field + +} // namespace ns1 + +} // namespace t23_ext + diff --git a/tutorials/tutorial23/include/t23_ext/options/BareMetalDefaultOptions.h b/tutorials/tutorial23/include/t23_ext/options/BareMetalDefaultOptions.h new file mode 100644 index 000000000..5d47611e6 --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/options/BareMetalDefaultOptions.h @@ -0,0 +1,55 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol bare metal default options. + +#pragma once + +#include "t23_ext/options/DefaultOptions.h" + +#ifndef DEFAULT_SEQ_FIXED_STORAGE_SIZE +/// @brief Define default fixed size for various sequence fields +/// @details May be defined during compile time to change the default value. +#define DEFAULT_SEQ_FIXED_STORAGE_SIZE 32 +#endif + +namespace t23_ext +{ + +namespace options +{ + +/// @brief Default bare metal options of the protocol. +template +struct BareMetalDefaultOptionsT : public TBase +{ + struct t23_ext + { + /// @brief Extra options for namespace. + struct ns1: public TBase::t23_ext::ns1 + { + /// @brief Extra options for fields. + struct field : public TBase::t23_ext::ns1::field + { + /// @brief Extra options for @ref + /// t23_ext::ns1::field::S1 field. + using S1 = + std::tuple< + comms::option::app::FixedSizeStorage, + typename TBase::t23_ext::ns1::field::S1 + >; + + }; // struct field + + }; // struct ns1 + + }; // struct t23_ext + +}; + +/// @brief Alias to @ref BareMetalDefaultOptionsT with default template parameter. +using BareMetalDefaultOptions = BareMetalDefaultOptionsT<>; + +} // namespace options + +} // namespace t23_ext diff --git a/tutorials/tutorial23/include/t23_ext/options/ClientDefaultOptions.h b/tutorials/tutorial23/include/t23_ext/options/ClientDefaultOptions.h new file mode 100644 index 000000000..7bd78438a --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/options/ClientDefaultOptions.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol client default options. + +#pragma once + +#include "t23_ext/options/DefaultOptions.h" + +namespace t23_ext +{ + +namespace options +{ + +/// @brief Default client options of the protocol. +template +struct ClientDefaultOptionsT : public TBase +{ +}; + +/// @brief Alias to @ref ClientDefaultOptionsT with default template parameter. +using ClientDefaultOptions = ClientDefaultOptionsT<>; + +} // namespace options + +} // namespace t23_ext diff --git a/tutorials/tutorial23/include/t23_ext/options/DataViewDefaultOptions.h b/tutorials/tutorial23/include/t23_ext/options/DataViewDefaultOptions.h new file mode 100644 index 000000000..68df43473 --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/options/DataViewDefaultOptions.h @@ -0,0 +1,49 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol data view default options. + +#pragma once + +#include "t23_ext/options/DefaultOptions.h" + +namespace t23_ext +{ + +namespace options +{ + +/// @brief Default data view options of the protocol. +template +struct DataViewDefaultOptionsT : public TBase +{ + struct t23_ext + { + /// @brief Extra options for namespace. + struct ns1: public TBase::t23_ext::ns1 + { + /// @brief Extra options for fields. + struct field : public TBase::t23_ext::ns1::field + { + /// @brief Extra options for @ref + /// t23_ext::ns1::field::S1 field. + using S1 = + std::tuple< + comms::option::app::OrigDataView, + typename TBase::t23_ext::ns1::field::S1 + >; + + }; // struct field + + }; // struct ns1 + + }; // struct t23_ext + +}; + +/// @brief Alias to @ref DataViewDefaultOptionsT with default template parameter. +using DataViewDefaultOptions = DataViewDefaultOptionsT<>; + +} // namespace options + +} // namespace t23_ext diff --git a/tutorials/tutorial23/include/t23_ext/options/DefaultOptions.h b/tutorials/tutorial23/include/t23_ext/options/DefaultOptions.h new file mode 100644 index 000000000..f389cc60f --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/options/DefaultOptions.h @@ -0,0 +1,48 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol default options. + +#pragma once + +#include "comms/options.h" + +namespace t23_ext +{ + +namespace options +{ + +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + +/// @brief Default (empty) options of the protocol. +template +struct DefaultOptionsT : public TBase +{ + struct t23_ext + { + /// @brief Extra options for namespace. + struct ns1 + { + /// @brief Extra options for fields. + struct field + { + /// @brief Extra options for @ref + /// t23_ext::ns1::field::S1 field. + using S1 = comms::option::EmptyOption; + + }; // struct field + + }; // struct ns1 + + }; // struct t23_ext + +}; + +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + +} // namespace options + +} // namespace t23_ext diff --git a/tutorials/tutorial23/include/t23_ext/options/ServerDefaultOptions.h b/tutorials/tutorial23/include/t23_ext/options/ServerDefaultOptions.h new file mode 100644 index 000000000..dfb95ad55 --- /dev/null +++ b/tutorials/tutorial23/include/t23_ext/options/ServerDefaultOptions.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol server default options. + +#pragma once + +#include "t23_ext/options/DefaultOptions.h" + +namespace t23_ext +{ + +namespace options +{ + +/// @brief Default server options of the protocol. +template +struct ServerDefaultOptionsT : public TBase +{ +}; + +/// @brief Alias to @ref ServerDefaultOptionsT with default template parameter. +using ServerDefaultOptions = ServerDefaultOptionsT<>; + +} // namespace options + +} // namespace t23_ext diff --git a/tutorials/tutorial23/include/tutorial23/Message.h b/tutorials/tutorial23/include/tutorial23/Message.h new file mode 100644 index 000000000..41ac6a4a6 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/Message.h @@ -0,0 +1,29 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Message" interface class. + +#pragma once + +#include "comms/Message.h" +#include "comms/options.h" +#include "tutorial23/MsgId.h" + +namespace tutorial23 +{ + + +/// @brief Definition of "Message" common interface class. +/// @tparam TOpt Interface definition options +/// @headerfile tutorial23/Message.h +template +using Message = + comms::Message< + TOpt..., + comms::option::def::BigEndian, + comms::option::def::MsgIdType + >; + +} // namespace tutorial23 + + diff --git a/tutorials/tutorial23/include/tutorial23/MsgId.h b/tutorials/tutorial23/include/tutorial23/MsgId.h new file mode 100644 index 000000000..4e92b5153 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/MsgId.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of message ids enumeration. + +#pragma once + +#include +#include "tutorial23/Version.h" + +namespace tutorial23 +{ +/// @brief Message ids enumeration. +enum MsgId : std::uint8_t +{ + MsgId_M1 = 1, ///< message id of Message 1 message. , + MsgId_M2 = 2, ///< message id of Message 2 message. , + MsgId_M3 = 3, ///< message id of Message 3 message. , + + // --- Extra values generated for convenience ---, + MsgId_FirstValue = 1, ///< First defined value., + MsgId_LastValue = 3, ///< Last defined value., + MsgId_ValuesLimit = 4, ///< Upper limit for defined values. +}; + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/Version.h b/tutorials/tutorial23/include/tutorial23/Version.h new file mode 100644 index 000000000..33541786c --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/Version.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains protocol version definition. + +#pragma once + +#include "comms/version.h" + +/// @brief Version of the protocol specification. +#define TUTORIAL23_SPEC_VERSION (0U) + +namespace tutorial23 +{ + +/// @brief Version of the protocol specification. +inline constexpr unsigned specVersion() +{ + return TUTORIAL23_SPEC_VERSION; +} + +} // namespace tutorial23 + +// Generated compile time check for minimal supported version of the COMMS library +static_assert(COMMS_MAKE_VERSION(5, 0, 0) <= comms::version(), + "The version of COMMS library is too old"); + diff --git a/tutorials/tutorial23/include/tutorial23/dispatch/DispatchClientInputMessage.h b/tutorials/tutorial23/include/tutorial23/dispatch/DispatchClientInputMessage.h new file mode 100644 index 000000000..708676d5f --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/dispatch/DispatchClientInputMessage.h @@ -0,0 +1,193 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains dispatch to handling function(s) for client input input messages. + +#pragma once + +#include "tutorial23/MsgId.h" +#include "tutorial23/input/ClientInputMessages.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace dispatch +{ + +/// @brief Dispatch message object to its appropriate handling function. +/// @details @b switch statement based (on message ID) cast and dispatch functionality. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. Must define +/// @b handle() member function for every message type it exects +/// to handle and one for the interface class as well. +/// @code +/// using MyInterface = tutorial23::Message<...>; +/// using MyMsg1 = tutorial23::message::Msg1; +/// using MySomeOtherMessage = SomeOtherMessage; +/// struct MyHandler { +/// void handle(MyMsg1& msg) {...} +/// void handle(MySomeOtherMessage& msg) {...} +/// ... +/// // Handle all unexpected or irrelevant messages. +/// void handle(MyInterface& msg) {...} +/// }; +/// @endcode +/// Every @b handle() function may return a value, but every +/// function must return the @b same type. +/// @note Defined in tutorial23/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessage( + tutorial23::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + using InterfaceType = typename std::decay::type; + switch(id) { + case tutorial23::MsgId_M1: + { + using MsgType = tutorial23::message::Msg1; + return handler.handle(static_cast(msg)); + } + default: + break; + }; + + return handler.handle(msg); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchClientInputMessage(), but receives extra @b idx parameter. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// Expected to be @b 0. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchClientInputMessage() +/// @note Defined in tutorial23/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessage( + tutorial23::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + if (idx != 0U) { + return handler.handle(msg); + } + return dispatchClientInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchClientInputMessage(), but passing +/// tutorial23::options::DefaultOptions as first template parameter. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchClientInputMessage() +/// @note Defined in tutorial23/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessageDefaultOptions( + tutorial23::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchClientInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchClientInputMessageDefaultOptions(), +/// but receives extra @b idx parameter. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchClientInputMessageDefaultOptions() +/// @note Defined in tutorial23/dispatch/DispatchClientInputMessage.h +template +auto dispatchClientInputMessageDefaultOptions( + tutorial23::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchClientInputMessage(id, idx, msg, handler); +} + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @headerfile tutorial23/dispatch/DispatchClientInputMessage.h +template +struct ClientInputMsgDispatcher +{ + /// @brief Class detection tag + using MsgDispatcherTag = void; + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchClientInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] idx Index (or offset) of the message among those having the same numeric ID. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchClientInputMessage() function returns. + template + static auto dispatch(tutorial23::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(tutorial23::dispatch::dispatchClientInputMessage(id, idx, msg, handler)) + { + return tutorial23::dispatch::dispatchClientInputMessage(id, idx, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial23::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, idx, msg, handler)) + { + return dispatch(id, idx, msg, handler); + } + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchClientInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchClientInputMessage() function returns. + template + static auto dispatch(tutorial23::MsgId id, TMsg& msg, THandler& handler) -> + decltype(tutorial23::dispatch::dispatchClientInputMessage(id, msg, handler)) + { + return tutorial23::dispatch::dispatchClientInputMessage(id, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial23::MsgId id, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, msg, handler)) + { + return dispatch(id, msg, handler); + } +}; + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @details Same as ClientInputMsgDispatcher, but passing +/// @ref tutorial23::options::DefaultOptions as template parameter. +/// @note Defined in tutorial23/dispatch/DispatchClientInputMessage.h +using ClientInputMsgDispatcherDefaultOptions = + ClientInputMsgDispatcher; + + + +} // namespace dispatch + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/dispatch/DispatchMessage.h b/tutorials/tutorial23/include/tutorial23/dispatch/DispatchMessage.h new file mode 100644 index 000000000..0855f724b --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/dispatch/DispatchMessage.h @@ -0,0 +1,193 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains dispatch to handling function(s) for all input messages. + +#pragma once + +#include "tutorial23/MsgId.h" +#include "tutorial23/input/AllMessages.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace dispatch +{ + +/// @brief Dispatch message object to its appropriate handling function. +/// @details @b switch statement based (on message ID) cast and dispatch functionality. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. Must define +/// @b handle() member function for every message type it exects +/// to handle and one for the interface class as well. +/// @code +/// using MyInterface = tutorial23::Message<...>; +/// using MyMsg1 = tutorial23::message::Msg1; +/// using MySomeOtherMessage = SomeOtherMessage; +/// struct MyHandler { +/// void handle(MyMsg1& msg) {...} +/// void handle(MySomeOtherMessage& msg) {...} +/// ... +/// // Handle all unexpected or irrelevant messages. +/// void handle(MyInterface& msg) {...} +/// }; +/// @endcode +/// Every @b handle() function may return a value, but every +/// function must return the @b same type. +/// @note Defined in tutorial23/dispatch/DispatchMessage.h +template +auto dispatchMessage( + tutorial23::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + using InterfaceType = typename std::decay::type; + switch(id) { + case tutorial23::MsgId_M1: + { + using MsgType = tutorial23::message::Msg1; + return handler.handle(static_cast(msg)); + } + default: + break; + }; + + return handler.handle(msg); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchMessage(), but receives extra @b idx parameter. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// Expected to be @b 0. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchMessage() +/// @note Defined in tutorial23/dispatch/DispatchMessage.h +template +auto dispatchMessage( + tutorial23::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + if (idx != 0U) { + return handler.handle(msg); + } + return dispatchMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchMessage(), but passing +/// tutorial23::options::DefaultOptions as first template parameter. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchMessage() +/// @note Defined in tutorial23/dispatch/DispatchMessage.h +template +auto dispatchMessageDefaultOptions( + tutorial23::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchMessageDefaultOptions(), +/// but receives extra @b idx parameter. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchMessageDefaultOptions() +/// @note Defined in tutorial23/dispatch/DispatchMessage.h +template +auto dispatchMessageDefaultOptions( + tutorial23::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchMessage(id, idx, msg, handler); +} + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @headerfile tutorial23/dispatch/DispatchMessage.h +template +struct MsgDispatcher +{ + /// @brief Class detection tag + using MsgDispatcherTag = void; + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchMessage() function. + /// @param[in] id ID of the message. + /// @param[in] idx Index (or offset) of the message among those having the same numeric ID. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchMessage() function returns. + template + static auto dispatch(tutorial23::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(tutorial23::dispatch::dispatchMessage(id, idx, msg, handler)) + { + return tutorial23::dispatch::dispatchMessage(id, idx, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial23::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, idx, msg, handler)) + { + return dispatch(id, idx, msg, handler); + } + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchMessage() function. + /// @param[in] id ID of the message. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchMessage() function returns. + template + static auto dispatch(tutorial23::MsgId id, TMsg& msg, THandler& handler) -> + decltype(tutorial23::dispatch::dispatchMessage(id, msg, handler)) + { + return tutorial23::dispatch::dispatchMessage(id, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial23::MsgId id, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, msg, handler)) + { + return dispatch(id, msg, handler); + } +}; + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @details Same as MsgDispatcher, but passing +/// @ref tutorial23::options::DefaultOptions as template parameter. +/// @note Defined in tutorial23/dispatch/DispatchMessage.h +using MsgDispatcherDefaultOptions = + MsgDispatcher; + + + +} // namespace dispatch + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/dispatch/DispatchServerInputMessage.h b/tutorials/tutorial23/include/tutorial23/dispatch/DispatchServerInputMessage.h new file mode 100644 index 000000000..d183887a1 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/dispatch/DispatchServerInputMessage.h @@ -0,0 +1,193 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains dispatch to handling function(s) for client input input messages. + +#pragma once + +#include "tutorial23/MsgId.h" +#include "tutorial23/input/ServerInputMessages.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace dispatch +{ + +/// @brief Dispatch message object to its appropriate handling function. +/// @details @b switch statement based (on message ID) cast and dispatch functionality. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. Must define +/// @b handle() member function for every message type it exects +/// to handle and one for the interface class as well. +/// @code +/// using MyInterface = tutorial23::Message<...>; +/// using MyMsg1 = tutorial23::message::Msg1; +/// using MySomeOtherMessage = SomeOtherMessage; +/// struct MyHandler { +/// void handle(MyMsg1& msg) {...} +/// void handle(MySomeOtherMessage& msg) {...} +/// ... +/// // Handle all unexpected or irrelevant messages. +/// void handle(MyInterface& msg) {...} +/// }; +/// @endcode +/// Every @b handle() function may return a value, but every +/// function must return the @b same type. +/// @note Defined in tutorial23/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessage( + tutorial23::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + using InterfaceType = typename std::decay::type; + switch(id) { + case tutorial23::MsgId_M1: + { + using MsgType = tutorial23::message::Msg1; + return handler.handle(static_cast(msg)); + } + default: + break; + }; + + return handler.handle(msg); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchServerInputMessage(), but receives extra @b idx parameter. +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// Expected to be @b 0. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchServerInputMessage() +/// @note Defined in tutorial23/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessage( + tutorial23::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + if (idx != 0U) { + return handler.handle(msg); + } + return dispatchServerInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchServerInputMessage(), but passing +/// tutorial23::options::DefaultOptions as first template parameter. +/// @param[in] id Numeric message ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchServerInputMessage() +/// @note Defined in tutorial23/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessageDefaultOptions( + tutorial23::MsgId id, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchServerInputMessage(id, msg, handler); +} + +/// @brief Dispatch message object to its appropriate handling function. +/// @details Same as other dispatchServerInputMessageDefaultOptions(), +/// but receives extra @b idx parameter. +/// @param[in] id Numeric message ID. +/// @param[in] idx Index of the message among messages with the same ID. +/// @param[in] msg Message object held by reference to its interface class. +/// @param[in] handler Reference to handling object. +/// @see dispatchServerInputMessageDefaultOptions() +/// @note Defined in tutorial23/dispatch/DispatchServerInputMessage.h +template +auto dispatchServerInputMessageDefaultOptions( + tutorial23::MsgId id, + std::size_t idx, + TMsg& msg, + THandler& handler) -> decltype(handler.handle(msg)) +{ + return dispatchServerInputMessage(id, idx, msg, handler); +} + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @tparam TProtOptions Protocol options struct used for the application, +/// like @ref tutorial23::options::DefaultOptions. +/// @headerfile tutorial23/dispatch/DispatchServerInputMessage.h +template +struct ServerInputMsgDispatcher +{ + /// @brief Class detection tag + using MsgDispatcherTag = void; + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchServerInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] idx Index (or offset) of the message among those having the same numeric ID. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchServerInputMessage() function returns. + template + static auto dispatch(tutorial23::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(tutorial23::dispatch::dispatchServerInputMessage(id, idx, msg, handler)) + { + return tutorial23::dispatch::dispatchServerInputMessage(id, idx, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial23::MsgId id, std::size_t idx, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, idx, msg, handler)) + { + return dispatch(id, idx, msg, handler); + } + + /// @brief Dispatch message to its handler. + /// @details Uses appropriate @ref dispatchServerInputMessage() function. + /// @param[in] id ID of the message. + /// @param[in] msg Reference to message object. + /// @param[in] handler Reference to handler object. + /// @return What the @ref dispatchServerInputMessage() function returns. + template + static auto dispatch(tutorial23::MsgId id, TMsg& msg, THandler& handler) -> + decltype(tutorial23::dispatch::dispatchServerInputMessage(id, msg, handler)) + { + return tutorial23::dispatch::dispatchServerInputMessage(id, msg, handler); + } + + /// @brief Complementary dispatch function. + /// @details Same as other dispatch without @b TAllMessages template parameter, + /// used by @b comms::processAllWithDispatchViaDispatcher(). + template + static auto dispatch(tutorial23::MsgId id, TMsg& msg, THandler& handler) -> + decltype(dispatch(id, msg, handler)) + { + return dispatch(id, msg, handler); + } +}; + +/// @brief Message dispatcher class to be used with +/// @b comms::processAllWithDispatchViaDispatcher() function (or similar). +/// @details Same as ServerInputMsgDispatcher, but passing +/// @ref tutorial23::options::DefaultOptions as template parameter. +/// @note Defined in tutorial23/dispatch/DispatchServerInputMessage.h +using ServerInputMsgDispatcherDefaultOptions = + ServerInputMsgDispatcher; + + + +} // namespace dispatch + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/field/FieldBase.h b/tutorials/tutorial23/include/tutorial23/field/FieldBase.h new file mode 100644 index 000000000..3c6730028 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/field/FieldBase.h @@ -0,0 +1,30 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of base class of all the fields. + +#pragma once + +#include "comms/Field.h" +#include "comms/options.h" +#include "tutorial23/Version.h" + +namespace tutorial23 +{ + +namespace field +{ + +/// @brief Common base class for all the fields. +/// @tparam TOpt Extra options. +template +using FieldBase = + comms::Field< + TOpt..., + comms::option::def::BigEndian + >; + +} // namespace field + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/field/I1.h b/tutorials/tutorial23/include/tutorial23/field/I1.h new file mode 100644 index 000000000..b0b4c7d93 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/field/I1.h @@ -0,0 +1,35 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "I1" field. + +#pragma once + +#include "comms/options.h" +#include "t23_ext/ns1/field/I1.h" +#include "tutorial23/field/FieldBase.h" +#include "tutorial23/field/I1Common.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace field +{ + + +/// @brief Definition of "I1" field. +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +using I1 = + t23_ext::ns1::field::I1< + TOpt, + TExtraOpts... + >; + + +} // namespace field + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/field/I1Common.h b/tutorials/tutorial23/include/tutorial23/field/I1Common.h new file mode 100644 index 000000000..36e6d5666 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/field/I1Common.h @@ -0,0 +1,25 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial23::field::I1 field. + +#pragma once + +#include "t23_ext/ns1/field/I1Common.h" + +namespace tutorial23 +{ + +namespace field +{ + + +/// @brief Common types and functions for +/// @ref tutorial23::field::I1 field. +using I1Common = t23_ext::ns1::field::I1Common; + +} // namespace field + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/field/Length.h b/tutorials/tutorial23/include/tutorial23/field/Length.h new file mode 100644 index 000000000..342e99064 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/field/Length.h @@ -0,0 +1,303 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Length" field. + +#pragma once + +#include +#include +#include "comms/field/Bundle.h" +#include "comms/field/IntValue.h" +#include "comms/field/Optional.h" +#include "comms/options.h" +#include "tutorial23/field/FieldBase.h" +#include "tutorial23/field/LengthCommon.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace field +{ + + +/// @brief Scope for all the member fields of +/// @ref Length field. +/// @tparam TOpt Protocol options. +template +struct LengthMembers +{ + /// @brief Definition of "Short" field. + class Short : public + comms::field::IntValue< + tutorial23::field::FieldBase<>, + std::uint8_t + > + { + using Base = + comms::field::IntValue< + tutorial23::field::FieldBase<>, + std::uint8_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Single special value name info entry. + using SpecialNameInfo = tutorial23::field::LengthMembersCommon::ShortCommon::SpecialNameInfo; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = tutorial23::field::LengthMembersCommon::ShortCommon::SpecialNamesMapInfo; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial23::field::LengthMembersCommon::ShortCommon::hasSpecials(); + } + + /// @brief Special value "LongForm". + /// @see @ref tutorial23::field::LengthMembersCommon::ShortCommon::valueLongForm(). + static constexpr ValueType valueLongForm() + { + return tutorial23::field::LengthMembersCommon::ShortCommon::valueLongForm(); + } + + /// @brief Check the value is equal to special @ref valueLongForm(). + bool isLongForm() const + { + return Base::getValue() == valueLongForm(); + } + + /// @brief Assign special value @ref valueLongForm() to the field. + void setLongForm() + { + Base::setValue(valueLongForm()); + } + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + return tutorial23::field::LengthMembersCommon::ShortCommon::specialNamesMap(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial23::field::LengthMembersCommon::ShortCommon::name(); + } + + + }; + + + /// @brief Scope for all the member fields of + /// @ref Long field. + struct LongMembers + { + /// @brief Definition of "ActLong" field. + class ActLong : public + comms::field::IntValue< + tutorial23::field::FieldBase<>, + std::uint16_t + > + { + using Base = + comms::field::IntValue< + tutorial23::field::FieldBase<>, + std::uint16_t + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial23::field::LengthMembersCommon::LongMembersCommon::ActLongCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial23::field::LengthMembersCommon::LongMembersCommon::ActLongCommon::name(); + } + + + }; + + + }; + + /// @brief Definition of "Long" field. + class Long : public + comms::field::Optional< + typename LongMembers::ActLong, + comms::option::def::MissingByDefault + > + { + using Base = + comms::field::Optional< + typename LongMembers::ActLong, + comms::option::def::MissingByDefault + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial23::field::LengthMembersCommon::LongCommon::name(); + } + + + }; + + + /// @brief All members bundled in @b std::tuple. + using All = + std::tuple< + Short, + Long + >; +}; + +/// @brief Definition of "Length" field. +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +class Length : public + comms::field::Bundle< + tutorial23::field::FieldBase<>, + typename LengthMembers::All, + TExtraOpts..., + comms::option::def::HasCustomRead, + comms::option::def::HasCustomRefresh + > +{ + using Base = + comms::field::Bundle< + tutorial23::field::FieldBase<>, + typename LengthMembers::All, + TExtraOpts..., + comms::option::def::HasCustomRead, + comms::option::def::HasCustomRefresh + >; +public: + /// @brief Allow access to internal fields. + /// @details See definition of @b COMMS_FIELD_MEMBERS_NAMES macro + /// related to @b comms::field::Bundle class from COMMS library + /// for details. + /// + /// The generated values, types and access functions are: + /// @li @b FieldIdx_short index, @b Field_short type and @b field_short() access function - + /// for tutorial23::field::LengthMembers::Short member field. + /// @li @b FieldIdx_long index, @b Field_long type and @b field_long() access function - + /// for tutorial23::field::LengthMembers::Long member field. + COMMS_FIELD_MEMBERS_NAMES( + short, + long + ); + + + /// @brief Name of the field. + static const char* name() + { + return tutorial23::field::LengthCommon::name(); + } + + /// @brief Get length value + std::size_t getValue() const + { + if (!field_short().isLongForm()) { + return static_cast(field_short().value()); + } + + COMMS_ASSERT(field_long().doesExist()); // Make sure the field in the consistent state + return static_cast(field_long().field().value()); + } + + /// @brief Set length value + void setValue(std::size_t val) + { + if (val < Field_short::valueLongForm()) { + field_short().setValue(val); + field_long().setMissing(); + return; + } + + field_short().setLongForm(); + field_long().field().setValue(val); + field_long().setExists(); + } + + /// @brief Maximal possible length value + static constexpr std::size_t maxValue() + { + return std::numeric_limits::max(); + } + + /// @brief Generated read functionality. + template + comms::ErrorStatus read(TIter& iter, std::size_t len) + { + auto es = comms::ErrorStatus::Success; + do { + es = Base::template readUntilAndUpdateLen(iter, len); + if (es != comms::ErrorStatus::Success) { + break; + } + + readPrepare_long(); + + es = Base::template readFrom(iter, len); + + } while(false); + return es; + } + + + /// @brief Generated refresh functionality. + bool refresh() + { + bool updated = Base::refresh(); + updated = refresh_long() || updated; + return updated; + + } + + + +private: + void readPrepare_long() + { + refresh_long(); + + } + + bool refresh_long() + { + auto mode = comms::field::OptionalMode::Missing; + if (field_short().getValue() == static_cast(255U)) { + mode = comms::field::OptionalMode::Exists; + } + + if (field_long().getMode() == mode) { + return false; + } + + field_long().setMode(mode); + return true; + + } + + +}; + + +} // namespace field + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/field/LengthCommon.h b/tutorials/tutorial23/include/tutorial23/field/LengthCommon.h new file mode 100644 index 000000000..123018a27 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/field/LengthCommon.h @@ -0,0 +1,131 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial23::field::Length field. + +#pragma once + +#include +#include +#include + +namespace tutorial23 +{ + +namespace field +{ + + +/// @brief Scope for all the common definitions of the member fields of +/// @ref tutorial23::field::Length field. +struct LengthMembersCommon +{ + /// @brief Common types and functions for + /// @ref tutorial23::field::LengthMembers::Short field. + struct ShortCommon + { + /// @brief Re-definition of the value type used by + /// tutorial23::field::LengthMembers::Short field. + using ValueType = std::uint8_t; + + /// @brief Single special value name info entry. + using SpecialNameInfo = std::pair; + + /// @brief Type returned from @ref specialNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using SpecialNamesMapInfo = std::pair; + + /// @brief Name of the @ref tutorial23::field::LengthMembers::Short field. + static const char* name() + { + return "Short"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return true; + } + + /// @brief Special value "LongForm". + static constexpr ValueType valueLongForm() + { + return static_cast(255); + } + + + /// @brief Retrieve map of special value names + static SpecialNamesMapInfo specialNamesMap() + { + static const SpecialNameInfo Map[] = { + std::make_pair(valueLongForm(), "LongForm") + }; + static const std::size_t MapSize = std::extent::value; + + return std::make_pair(&Map[0], MapSize); + } + + + }; + + /// @brief Scope for all the common definitions of the member fields of + /// @ref tutorial23::field::LengthMembers::Long field. + struct LongMembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial23::field::LengthMembers::LongMembers::ActLong field. + struct ActLongCommon + { + /// @brief Re-definition of the value type used by + /// tutorial23::field::LengthMembers::LongMembers::ActLong field. + using ValueType = std::uint16_t; + + /// @brief Name of the @ref tutorial23::field::LengthMembers::LongMembers::ActLong field. + static const char* name() + { + return "ActLong"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + }; + + /// @brief Common types and functions for + /// @ref tutorial23::field::LengthMembers::Long field. + struct LongCommon + { + /// @brief Name of the @ref tutorial23::field::LengthMembers::Long field. + static const char* name() + { + return "Long"; + } + + }; + +}; + +/// @brief Common types and functions for +/// @ref tutorial23::field::Length field. +struct LengthCommon +{ + /// @brief Name of the @ref tutorial23::field::Length field. + static const char* name() + { + return "Length"; + } + +}; + +} // namespace field + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/field/MsgId.h b/tutorials/tutorial23/include/tutorial23/field/MsgId.h new file mode 100644 index 000000000..424a6d144 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/field/MsgId.h @@ -0,0 +1,86 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "MsgId" field. + +#pragma once + +#include "comms/field/EnumValue.h" +#include "comms/options.h" +#include "tutorial23/field/FieldBase.h" +#include "tutorial23/field/MsgIdCommon.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace field +{ + + +/// @brief Definition of "MsgId" field. +/// @see @ref tutorial23::MsgId +/// @tparam TOpt Protocol options. +/// @tparam TExtraOpts Extra options. +template +class MsgId : public + comms::field::EnumValue< + tutorial23::field::FieldBase<>, + tutorial23::field::MsgIdCommon::ValueType, + TExtraOpts..., + comms::option::def::ValidNumValueRange<1, 3> + > +{ + using Base = + comms::field::EnumValue< + tutorial23::field::FieldBase<>, + tutorial23::field::MsgIdCommon::ValueType, + TExtraOpts..., + comms::option::def::ValidNumValueRange<1, 3> + >; +public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Single value name info entry. + using ValueNameInfo = tutorial23::field::MsgIdCommon::ValueNameInfo; + + /// @brief Type returned from @ref valueNamesMap() member function. + /// @see @ref tutorial23::field::MsgIdCommon::ValueNamesMapInfo. + using ValueNamesMapInfo = tutorial23::field::MsgIdCommon::ValueNamesMapInfo; + + /// @brief Retrieve name of the enum value. + /// @see @ref tutorial23::field::MsgIdCommon::valueName(). + static const char* valueName(ValueType val) + { + return tutorial23::field::MsgIdCommon::valueName(val); + } + + /// @brief Retrieve name of the @b current value + const char* valueName() const + { + return valueName(Base::getValue()); + } + + /// @brief Retrieve map of enum value names. + /// @see @ref tutorial23::field::MsgIdCommon::valueNamesMap(). + static ValueNamesMapInfo valueNamesMap() + { + return tutorial23::field::MsgIdCommon::valueNamesMap(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial23::field::MsgIdCommon::name(); + } + + +}; + + +} // namespace field + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/field/MsgIdCommon.h b/tutorials/tutorial23/include/tutorial23/field/MsgIdCommon.h new file mode 100644 index 000000000..ba970367f --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/field/MsgIdCommon.h @@ -0,0 +1,81 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial23::field::MsgId field. + +#pragma once + +#include +#include +#include +#include +#include +#include "tutorial23/MsgId.h" + +namespace tutorial23 +{ + +namespace field +{ + + +/// @brief Common types and functions for +/// @ref tutorial23::field::MsgId field. +struct MsgIdCommon +{ + /// @brief Values enumerator for + /// @ref tutorial23::field::MsgId field. + using ValueType = tutorial23::MsgId; + + /// @brief Single value name info entry + using ValueNameInfo = const char*; + + /// @brief Type returned from @ref valueNamesMap() member function. + /// @details The @b first value of the pair is pointer to the map array, + /// The @b second value of the pair is the size of the array. + using ValueNamesMapInfo = std::pair; + + /// @brief Name of the @ref tutorial23::field::MsgId field. + static const char* name() + { + return "MsgId"; + } + + /// @brief Retrieve name of the enum value + static const char* valueName(ValueType val) + { + auto namesMapInfo = valueNamesMap(); + if (namesMapInfo.second <= static_cast(val)) { + return nullptr; + } + + return namesMapInfo.first[static_cast(val)]; + } + + /// @brief Retrieve map of enum value names + static ValueNamesMapInfo valueNamesMap() + { + static const char* Map[] = { + nullptr, + "Message 1", + "Message 2", + "Message 3" + }; + static const std::size_t MapSize = std::extent::value; + + return std::make_pair(&Map[0], MapSize); + } + + +}; + +/// @brief Values enumerator for +/// @ref tutorial23::field::MsgId field. +using MsgIdVal = MsgIdCommon::ValueType; + + +} // namespace field + +} // namespace tutorial23 + diff --git a/tutorials/tutorial23/include/tutorial23/frame/Frame.h b/tutorials/tutorial23/include/tutorial23/frame/Frame.h new file mode 100644 index 000000000..d143dd82d --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/frame/Frame.h @@ -0,0 +1,158 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Frame" frame class. + +#pragma once + +#include +#include "comms/field/IntValue.h" +#include "comms/options.h" +#include "comms/protocol/MsgDataLayer.h" +#include "comms/protocol/MsgIdLayer.h" +#include "comms/protocol/MsgSizeLayer.h" +#include "comms/protocol/SyncPrefixLayer.h" +#include "tutorial23/field/FieldBase.h" +#include "tutorial23/field/Length.h" +#include "tutorial23/field/MsgId.h" +#include "tutorial23/frame/FrameCommon.h" +#include "tutorial23/input/AllMessages.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace frame +{ + + +/// @brief Layers definition of @ref Frame frame class. +/// @tparam TOpt Protocol options. +/// @see @ref Frame +/// @headerfile tutorial23/frame/Frame.h +template +struct FrameLayers +{ + /// @brief Definition of layer "Data". + using Data = + comms::protocol::MsgDataLayer< + typename TOpt::tutorial23::frame::FrameLayers::Data + >; + + /// @brief Definition of layer "Id". + template + using Id = + comms::protocol::MsgIdLayer< + tutorial23::field::MsgId< + TOpt + >, + TMessage, + TAllMessages, + Data, + typename TOpt::tutorial23::frame::FrameLayers::Id + >; + + /// @brief Definition of layer "Size". + template + using Size = + comms::protocol::MsgSizeLayer< + tutorial23::field::Length< + TOpt + >, + Id + >; + + /// @brief Scope for field(s) of @ref Sync layer. + struct SyncMembers + { + /// @brief Definition of "SyncField" field. + class SyncField : public + comms::field::IntValue< + tutorial23::field::FieldBase<>, + std::uint16_t, + comms::option::def::FailOnInvalid, + comms::option::def::DefaultNumValue<43996L> + > + { + using Base = + comms::field::IntValue< + tutorial23::field::FieldBase<>, + std::uint16_t, + comms::option::def::FailOnInvalid, + comms::option::def::DefaultNumValue<43996L> + >; + public: + /// @brief Re-definition of the value type. + using ValueType = typename Base::ValueType; + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return tutorial23::frame::FrameLayersCommon::SyncMembersCommon::SyncFieldCommon::hasSpecials(); + } + + + /// @brief Name of the field. + static const char* name() + { + return tutorial23::frame::FrameLayersCommon::SyncMembersCommon::SyncFieldCommon::name(); + } + + + }; + + + }; + + /// @brief Definition of layer "Sync". + template + using Sync = + comms::protocol::SyncPrefixLayer< + typename SyncMembers::SyncField, + Size + >; + + /// @brief Final protocol stack definition. + template + using Stack = Sync; + +}; + +/// @brief Definition of "Frame" frame class. +/// @tparam TMessage Common interface class of all the messages +/// @tparam TAllMessages All supported input messages. +/// @tparam TOpt Frame definition options +/// @headerfile tutorial23/frame/Frame.h +template < + typename TMessage, + typename TAllMessages = tutorial23::input::AllMessages, + typename TOpt = tutorial23::options::DefaultOptions +> +class Frame : public + FrameLayers::template Stack +{ + using Base = typename + FrameLayers::template Stack; +public: + /// @brief Allow access to frame definition layers. + /// @details See definition of @b COMMS_PROTOCOL_LAYERS_ACCESS macro + /// from COMMS library for details. + /// + /// The generated functions are: + /// @li layer_data() for @ref FrameLayers::Data layer. + /// @li layer_id() for @ref FrameLayers::Id layer. + /// @li layer_size() for @ref FrameLayers::Size layer. + /// @li layer_sync() for @ref FrameLayers::Sync layer. + COMMS_PROTOCOL_LAYERS_ACCESS( + data, + id, + size, + sync + ); +}; + +} // namespace frame + +} // namespace tutorial23 + + diff --git a/tutorials/tutorial23/include/tutorial23/frame/FrameCommon.h b/tutorials/tutorial23/include/tutorial23/frame/FrameCommon.h new file mode 100644 index 000000000..64d034ce7 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/frame/FrameCommon.h @@ -0,0 +1,58 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// fields used in definition of @ref tutorial23::frame::Frame frame. + +#pragma once + +#include + +namespace tutorial23 +{ + +namespace frame +{ + + +/// @brief Common types and functions of fields using in definition of +/// @ref tutorial23::frame::Frame frame. +/// @see tutorial23::frame::FrameLayers +struct FrameLayersCommon +{ + /// @brief Scope for all the common definitions of the fields defined in + /// @ref tutorial23::frame::FrameLayers::SyncMembers struct. + struct SyncMembersCommon + { + /// @brief Common types and functions for + /// @ref tutorial23::frame::FrameLayers::SyncMembers::SyncField field. + struct SyncFieldCommon + { + /// @brief Re-definition of the value type used by + /// tutorial23::frame::FrameLayers::SyncMembers::SyncField field. + using ValueType = std::uint16_t; + + /// @brief Name of the @ref tutorial23::frame::FrameLayers::SyncMembers::SyncField field. + static const char* name() + { + return "SyncField"; + } + + /// @brief Compile time detection of special values presence. + static constexpr bool hasSpecials() + { + return false; + } + + + }; + + }; + +}; + +} // namespace frame + +} // namespace tutorial23 + + diff --git a/tutorials/tutorial23/include/tutorial23/input/AllMessages.h b/tutorials/tutorial23/include/tutorial23/input/AllMessages.h new file mode 100644 index 000000000..e44f215a5 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/input/AllMessages.h @@ -0,0 +1,29 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of the AllMessages messages bundle. + +#pragma once + +#include +#include "tutorial23/message/Msg1.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace input +{ + +/// @brief Messages of the protocol in ascending order. +/// @tparam TBase Base class of all the messages. +/// @tparam TOpt Protocol definition options. +template +using AllMessages = + std::tuple< + tutorial23::message::Msg1 + >; + +} // namespace input + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/input/ClientInputMessages.h b/tutorials/tutorial23/include/tutorial23/input/ClientInputMessages.h new file mode 100644 index 000000000..cef0a8c39 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/input/ClientInputMessages.h @@ -0,0 +1,29 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of the ClientInputMessages messages bundle. + +#pragma once + +#include +#include "tutorial23/message/Msg1.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace input +{ + +/// @brief Messages of the protocol in ascending order. +/// @tparam TBase Base class of all the messages. +/// @tparam TOpt Protocol definition options. +template +using ClientInputMessages = + std::tuple< + tutorial23::message::Msg1 + >; + +} // namespace input + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/input/ServerInputMessages.h b/tutorials/tutorial23/include/tutorial23/input/ServerInputMessages.h new file mode 100644 index 000000000..0ba3be73c --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/input/ServerInputMessages.h @@ -0,0 +1,29 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of the ServerInputMessages messages bundle. + +#pragma once + +#include +#include "tutorial23/message/Msg1.h" +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace input +{ + +/// @brief Messages of the protocol in ascending order. +/// @tparam TBase Base class of all the messages. +/// @tparam TOpt Protocol definition options. +template +using ServerInputMessages = + std::tuple< + tutorial23::message::Msg1 + >; + +} // namespace input + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/message/Msg1.h b/tutorials/tutorial23/include/tutorial23/message/Msg1.h new file mode 100644 index 000000000..afadf81ba --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/message/Msg1.h @@ -0,0 +1,141 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of "Message 1" message and its fields. + +#pragma once + +#include +#include "comms/MessageBase.h" +#include "comms/options.h" +#include "t23_ext/ns1/field/S1.h" +#include "tutorial23/MsgId.h" +#include "tutorial23/field/FieldBase.h" +#include "tutorial23/field/I1.h" +#include "tutorial23/message/Msg1Common.h" +#include "tutorial23/options/DefaultOptions.h" + + +namespace tutorial23 +{ + +namespace message +{ + + +/// @brief Fields of @ref Msg1. +/// @tparam TOpt Extra options +/// @see @ref Msg1 +/// @headerfile tutorial23/message/Msg1.h +template +struct Msg1Fields +{ + /// @brief Definition of "F1" field. + class F1 : public + tutorial23::field::I1< + TOpt + > + { + using Base = + tutorial23::field::I1< + TOpt + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial23::message::Msg1FieldsCommon::F1Common::name(); + } + + + }; + + + /// @brief Definition of "F2" field. + class F2 : public + t23_ext::ns1::field::S1< + TOpt + > + { + using Base = + t23_ext::ns1::field::S1< + TOpt + >; + public: + /// @brief Name of the field. + static const char* name() + { + return tutorial23::message::Msg1FieldsCommon::F2Common::name(); + } + + + }; + + + /// @brief All the fields bundled in std::tuple. + using All = std::tuple< + F1, + F2 + >; +}; + +/// @brief Definition of "Message 1" message class. +/// @details +/// See @ref Msg1Fields for definition of the fields this message contains. +/// @tparam TMsgBase Base (interface) class. +/// @tparam TOpt Extra options +/// @headerfile tutorial23/message/Msg1.h +template +class Msg1 : public + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + > +{ + // Redefinition of the base class type + using Base = + comms::MessageBase< + TMsgBase, + comms::option::def::StaticNumIdImpl, + comms::option::def::FieldsImpl::All>, + comms::option::def::MsgType >, + comms::option::def::HasName + >; + +public: + /// @brief Provide names and allow access to internal fields. + /// @details See definition of @b COMMS_MSG_FIELDS_NAMES macro + /// related to @b comms::MessageBase class from COMMS library + /// for details. + /// + /// The generated values, types and functions are: + /// @li @b FieldIdx_f1 index, @b Field_f1 type and @b field_f1() access fuction + /// for @ref Msg1Fields::F1 field. + /// @li @b FieldIdx_f2 index, @b Field_f2 type and @b field_f2() access fuction + /// for @ref Msg1Fields::F2 field. + COMMS_MSG_FIELDS_NAMES( + f1, + f2 + ); + + // Compile time check for serialisation length. + static const std::size_t MsgMinLen = Base::doMinLength(); + static_assert(MsgMinLen == 3U, "Unexpected min serialisation length"); + + /// @brief Name of the message. + static const char* doName() + { + return tutorial23::message::Msg1Common::name(); + } + + +}; + +} // namespace message + +} // namespace tutorial23 + + diff --git a/tutorials/tutorial23/include/tutorial23/message/Msg1Common.h b/tutorials/tutorial23/include/tutorial23/message/Msg1Common.h new file mode 100644 index 000000000..402364bb6 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/message/Msg1Common.h @@ -0,0 +1,71 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains common template parameters independent functionality of +/// @ref tutorial23::message::Msg1 message and its fields. + +#pragma once + +#include "t23_ext/ns1/field/S1Common.h" +#include "tutorial23/field/I1Common.h" + +namespace tutorial23 +{ + +namespace message +{ + + +/// @brief Common types and functions for fields of +/// @ref tutorial23::message::Msg1 message. +/// @see tutorial23::message::Msg1Fields +struct Msg1FieldsCommon +{ + /// @brief Common types and functions for + /// @ref tutorial23::message::Msg1Fields::F1 field. + struct F1Common : public tutorial23::field::I1Common + { + /// @brief Name of the @ref tutorial23::message::Msg1Fields::F1 field. + static const char* name() + { + return "F1"; + } + + }; + + /// @brief Common definitions of the member fields of + /// @ref tutorial23::message::Msg1Fields::F2 field. + using F2MembersCommon = t23_ext::ns1::field::S1MembersCommon; + + /// @brief Common types and functions for + /// @ref tutorial23::message::Msg1Fields::F2 field. + struct F2Common : public t23_ext::ns1::field::S1Common + { + /// @brief Name of the @ref tutorial23::message::Msg1Fields::F2 field. + static const char* name() + { + return "F2"; + } + + }; + +}; + +/// @brief Common types and functions of +/// @ref tutorial23::message::Msg1 message. +struct Msg1Common +{ + /// @brief Name of the @ref tutorial23::message::Msg1 message. + static const char* name() + { + return "Message 1"; + } + +}; + +} // namespace message + +} // namespace tutorial23 + + + diff --git a/tutorials/tutorial23/include/tutorial23/options/BareMetalDefaultOptions.h b/tutorials/tutorial23/include/tutorial23/options/BareMetalDefaultOptions.h new file mode 100644 index 000000000..43873a4da --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/options/BareMetalDefaultOptions.h @@ -0,0 +1,68 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol bare metal default options. + +#pragma once + +#include "tutorial23/options/DefaultOptions.h" + +#ifndef DEFAULT_SEQ_FIXED_STORAGE_SIZE +/// @brief Define default fixed size for various sequence fields +/// @details May be defined during compile time to change the default value. +#define DEFAULT_SEQ_FIXED_STORAGE_SIZE 32 +#endif + +namespace tutorial23 +{ + +namespace options +{ + +/// @brief Default bare metal options of the protocol. +template +struct BareMetalDefaultOptionsT : public TBase +{ + struct tutorial23 + { + /// @brief Extra options for frames. + struct frame : public TBase::tutorial23::frame + { + /// @brief Extra options for layers of + /// @ref tutorial23::frame::Frame frame. + struct FrameLayers : public TBase::tutorial23::frame::FrameLayers + { + /// @brief Extra options for @ref + /// tutorial23::frame::FrameLayers::Data + /// layer. + using Data = + std::tuple< + comms::option::app::FixedSizeStorage, + typename TBase::tutorial23::frame::FrameLayers::Data + >; + + /// @brief Extra options for @ref + /// tutorial23::frame::FrameLayers::Id + /// layer. + using Id = + std::tuple< + comms::option::app::InPlaceAllocation, + typename TBase::tutorial23::frame::FrameLayers::Id + >; + + + }; // struct FrameLayers + + }; // struct frame + + + }; // struct tutorial23 + +}; + +/// @brief Alias to @ref BareMetalDefaultOptionsT with default template parameter. +using BareMetalDefaultOptions = BareMetalDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/options/ClientDefaultOptions.h b/tutorials/tutorial23/include/tutorial23/options/ClientDefaultOptions.h new file mode 100644 index 000000000..84939bb5a --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/options/ClientDefaultOptions.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol client default options. + +#pragma once + +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace options +{ + +/// @brief Default client options of the protocol. +template +struct ClientDefaultOptionsT : public TBase +{ +}; + +/// @brief Alias to @ref ClientDefaultOptionsT with default template parameter. +using ClientDefaultOptions = ClientDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/options/DataViewDefaultOptions.h b/tutorials/tutorial23/include/tutorial23/options/DataViewDefaultOptions.h new file mode 100644 index 000000000..3e892e74c --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/options/DataViewDefaultOptions.h @@ -0,0 +1,53 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol data view default options. + +#pragma once + +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace options +{ + +/// @brief Default data view options of the protocol. +template +struct DataViewDefaultOptionsT : public TBase +{ + struct tutorial23 + { + /// @brief Extra options for frames. + struct frame : public TBase::tutorial23::frame + { + /// @brief Extra options for layers of + /// @ref tutorial23::frame::Frame frame. + struct FrameLayers : public TBase::tutorial23::frame::FrameLayers + { + /// @brief Extra options for @ref + /// tutorial23::frame::FrameLayers::Data + /// layer. + using Data = + std::tuple< + comms::option::app::OrigDataView, + typename TBase::tutorial23::frame::FrameLayers::Data + >; + + + }; // struct FrameLayers + + }; // struct frame + + + }; // struct tutorial23 + +}; + +/// @brief Alias to @ref DataViewDefaultOptionsT with default template parameter. +using DataViewDefaultOptions = DataViewDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/options/DefaultOptions.h b/tutorials/tutorial23/include/tutorial23/options/DefaultOptions.h new file mode 100644 index 000000000..40e9e90f9 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/options/DefaultOptions.h @@ -0,0 +1,57 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol default options. + +#pragma once + +#include "comms/options.h" + +namespace tutorial23 +{ + +namespace options +{ + +/// @brief Empty class to serve as the base for options. +struct EmptyOptions {}; + +/// @brief Default (empty) options of the protocol. +template +struct DefaultOptionsT : public TBase +{ + struct tutorial23 + { + /// @brief Extra options for frames. + struct frame + { + /// @brief Extra options for layers of + /// @ref tutorial23::frame::Frame frame. + struct FrameLayers + { + /// @brief Extra options for @ref + /// tutorial23::frame::FrameLayers::Data + /// layer. + using Data = comms::option::EmptyOption; + + /// @brief Extra options for @ref + /// tutorial23::frame::FrameLayers::Id + /// layer. + using Id = comms::option::EmptyOption; + + + }; // struct FrameLayers + + }; // struct frame + + + }; // struct tutorial23 + +}; + +/// @brief Default (empty) options of the protocol. +using DefaultOptions = DefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/include/tutorial23/options/ServerDefaultOptions.h b/tutorials/tutorial23/include/tutorial23/options/ServerDefaultOptions.h new file mode 100644 index 000000000..f442e8138 --- /dev/null +++ b/tutorials/tutorial23/include/tutorial23/options/ServerDefaultOptions.h @@ -0,0 +1,27 @@ +// Generated by commsdsl2comms v5.0.0 + +/// @file +/// @brief Contains definition of protocol server default options. + +#pragma once + +#include "tutorial23/options/DefaultOptions.h" + +namespace tutorial23 +{ + +namespace options +{ + +/// @brief Default server options of the protocol. +template +struct ServerDefaultOptionsT : public TBase +{ +}; + +/// @brief Alias to @ref ServerDefaultOptionsT with default template parameter. +using ServerDefaultOptions = ServerDefaultOptionsT<>; + +} // namespace options + +} // namespace tutorial23 diff --git a/tutorials/tutorial23/src/ClientSession.cpp b/tutorials/tutorial23/src/ClientSession.cpp new file mode 100644 index 000000000..044f29e7f --- /dev/null +++ b/tutorials/tutorial23/src/ClientSession.cpp @@ -0,0 +1,132 @@ +#include "ClientSession.h" + +#include +#include + +#include "comms/cast.h" +#include "comms/iterator.h" +#include "comms/process.h" + +namespace cc_tutorial +{ + +void ClientSession::handle(Msg1& msg) +{ + std::cout << "Received \"" << msg.doName() << "\" with ID=" << (unsigned)msg.doGetId() << '\n' << + '\t' << msg.field_f1().name() << " = " << msg.field_f1().value() << '\n' << + '\t' << msg.field_f2().name() << " = " << msg.field_f2().value() << '\n' << + std::endl; + + + if (m_currentStage != CommsStage_Msg1) { + std::cerr << "ERROR: Unexpected stage" << std::endl; + return; + } + + doNextStage(); +} + +void ClientSession::handle(Message& msg) +{ + std::cerr << "ERROR: Received unexpected message \"" << msg.name() << " with ID=" << (unsigned)msg.getId() << std::endl; +} + +bool ClientSession::startImpl() +{ + doNextStage(); + return true; +} + +std::size_t ClientSession::processInputImpl(const std::uint8_t* buf, std::size_t bufLen) +{ + std::cout << "Processing input: " << std::hex; + std::copy_n(buf, bufLen, std::ostream_iterator(std::cout, " ")); + std::cout << std::dec << std::endl; + + // Process reported input, create relevant message objects and + // dispatch all the created messages + // to this object for handling (appropriate handle() member function will be called) + return comms::processAllWithDispatch(buf, bufLen, m_frame, *this); +} + +void ClientSession::sendMessage(Message& msg) +{ + std::cout << "Sending message \"" << msg.name() << "\" with ID=" << (unsigned)msg.getId() << std::endl; + + // The statement below uses polymorphic message name and ID retrievals. + std::vector output; + + // Use polymorphic serialization length calculation to reserve + // needed capacity + output.reserve(m_frame.length(msg)); + + // Serialize message into the buffer (including framing) + // The serialization uses polymorphic write functionality. + auto writeIter = std::back_inserter(output); + + // The frame will use polymorphic message ID retrieval to + // prefix message payload with message ID + auto es = m_frame.write(msg, writeIter, output.max_size()); + if (es == comms::ErrorStatus::UpdateRequired) { + auto updateIter = &output[0]; + es = m_frame.update(updateIter, output.size()); + } + + if (es != comms::ErrorStatus::Success) { + assert(!"Write operation failed unexpectedly"); + return; + } + + // Send serialized message back + sendOutput(&output[0], output.size()); +} + +void ClientSession::doNextStage() +{ + do { + if (CommsStage_NumOfValues <= m_currentStage) { + // Happens in first cycle + m_currentStage = static_cast(0); + break; + } + + m_currentStage = + static_cast( + static_cast(m_currentStage) + 1); + + if (m_currentStage < CommsStage_NumOfValues) { + break; + } + + // Client execution is complete + getIo().stop(); + return; + } while (false); + + using NextSendFunc = void (ClientSession::*)(); + static const NextSendFunc Map[] = { + /* CommsStage_Msg1 */ &ClientSession::sendMsg1, + }; + static const std::size_t MapSize = std::extent::value; + static_assert(MapSize == CommsStage_NumOfValues, "Invalid Map"); + + auto func = Map[m_currentStage]; + (this->*func)(); // Call appropriate sending function +} + +void ClientSession::sendMsg1() +{ + Msg1 msg; + + msg.field_f1().setS1(); + msg.field_f2().value() = "hello"; + + sendMessage(msg); +} + +SessionPtr Session::createClient(boost_wrap::io& io) +{ + return SessionPtr(new ClientSession(io)); +} + +} // namespace cc_tutorial diff --git a/tutorials/tutorial23/src/ClientSession.h b/tutorials/tutorial23/src/ClientSession.h new file mode 100644 index 000000000..aeeead378 --- /dev/null +++ b/tutorials/tutorial23/src/ClientSession.h @@ -0,0 +1,78 @@ +#pragma once + +#include +#include + +#include "tutorial23/Message.h" +#include "tutorial23/frame/Frame.h" +#include "tutorial23/input/ClientInputMessages.h" +#include "t23_ext/options/ClientDefaultOptions.h" +#include "tutorial23/options/ClientDefaultOptions.h" +#include "tutorial23/options/DataViewDefaultOptions.h" + +#include "Session.h" + +namespace cc_tutorial +{ + +class ClientSession : public Session +{ + using Base = Session; +public: + using Base::Base; // Inherit constructors + + // Common interface class for all the messages + using Message = + tutorial23::Message< + comms::option::app::ReadIterator, // Polymorphic read + comms::option::app::WriteIterator > >, // Polymorphic write + comms::option::app::LengthInfoInterface, // Polymorphic length calculation + comms::option::app::IdInfoInterface, // Polymorphic message ID retrieval + comms::option::app::NameInterface, // Polymorphic name retrieval + comms::option::app::Handler, // Polymorphic dispatch + comms::option::app::RefreshInterface // Polymorphic refresh + >; + + // Protocol options for client + using ClientProtocolOptions = + tutorial23::options::ClientDefaultOptionsT< + tutorial23::options::DefaultOptionsT< + t23_ext::options::ClientDefaultOptions + > + >; + + // Definition of all the used message classes + using Msg1 = tutorial23::message::Msg1; + + // Handling functions for all the dispatched message objects + void handle(Msg1& msg); + void handle(Message& msg); + +protected: + virtual bool startImpl() override final; + virtual std::size_t processInputImpl(const std::uint8_t* buf, std::size_t bufLen) override final; + +private: + enum CommsStage + { + CommsStage_Msg1, + CommsStage_NumOfValues + }; + + void sendMessage(Message& msg); + void doNextStage(); + void sendMsg1(); + + // Client specific frame + using Frame = + tutorial23::frame::Frame< + Message, + tutorial23::input::ClientInputMessages, + ClientProtocolOptions + >; + + Frame m_frame; + CommsStage m_currentStage = CommsStage_NumOfValues; +}; + +} // namespace cc_tutorial diff --git a/tutorials/tutorial23/src/ServerSession.cpp b/tutorials/tutorial23/src/ServerSession.cpp new file mode 100644 index 000000000..07cd83096 --- /dev/null +++ b/tutorials/tutorial23/src/ServerSession.cpp @@ -0,0 +1,61 @@ +#include "ServerSession.h" + +#include + +#include "comms/process.h" +#include "comms/iterator.h" + +namespace cc_tutorial +{ + +void ServerSession::handle(Message& msg) +{ + std::cout << "Received message \"" << msg.name() << + "\" with ID=" << (unsigned)msg.getId() << std::endl; + sendMessage(msg); +} + +std::size_t ServerSession::processInputImpl(const std::uint8_t* buf, std::size_t bufLen) +{ + std::cout << "Processing input: " << std::hex; + std::copy_n(buf, bufLen, std::ostream_iterator(std::cout, " ")); + std::cout << std::dec << std::endl; + + // Process reported input, create relevant message objects and + // dispatch all the created messages + // to this object for handling (handle() member function will be called) + return comms::processAllWithDispatch(buf, bufLen, m_frame, *this); +} + +void ServerSession::sendMessage(const Message& msg) +{ + std::cout << "Sending message \"" << msg.name() << "\" with ID=" << (unsigned)msg.getId() << std::endl; + + std::vector output; + + // Use polymorphic serialization length calculation to create + // buffer of the requires size + output.resize(m_frame.length(msg)); + + // Serialize message into the buffer (including framing) + // The serialization uses polymorphic write functionality. + auto writeIter = &output[0]; + auto es = m_frame.write(msg, writeIter, output.size()); + if (es != comms::ErrorStatus::Success) { + assert(!"Write operation failed unexpectedly"); + return; + } + + // writeIter has been advanced, check that it reached end of the allocated buffer. + assert(output.size() == static_cast(std::distance(&output[0], writeIter))); + + // Send (re)serialized message back + sendOutput(&output[0], output.size()); +} + +SessionPtr Session::createServer(boost_wrap::io& io) +{ + return SessionPtr(new ServerSession(io)); +} + +} // namespace cc_tutorial diff --git a/tutorials/tutorial23/src/ServerSession.h b/tutorials/tutorial23/src/ServerSession.h new file mode 100644 index 000000000..1e2b069a5 --- /dev/null +++ b/tutorials/tutorial23/src/ServerSession.h @@ -0,0 +1,68 @@ +#pragma once + +#include "comms/GenericMessage.h" + +#include "tutorial23/Message.h" +#include "tutorial23/frame/Frame.h" +#include "tutorial23/input/ServerInputMessages.h" +#include "t23_ext/options/ServerDefaultOptions.h" +#include "tutorial23/options/ServerDefaultOptions.h" +#include "t23_ext/options/DataViewDefaultOptions.h" +#include "tutorial23/options/DataViewDefaultOptions.h" +#include "Session.h" + +namespace cc_tutorial +{ + +class ServerSession : public Session +{ + using Base = Session; +public: + using Base::Base; // Inherit constructors + + // Common interface class for all the messages + using Message = + tutorial23::Message< + comms::option::app::ReadIterator, // Polymorphic read + comms::option::app::WriteIterator, // Polymorphic write + comms::option::app::LengthInfoInterface, // Polymorphic length calculation + comms::option::app::IdInfoInterface, // Polymorphic message ID retrieval + comms::option::app::NameInterface, // Polymorphic name retrieval + comms::option::app::Handler // Polymorphic dispatch + >; + + using ExtProtocolOptions = + t23_ext::options::DataViewDefaultOptionsT< + t23_ext::options::ServerDefaultOptions + >; + + using ServerProtocolOptions = + tutorial23::options::DataViewDefaultOptionsT< + tutorial23::options::ServerDefaultOptionsT< + tutorial23::options::DefaultOptionsT< + ExtProtocolOptions + > + > + >; + + + void handle(Message& msg); + +protected: + virtual std::size_t processInputImpl(const std::uint8_t* buf, std::size_t bufLen) override final; + +private: + // Server specific frame + using Frame = + tutorial23::frame::Frame< + Message, + tutorial23::input::ServerInputMessages, + ServerProtocolOptions + >; + + void sendMessage(const Message& msg); + + Frame m_frame; +}; + +} // namespace cc_tutorial From 143384ae153fe36d03d635783c1cea9ff10353ae Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sun, 31 Jul 2022 15:11:39 +1000 Subject: [PATCH 09/12] Added README to tutorial23. --- README.md | 1 + tutorials/tutorial23/README.md | 124 +++++++++++++++++++++++++++- tutorials/tutorial23/dsl/schema.xml | 2 - 3 files changed, 124 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0d0d2c619..3920a7458 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,7 @@ $> nmake install - [tutorial20](../../tree/master/tutorials/tutorial20) - Reporting protocol version in one of the messages. - [tutorial21](../../tree/master/tutorials/tutorial21) - Cast between different field types. - [tutorial22](../../tree/master/tutorials/tutorial22) - Complex length fields. +- [tutorial23](../../tree/master/tutorials/tutorial23) - Reusing definitions from other schemas. # How-Tos diff --git a/tutorials/tutorial23/README.md b/tutorials/tutorial23/README.md index 3eb1fef67..2c9012509 100644 --- a/tutorials/tutorial23/README.md +++ b/tutorials/tutorial23/README.md @@ -1,10 +1,132 @@ # Tutorial 23 Reusing definitions from other schemas. +Sometimes a need may arise to reuse some elements (usually fields) of one schema / protocol in the definition of another. +It can be useful when common complex encoding rules, like [ASN.1](https://en.wikipedia.org/wiki/ASN.1) requiring +custom code injection need to be reused in multiple independent protocols. Version **v5.0** of the +[CommsDSL Specification](https://commschamp.github.io/commsdsl_spec) allow use of multiple independent +schema names when processing multiple schema files and referencing fields of one in another. + +Version **v5.0** of the **commsdsl2comms** code generator supports this multi-schema feature, but +requires extra command line parameter `-s` to allow +use of multiple schemas names in the definition of the protocol. + +This tutorial uses two schema files: + +- [dsl/schema_ext.xml](dsl/schema_ext.xml) which defines external schema with name (and main namespace) "t23_ext". +- [dsl/schema.xml](dsl/schema.xml) which defines schema of this tutorial. + +The inter-schema field reference is prefixing the usual field reference with `@ + schema name`. +```xml + +``` +The generated code (in [include/tutorial23/field/I1.h](include/tutorial23/field/I1.h)) defines +the field (which inherits the name of the referenced field) as an alias type to the field in the `t23_ext` namespace: +```cpp +template +using I1 = + t23_ext::ns1::field::I1< + TOpt, + TExtraOpts... + >; +``` +The definition of the `t23_ext::ns1::field::I1` field itself is generated in +[include/t23_ext/ns1/field](include/t23_ext/ns1/field) folder, i.e. the [include](include) +folder has two sub-folders for the different namespaces. + +The member field of the `Msg` message definition also references field in the external schema. +```xml + + + + +``` + +The definition of the `Length` field in the external `t23_ext` schema is taken from the +previous [tutorial22](../tutorial22). Instead of referencing it with the **<ref>** +field definition (which is also possible) the schema just copies its definition using **reuse** +property: +```xml + +``` +Please note the usage of the **reuseCode** property. The **reuse** one just copies the XML definition of the +field without copying any of the custom injected code of the field. Setting **reuseCode** boolean property +ensures that the custom code is also copied. As the result, the `Length` field definition can be +found in the `tutorial23` namespace ([include/tutorial23/field/Length.h](include/tutorial23/field/Length.h)) and +cannot be found in `t23_ext` because it's not really referenced. The `Length` in the `tutorial23` namespace +is referenced by the frame: +```xml + + + + + + + + +``` + +Also note that the custom injected code of the `Length` field is located in the folder specifying its +original location ([dsl_src/include/t23_ext/ns1/field](dsl_src/include/t23_ext/ns1/field)). + +Using multiple schemas requires extra attention to specifying protocol options +(the classes defined in the [include/tutorial23/options](include/tutorial23/options) folder). +The option classes are designed to be folded and outer classes may extend or override options defined +by the inner ones. Every schema defines its own independent set of options: + +- [include/t23_ext/options](include/t23_ext/options) - Options for the elements inside `t23_ext` schema. +- [include/tutorial23/options](include/tutorial23/options) - Options for the elements inside `tutorial23` schema. + +In order to combine them the `DefaultOptions` of the protocol (`tutorial23`) schema are expected to wrap and extend +the external (`t23_ext`) one. As the result the [ClientSession](src/ClientSession.h) defines its +options in the following way: +```cpp +using ClientProtocolOptions = + tutorial23::options::ClientDefaultOptionsT< + tutorial23::options::DefaultOptionsT< + t23_ext::options::ClientDefaultOptions + > + >; +``` +Without using options from the `t23_ext::options` the compilation will fail because +`t23_ext::ns1::field::S1` [field](include/t23_ext/ns1/field/S1.h) attempts to +access the options referencing `typename TOpt::t23_ext::ns1::field::S1`, which +does not existing in the options provided by the `tutorial23`. + +```cpp +template +class S1 : public + comms::field::String< + t23_ext::field::FieldBase<>, + TExtraOpts..., + typename TOpt::t23_ext::ns1::field::S1, + comms::option::def::SequenceSerLengthFieldPrefix::LengthPrefix> + > +``` + +In addition to the complications around the protocol options definitions, which if not done right may +result in difficult to understand compilation errors, referencing the fields in another schema may +cause problems in different build or packaging systems when multiple independent schemas (protocols) reusing the +common one may attempt to generate and overwrite the same common files. +To cope with this problem the code generation utilities (**commsdsl2comms** and others) allow +renaming different namespaces to avoid clashing. + +However, as was shown in this tutorial the fields which are **reuse**-ed rather than +**<ref>**-erenced don't generate code in the external namespace. In case the **all** +the schema fields defined this way, the external namespace will be empty and no code for it +will be generated. As the result the definition of the protocol options are also getting +much simpler. + +The bottom line, it is highly recommended to **reuse** the fields from the external schema rather +than **<ref>**-erence them. ## Summary -- +- External schema definitions reuse is supported since **v5.0** of the [CommsDSL](https://commschamp.github.io/commsdsl_spec) + and [commsdsl](https://github/commschamp/commsdsl) code generators. +- Inter-schema referencing is allowed using `@.` prefix. +- When using multiple schemas it is hight recommended to **reuse** the fields rather +than **<ref>**-erence them. [Read Previous Tutorial](../tutorial22) <----------------------- diff --git a/tutorials/tutorial23/dsl/schema.xml b/tutorials/tutorial23/dsl/schema.xml index f9b3edcb0..efb634e62 100644 --- a/tutorials/tutorial23/dsl/schema.xml +++ b/tutorials/tutorial23/dsl/schema.xml @@ -13,8 +13,6 @@ - - From caff4da218beba5ba7144470b33d42461bdcd592 Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Sun, 31 Jul 2022 15:22:44 +1000 Subject: [PATCH 10/12] Some additions to tutorial23 README. --- tutorials/tutorial23/README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tutorials/tutorial23/README.md b/tutorials/tutorial23/README.md index 2c9012509..cc2e96a08 100644 --- a/tutorials/tutorial23/README.md +++ b/tutorials/tutorial23/README.md @@ -88,6 +88,24 @@ using ClientProtocolOptions = > >; ``` + +The [ServerSession](src/ServerSession.h) used even more complex definition: +```cpp +using ExtProtocolOptions = + t23_ext::options::DataViewDefaultOptionsT< + t23_ext::options::ServerDefaultOptions + >; + +using ServerProtocolOptions = + tutorial23::options::DataViewDefaultOptionsT< + tutorial23::options::ServerDefaultOptionsT< + tutorial23::options::DefaultOptionsT< + ExtProtocolOptions + > + > + >; +``` + Without using options from the `t23_ext::options` the compilation will fail because `t23_ext::ns1::field::S1` [field](include/t23_ext/ns1/field/S1.h) attempts to access the options referencing `typename TOpt::t23_ext::ns1::field::S1`, which @@ -125,7 +143,7 @@ than **<ref>**-erence them. - External schema definitions reuse is supported since **v5.0** of the [CommsDSL](https://commschamp.github.io/commsdsl_spec) and [commsdsl](https://github/commschamp/commsdsl) code generators. - Inter-schema referencing is allowed using `@.` prefix. -- When using multiple schemas it is hight recommended to **reuse** the fields rather +- When using multiple schemas it is highly recommended to **reuse** the fields rather than **<ref>**-erence them. From d4fc9fb3186ea529bcfb413530c505fe219df107 Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Fri, 12 Aug 2022 09:02:48 +1000 Subject: [PATCH 11/12] Using v5.0 of the COMMS library and commsdsl. --- .github/workflows/actions_build.yml | 8 ++++---- CMakeLists.txt | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/actions_build.yml b/.github/workflows/actions_build.yml index a2405b713..47f6fbfd9 100644 --- a/.github/workflows/actions_build.yml +++ b/.github/workflows/actions_build.yml @@ -35,7 +35,7 @@ jobs: - name: Build working-directory: ${{runner.workspace}}/build shell: bash - run: cmake --build . --target install + run: cmake --build . --config ${{matrix.type}} --target install env: VERBOSE: 1 @@ -74,7 +74,7 @@ jobs: - name: Build working-directory: ${{runner.workspace}}/build shell: bash - run: cmake --build . --target install + run: cmake --build . --config ${{matrix.type}} --target install env: VERBOSE: 1 @@ -113,7 +113,7 @@ jobs: - name: Build working-directory: ${{runner.workspace}}/build shell: bash - run: cmake --build . --target install + run: cmake --build . --config ${{matrix.type}} --target install env: VERBOSE: 1 @@ -154,6 +154,6 @@ jobs: - name: Build working-directory: ${{runner.workspace}}/build shell: bash - run: cmake --build . --target install + run: cmake --build . --config ${{matrix.type}} --target install env: VERBOSE: 1 diff --git a/CMakeLists.txt b/CMakeLists.txt index f29248d9f..ad3d9bef6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,11 +16,11 @@ option (USE_SANITIZERS "Compile with sanitizers." OFF) # COMMSDSL_CXX_COMPILER - "C++" Compiler for commsdsl project if ("${COMMSDSL_TAG}" STREQUAL "") - set (COMMSDSL_TAG "develop") + set (COMMSDSL_TAG "v5.0") endif () if ("${CC_COMMS_TAG}" STREQUAL "") - set (CC_COMMS_TAG "develop") + set (CC_COMMS_TAG "v5.0") endif () if (NOT CMAKE_CXX_STANDARD) @@ -132,6 +132,7 @@ if ("${COMMSDSL2COMMS}" STREQUAL "") -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${commsdsl2comms_install_dir} -DCOMMSDSL_NO_TESTS=ON -DCMAKE_C_COMPILER=${COMMSDSL_C_COMPILER} -DCMAKE_CXX_COMPILER=${COMMSDSL_CXX_COMPILER} + -DCOMMSDSL_INSTALL_LIBRARY=OFF -DCOMMSDSL_EXTERNALS_DIR=${EXTERNALS_DIR} BINARY_DIR "${commsdsl2comms_bin_dir}" ) From a9bb76f4d7fbb92b6644f87f9105ca108dff0c2e Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Fri, 12 Aug 2022 17:49:27 +1000 Subject: [PATCH 12/12] Cosmetic fixes to the navigation at the bottom of the README for tutorial 21 and 22. --- tutorials/tutorial21/README.md | 2 +- tutorials/tutorial22/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/tutorial21/README.md b/tutorials/tutorial21/README.md index 8dbef3486..5f674e6f8 100644 --- a/tutorials/tutorial21/README.md +++ b/tutorials/tutorial21/README.md @@ -143,4 +143,4 @@ a temporary buffer (because their inner `ValueType` types are NOT convertible). `static_cast` when field's inner `ValueType` types are convertible and uses temporary buffer with write / read operations when such conversion is not possible. -[Read Previous Tutorial](../tutorial20) <----------------------- [Read Next Tutorial](../tutorial22) +[Read Previous Tutorial](../tutorial20) <-----------------------> [Read Next Tutorial](../tutorial22) diff --git a/tutorials/tutorial22/README.md b/tutorials/tutorial22/README.md index 5cf117290..48318bac8 100644 --- a/tutorials/tutorial22/README.md +++ b/tutorials/tutorial22/README.md @@ -112,4 +112,4 @@ is used, while for the second one the **long** form is in place. static constexpr function, which provides maximal remaining length value. -[Read Previous Tutorial](../tutorial21) <----------------------- [Read Next Tutorial](../tutorial23) +[Read Previous Tutorial](../tutorial21) <-----------------------> [Read Next Tutorial](../tutorial23)