ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::dremakes Class Reference

RAII模式的备注管理类 More...

#include <remakes.h>

Public Member Functions

 dremakes (actor_role *arole, const char *aremakes)
 构造函数,将C字符串备注压入角色备注栈
 dremakes (actor_role *arole, const std::string &aremakes)
 构造函数,将std::string备注压入角色备注栈
virtual ~dremakes ()
 析构函数,自动弹出栈顶备注

Static Public Member Functions

static const char * get_remake (actor_role *)
 静态方法获取角色当前备注

Detailed Description

RAII模式的备注管理类

构造时将备注压入角色备注栈,析构时自动弹出, 适用于嵌套调用场景中的上下文备注管理

Member Function Documentation

◆ get_remake()

const char * ngl::dremakes::get_remake ( actor_role * arole)
static

静态方法获取角色当前备注

Parameters
arole角色指针
Returns
备注字符串

The documentation for this class was generated from the following files: