Orderbook Simulation
OrderbookSim is a C++ application simulating a financial market order book. It efficiently manages and matches buy and sell orders while calculating the Volume-Weighted Average Price (VWAP).
|
syntax analysis More...
#include <json.hpp>
Public Member Functions | |
parser (InputAdapterType &&adapter, const parser_callback_t< BasicJsonType > cb=nullptr, const bool allow_exceptions_=true, const bool skip_comments=false) | |
a parser reading from an input adapter More... | |
void | parse (const bool strict, BasicJsonType &result) |
public parser interface More... | |
bool | accept (const bool strict=true) |
public accept interface More... | |
template<typename SAX > | |
bool | sax_parse (SAX *sax, const bool strict=true) |
syntax analysis
This class implements a recursive descent parser.
|
inlineexplicit |
a parser reading from an input adapter
|
inline |
public accept interface
[in] | strict | whether to expect the last token to be EOF |
|
inline |
public parser interface
[in] | strict | whether to expect the last token to be EOF |
[in,out] | result | parsed JSON value |
parse_error.101 | in case of an unexpected token |
parse_error.102 | if to_unicode fails or surrogate error |
parse_error.103 | if to_unicode fails |
|
inline |