交换机结构体对象 更多...
#include <exchange.hpp>
Public 类型 | |
| using | ptr = std::shared_ptr< Exchange > |
| 使用智能指针管理交换机对象 | |
Public 成员函数 | |
| Exchange () | |
| 无参构造 | |
| Exchange (const std::string &ename, ExchangeType etype, bool edurable, bool eauto_delete, const google::protobuf::Map< std::string, std::string > &eargs) | |
| 交换机结构构造函数 | |
| void | setArgs (const std::string &str_args) |
| 解析字符串并存储到映射成员中 | |
| std::string | getArgs () |
| 将映射成员转化为字符串 | |
Public 属性 | |
| std::string | name |
| 交换机名称 | |
| ExchangeType | type |
| 交换机类型 | |
| bool | durable |
| 数据持久化标志 | |
| bool | auto_delete |
| 自动删除标志 | |
| google::protobuf::Map< std::string, std::string > | args |
| 其他参数 | |
交换机结构体对象
| using XuMQ::Exchange::ptr = std::shared_ptr<Exchange> |
使用智能指针管理交换机对象
|
inline |
无参构造
|
inline |
交换机结构构造函数
| ename | 交换机名称 |
| etype | 交换机类型 |
| edurable | 数据持久化标志 |
| eauto_delete | 自动删除标志 |
| eargs | 其他参数 |
|
inline |
将映射成员转化为字符串
|
inline |
解析字符串并存储到映射成员中
| str_args | 从数据库获取的字符串 |

| google::protobuf::Map<std::string, std::string> XuMQ::Exchange::args |
其他参数
| bool XuMQ::Exchange::auto_delete |
自动删除标志
| bool XuMQ::Exchange::durable |
数据持久化标志
| std::string XuMQ::Exchange::name |
交换机名称
| ExchangeType XuMQ::Exchange::type |
交换机类型