cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
XML消息 更多...
#include <XmlMessage.hpp>
Public 成员函数 | |
XmlMessage ()=default | |
XmlMessage (std::string content) | |
bool | operator== (const XmlMessage &rhs) |
bool | operator!= (const XmlMessage &rhs) |
std::string | GetContent () const |
获取消息内容 更多... | |
XmlMessage & | SetContent (std::string content) |
设置消息内容 更多... | |
![]() | |
std::unique_ptr< IMessage > | clone () const override |
![]() | |
virtual | ~IMessage ()=default |
virtual std::unique_ptr< IMessage > | clone () const =0 |
MessageTypes | type () const |
Return the type of the class 更多... | |
bool | allowSend () const |
检查消息是否可以用于发送 更多... | |
bool | valid () const |
检查消息是否有效 更多... | |
Protected 成员函数 | |
bool | isValid_ () const final |
![]() | |
IMessageImpl ()=default | |
MessageTypes | GetType_ () const override |
bool | isSendSupported_ () const override |
![]() | |
IMessage ()=default | |
virtual MessageTypes | GetType_ () const =0 |
virtual bool | isSendSupported_ () const =0 |
virtual bool | isValid_ () const =0 |
Protected 属性 | |
std::string | content_ |
静态 Protected 属性 | |
static constexpr MessageTypes | TYPE_ = MessageTypes::XML |
static constexpr bool | SUPPORT_SEND_ = true |
额外继承的成员函数 | |
![]() | |
static constexpr MessageTypes | GetType () |
static constexpr bool | isSendSupported () |
|
default |
|
inline |
在文件 XmlMessage.hpp 第 49 行定义.
|
inlinefinalprotectedvirtual |
实现了 Mirai::IMessage.
在文件 XmlMessage.hpp 第 45 行定义.
|
inline |
在文件 XmlMessage.hpp 第 51 行定义.
|
inline |
在文件 XmlMessage.hpp 第 53 行定义.
|
inline |
获取消息内容
在文件 XmlMessage.hpp 第 56 行定义.
|
inline |
设置消息内容
在文件 XmlMessage.hpp 第 59 行定义.
|
protected |
在文件 XmlMessage.hpp 第 40 行定义.
|
staticconstexprprotected |
在文件 XmlMessage.hpp 第 42 行定义.
|
staticconstexprprotected |
在文件 XmlMessage.hpp 第 43 行定义.