NSP消息处理的调试打印辅助模板。
More...
#include <nsp.h>
|
| template<typename TRECV> |
| static void | print (const char *aname, const TDerived *aactor, const TRECV *arecv) |
| | 打印接收到的NSP消息调试信息。
|
| template<typename TACTOR, typename TX> |
| static void | msg_info (TX &adata) |
| | 设置消息路由信息字符串,格式为"Derived类型:Actor类型:消息类型"。
|
template<typename TDerived>
class ngl::nsp_handle_print< TDerived >
NSP消息处理的调试打印辅助模板。
提供静态方法用于在调试日志中打印NSP消息的接收信息和消息路由信息。
- Template Parameters
-
◆ msg_info()
template<typename TDerived>
template<typename TACTOR, typename TX>
设置消息路由信息字符串,格式为"Derived类型:Actor类型:消息类型"。
- Template Parameters
-
| TACTOR | 消息来源Actor类型 |
| TX | 消息包装类型 |
- Parameters
-
| adata | 消息包装对象,其m_msg字段将被填充路由信息 |
◆ print()
template<typename TDerived>
template<typename TRECV>
| void ngl::nsp_handle_print< TDerived >::print |
( |
const char * | aname, |
|
|
const TDerived * | aactor, |
|
|
const TRECV * | arecv ) |
|
inlinestatic |
打印接收到的NSP消息调试信息。
- Template Parameters
-
- Parameters
-
| aname | 处理器名称(用于日志标识) |
| aactor | 目标Actor指针 |
| arecv | 接收到的消息指针 |
The documentation for this class was generated from the following file:
- E:/GitHub/ngl_server/public/cpp/actor/actor_base/nsp/nsp.h