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>
4343auto 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>
7979auto 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>
100100auto 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>
118118auto dispatchClientInputMessageDefaultOptions (
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