RflySimSDK v4.10
RflySimSDK说明文档
载入中...
搜索中...
未找到
binary_reader< BasicJsonType, InputAdapterType, SAX > 模板类 参考

deserialization of CBOR, MessagePack, and UBJSON values 更多...

#include <binary_reader.hpp>

Public 成员函数

 binary_reader (InputAdapterType &&adapter, const input_format_t format=input_format_t::json) noexcept
 create a binary reader
 binary_reader (const binary_reader &)=delete
 binary_reader (binary_reader &&)=default
binary_readeroperator= (const binary_reader &)=delete
binary_readeroperator= (binary_reader &&)=default
bool sax_parse (const input_format_t format, json_sax_t *sax_, const bool strict=true, const cbor_tag_handler_t tag_handler=cbor_tag_handler_t::error)

详细描述

template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType, InputAdapterType>>
class detail::binary_reader< BasicJsonType, InputAdapterType, SAX >

deserialization of CBOR, MessagePack, and UBJSON values

构造及析构函数说明

◆ binary_reader()

template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType, InputAdapterType>>
binary_reader ( InputAdapterType && adapter,
const input_format_t format = input_format_t::json )
inlineexplicitnoexcept

create a binary reader

参数
[in]adapterinput adapter to read from

成员函数说明

◆ sax_parse()

template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType, InputAdapterType>>
bool sax_parse ( const input_format_t format,
json_sax_t * sax_,
const bool strict = true,
const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error )
inline
参数
[in]formatthe binary format to parse
[in]sax_a SAX event processor
[in]strictwhether to expect the input to be consumed completed
[in]tag_handlerhow to treat CBOR tags
返回
whether parsing was successful
函数调用图:
这是这个函数的调用关系图:

该类的文档由以下文件生成: