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

syntax analysis 更多...

#include <parser.hpp>

Public 成员函数

 parser (InputAdapterType &&adapter, parser_callback_t< BasicJsonType > cb=nullptr, const bool allow_exceptions_=true, const bool ignore_comments=false, const bool ignore_trailing_commas_=false)
 a parser reading from an input adapter
void parse (const bool strict, BasicJsonType &result)
 public parser interface
bool accept (const bool strict=true)
 public accept interface
template<typename SAX>
bool sax_parse (SAX *sax, const bool strict=true)

详细描述

template<typename BasicJsonType, typename InputAdapterType>
class detail::parser< BasicJsonType, InputAdapterType >

syntax analysis

This class implements a recursive descent parser.

构造及析构函数说明

◆ parser()

template<typename BasicJsonType, typename InputAdapterType>
parser ( InputAdapterType && adapter,
parser_callback_t< BasicJsonType > cb = nullptr,
const bool allow_exceptions_ = true,
const bool ignore_comments = false,
const bool ignore_trailing_commas_ = false )
inlineexplicit

a parser reading from an input adapter

成员函数说明

◆ accept()

template<typename BasicJsonType, typename InputAdapterType>
bool accept ( const bool strict = true)
inline

public accept interface

参数
[in]strictwhether to expect the last token to be EOF
返回
whether the input is a proper JSON text

◆ parse()

template<typename BasicJsonType, typename InputAdapterType>
void parse ( const bool strict,
BasicJsonType & result )
inline

public parser interface

参数
[in]strictwhether to expect the last token to be EOF
[in,out]resultparsed JSON value
异常
parse_error.101in case of an unexpected token
parse_error.102if to_unicode fails or surrogate error
parse_error.103if to_unicode fails
函数调用图:

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