Sese Framework
x.y.z
A cross-platform framework
|
XML 序列化工具类 更多...
#include <XmlUtil.h>
Public 类型 | |
using | InputStream = io::InputStream |
using | OutputStream = io::OutputStream |
using | Tokens = std::queue<std::string> |
Public 成员函数 | |
XmlUtil ()=delete | |
Public 成员函数 继承自 sese::NotInstantiable | |
NotInstantiable ()=delete | |
virtual | ~NotInstantiable ()=default |
NotInstantiable (const NotInstantiable &)=delete | |
NotInstantiable & | operator= (const NotInstantiable &)=delete |
静态 Public 成员函数 | |
static Element::Ptr | deserialize (const InputStream::Ptr &input_stream, size_t level) noexcept |
static Element::Ptr | deserialize (InputStream *input_stream, size_t level) noexcept |
static void | serialize (const Element::Ptr &object, const OutputStream::Ptr &output_stream) noexcept |
static void | serialize (const Element::Ptr &object, OutputStream *output_stream) noexcept |
静态 Private 成员函数 | |
static void | tokenizer (InputStream *input_stream, Tokens &tokens) noexcept |
static bool | removeComment (Tokens &tokens) noexcept |
static Element::Ptr | createElement (Tokens &tokens, size_t level, bool is_sub_element) noexcept |
XML 序列化工具类
using sese::xml::XmlUtil::Tokens = std::queue<std::string> |
|
delete |
|
staticprivatenoexcept |
|
staticnoexcept |
从流中反序列化一个 Xml 元素对象
input_stream | 输入流 |
level | 反序列化深度 |
nullptr | 反序列化失败,否则为成功 |
|
staticnoexcept |
从流中反序列化一个 Xml 元素对象
input_stream | 输入流 |
level | 反序列化深度 |
nullptr | 反序列化失败,否则为成功 |
|
staticprivatenoexcept |
|
staticnoexcept |
向流中序列化一个 Xml 元素对象
object | 待序列化对象 |
output_stream | 待输出流 |
|
staticnoexcept |
向流中序列化一个 Xml 元素对象
object | 待序列化对象 |
output_stream | 待输出流 |
|
staticprivatenoexcept |