mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Successor handling for all derived message router types
This commit is contained in:
parent
3865f17fba
commit
4078367e57
@ -208,8 +208,12 @@ namespace etl
|
||||
//********************************************
|
||||
using etl::imessage_router::receive;
|
||||
|
||||
void receive(const etl::imessage&) ETL_OVERRIDE
|
||||
void receive(const etl::imessage& msg) ETL_OVERRIDE
|
||||
{
|
||||
if (has_successor())
|
||||
{
|
||||
get_successor().receive(msg);
|
||||
}
|
||||
}
|
||||
|
||||
//********************************************
|
||||
@ -268,8 +272,12 @@ namespace etl
|
||||
//********************************************
|
||||
using etl::imessage_router::receive;
|
||||
|
||||
void receive(const etl::imessage&) ETL_OVERRIDE
|
||||
void receive(const etl::imessage& msg) ETL_OVERRIDE
|
||||
{
|
||||
if (has_successor())
|
||||
{
|
||||
get_successor().receive(msg);
|
||||
}
|
||||
}
|
||||
|
||||
//********************************************
|
||||
|
||||
@ -196,8 +196,12 @@ namespace etl
|
||||
//********************************************
|
||||
using etl::imessage_router::receive;
|
||||
|
||||
void receive(const etl::imessage&) ETL_OVERRIDE
|
||||
void receive(const etl::imessage& msg) ETL_OVERRIDE
|
||||
{
|
||||
if (has_successor())
|
||||
{
|
||||
get_successor().receive(msg);
|
||||
}
|
||||
}
|
||||
|
||||
//********************************************
|
||||
@ -256,8 +260,12 @@ namespace etl
|
||||
//********************************************
|
||||
using etl::imessage_router::receive;
|
||||
|
||||
void receive(const etl::imessage&) ETL_OVERRIDE
|
||||
void receive(const etl::imessage& msg) ETL_OVERRIDE
|
||||
{
|
||||
if (has_successor())
|
||||
{
|
||||
get_successor().receive(msg);
|
||||
}
|
||||
}
|
||||
|
||||
//********************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user