Skip to content

Commit 614a961

Browse files
committed
Requiring v7.1 of the commsdsl.
1 parent b3468dc commit 614a961

File tree

1,296 files changed

+4729
-4609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,296 files changed

+4729
-4609
lines changed

.github/workflows/actions_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Github Actions Build
33
on: [push]
44

55
env:
6-
COMMS_TAG: v5.3
7-
COMMSDSL_TAG: v7.0.2
6+
COMMS_TAG: develop
7+
COMMSDSL_TAG: develop
88
WIN_BOOST_VERSION: "1.87.0"
99
WIN_BOOST_DIR: "C:/local/boost_1_87_0"
1010

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ option (OPT_USE_SANITIZERS "Compile with sanitizers." OFF)
1111

1212
#####################################################
1313

14-
set (MIN_COMMSDSL_VERSION "7.0.2")
14+
set (MIN_COMMSDSL_VERSION "7.1")
1515

1616
if ("${CMAKE_CXX_STANDARD}" STREQUAL "")
1717
set(CMAKE_CXX_STANDARD 11)

howtos/howto1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ for details:
5555
```cpp
5656
template<typename TField, typename TNextLayer, typename... TOptions>
5757
class SizeWithFlags : public
58-
comms::protocol::MsgSizeLayer<...>
58+
comms::frame::MsgSizeLayer<...>
5959
{
6060

6161
public:

howtos/howto1/dsl_src/include/howto1/frame/layer/SizeWithFlags.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "comms/protocol/MsgSizeLayer.h"
3+
#include "comms/frame/MsgSizeLayer.h"
44
#include "comms/options.h"
55

66
namespace howto1
@@ -15,7 +15,7 @@ namespace layer
1515
/// @brief Customizing the size layer
1616
template<typename TField, typename TNextLayer, typename... TOptions>
1717
class SizeWithFlags : public
18-
comms::protocol::MsgSizeLayer<
18+
comms::frame::MsgSizeLayer<
1919
TField,
2020
TNextLayer,
2121
TOptions...,
@@ -24,7 +24,7 @@ class SizeWithFlags : public
2424
{
2525
// Repeat base type
2626
using Base =
27-
comms::protocol::MsgSizeLayer<
27+
comms::frame::MsgSizeLayer<
2828
TField,
2929
TNextLayer,
3030
TOptions...,

howtos/howto1/include/howto1/Interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by commsdsl2comms v7.0.2
1+
// Generated by commsdsl2comms v7.1.0
22

33
/// @file
44
/// @brief Contains definition of <b>"Interface"</b> interface class.

howtos/howto1/include/howto1/InterfaceCommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by commsdsl2comms v7.0.2
1+
// Generated by commsdsl2comms v7.1.0
22

33
/// @file
44
/// @brief Contains common template parameters independent functionality of

howtos/howto1/include/howto1/MsgId.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by commsdsl2comms v7.0.2
1+
// Generated by commsdsl2comms v7.1.0
22

33
/// @file
44
/// @brief Contains definition of message ids enumeration.
@@ -10,6 +10,7 @@
1010

1111
namespace howto1
1212
{
13+
1314
/// @brief Message ids enumeration.
1415
enum MsgId : std::uint8_t
1516
{

howtos/howto1/include/howto1/Version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by commsdsl2comms v7.0.2
1+
// Generated by commsdsl2comms v7.1.0
22

33
/// @file
44
/// @brief Contains protocol version definition.
@@ -22,5 +22,5 @@ inline constexpr unsigned specVersion()
2222
} // namespace howto1
2323

2424
// Generated compile time check for minimal supported version of the COMMS library
25-
static_assert(COMMS_MAKE_VERSION(5, 3, 0) <= comms::version(),
25+
static_assert(COMMS_MAKE_VERSION(5, 4, 0) <= comms::version(),
2626
"The version of COMMS library is too old");

howtos/howto1/include/howto1/dispatch/DispatchClientInputMessage.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// Generated by commsdsl2comms v7.0.2
1+
// Generated by commsdsl2comms v7.1.0
22

33
/// @file
44
/// @brief Contains dispatch to handling function(s) for client input input messages.
55

66
#pragma once
77

8-
#include "howto1/MsgId.h"
8+
#include <cstdint>
99
#include "howto1/input/ClientInputMessages.h"
1010
#include "howto1/options/DefaultOptions.h"
1111

@@ -39,20 +39,20 @@ namespace dispatch
3939
/// Every @b handle() function may return a value, but every
4040
/// function must return the @b same type.
4141
/// @note Defined in howto1/dispatch/DispatchClientInputMessage.h
42-
template<typename TProtOptions, typename TMsg, typename THandler>
42+
template<typename TProtOptions, typename TId, typename TMsg, typename THandler>
4343
auto dispatchClientInputMessage(
44-
howto1::MsgId id,
44+
TId id,
4545
TMsg& msg,
4646
THandler& handler) -> decltype(handler.handle(msg))
4747
{
4848
using InterfaceType = typename std::decay<decltype(msg)>::type;
49-
switch(id) {
50-
case howto1::MsgId_M1:
49+
switch(static_cast<std::intmax_t>(id)) {
50+
case 1 /* 0x1 */:
5151
{
5252
using MsgType = howto1::message::Msg1<InterfaceType, TProtOptions>;
5353
return handler.handle(static_cast<MsgType&>(msg));
5454
}
55-
case howto1::MsgId_M2:
55+
case 2 /* 0x2 */:
5656
{
5757
using MsgType = howto1::message::Msg2<InterfaceType, TProtOptions>;
5858
return handler.handle(static_cast<MsgType&>(msg));
@@ -75,9 +75,9 @@ auto dispatchClientInputMessage(
7575
/// @param[in] handler Reference to handling object.
7676
/// @see dispatchClientInputMessage()
7777
/// @note Defined in howto1/dispatch/DispatchClientInputMessage.h
78-
template<typename TProtOptions, typename TMsg, typename THandler>
78+
template<typename TProtOptions, typename TId, typename TMsg, typename THandler>
7979
auto dispatchClientInputMessage(
80-
howto1::MsgId id,
80+
TId id,
8181
std::size_t idx,
8282
TMsg& msg,
8383
THandler& handler) -> decltype(handler.handle(msg))
@@ -96,9 +96,9 @@ auto dispatchClientInputMessage(
9696
/// @param[in] handler Reference to handling object.
9797
/// @see dispatchClientInputMessage()
9898
/// @note Defined in howto1/dispatch/DispatchClientInputMessage.h
99-
template<typename TMsg, typename THandler>
99+
template<typename TId, typename TMsg, typename THandler>
100100
auto dispatchClientInputMessageDefaultOptions(
101-
howto1::MsgId id,
101+
TId id,
102102
TMsg& msg,
103103
THandler& handler) -> decltype(handler.handle(msg))
104104
{
@@ -114,9 +114,9 @@ auto dispatchClientInputMessageDefaultOptions(
114114
/// @param[in] handler Reference to handling object.
115115
/// @see dispatchClientInputMessageDefaultOptions()
116116
/// @note Defined in howto1/dispatch/DispatchClientInputMessage.h
117-
template<typename TMsg, typename THandler>
117+
template<typename TId, typename TMsg, typename THandler>
118118
auto dispatchClientInputMessageDefaultOptions(
119-
howto1::MsgId id,
119+
TId id,
120120
std::size_t idx,
121121
TMsg& msg,
122122
THandler& handler) -> decltype(handler.handle(msg))

howtos/howto1/include/howto1/dispatch/DispatchMessage.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// Generated by commsdsl2comms v7.0.2
1+
// Generated by commsdsl2comms v7.1.0
22

33
/// @file
44
/// @brief Contains dispatch to handling function(s) for all input messages.
55

66
#pragma once
77

8-
#include "howto1/MsgId.h"
8+
#include <cstdint>
99
#include "howto1/input/AllMessages.h"
1010
#include "howto1/options/DefaultOptions.h"
1111

@@ -39,20 +39,20 @@ namespace dispatch
3939
/// Every @b handle() function may return a value, but every
4040
/// function must return the @b same type.
4141
/// @note Defined in howto1/dispatch/DispatchMessage.h
42-
template<typename TProtOptions, typename TMsg, typename THandler>
42+
template<typename TProtOptions, typename TId, typename TMsg, typename THandler>
4343
auto dispatchMessage(
44-
howto1::MsgId id,
44+
TId id,
4545
TMsg& msg,
4646
THandler& handler) -> decltype(handler.handle(msg))
4747
{
4848
using InterfaceType = typename std::decay<decltype(msg)>::type;
49-
switch(id) {
50-
case howto1::MsgId_M1:
49+
switch(static_cast<std::intmax_t>(id)) {
50+
case 1 /* 0x1 */:
5151
{
5252
using MsgType = howto1::message::Msg1<InterfaceType, TProtOptions>;
5353
return handler.handle(static_cast<MsgType&>(msg));
5454
}
55-
case howto1::MsgId_M2:
55+
case 2 /* 0x2 */:
5656
{
5757
using MsgType = howto1::message::Msg2<InterfaceType, TProtOptions>;
5858
return handler.handle(static_cast<MsgType&>(msg));
@@ -75,9 +75,9 @@ auto dispatchMessage(
7575
/// @param[in] handler Reference to handling object.
7676
/// @see dispatchMessage()
7777
/// @note Defined in howto1/dispatch/DispatchMessage.h
78-
template<typename TProtOptions, typename TMsg, typename THandler>
78+
template<typename TProtOptions, typename TId, typename TMsg, typename THandler>
7979
auto dispatchMessage(
80-
howto1::MsgId id,
80+
TId id,
8181
std::size_t idx,
8282
TMsg& msg,
8383
THandler& handler) -> decltype(handler.handle(msg))
@@ -96,9 +96,9 @@ auto dispatchMessage(
9696
/// @param[in] handler Reference to handling object.
9797
/// @see dispatchMessage()
9898
/// @note Defined in howto1/dispatch/DispatchMessage.h
99-
template<typename TMsg, typename THandler>
99+
template<typename TId, typename TMsg, typename THandler>
100100
auto dispatchMessageDefaultOptions(
101-
howto1::MsgId id,
101+
TId id,
102102
TMsg& msg,
103103
THandler& handler) -> decltype(handler.handle(msg))
104104
{
@@ -114,9 +114,9 @@ auto dispatchMessageDefaultOptions(
114114
/// @param[in] handler Reference to handling object.
115115
/// @see dispatchMessageDefaultOptions()
116116
/// @note Defined in howto1/dispatch/DispatchMessage.h
117-
template<typename TMsg, typename THandler>
117+
template<typename TId, typename TMsg, typename THandler>
118118
auto dispatchMessageDefaultOptions(
119-
howto1::MsgId id,
119+
TId id,
120120
std::size_t idx,
121121
TMsg& msg,
122122
THandler& handler) -> decltype(handler.handle(msg))

0 commit comments

Comments
 (0)