The etf_parser class can serialise and deserialise ETF (Erlang Term Format) into and out of an nlohmann::json object, so that layers above the websocket don't have to be any different for handling ETF.
More...
The etf_parser class can serialise and deserialise ETF (Erlang Term Format) into and out of an nlohmann::json object, so that layers above the websocket don't have to be any different for handling ETF.
◆ etf_parser()
dpp::etf_parser::etf_parser |
( |
| ) |
|
Construct a new etf parser object.
◆ ~etf_parser()
dpp::etf_parser::~etf_parser |
( |
| ) |
|
|
default |
Destroy the etf parser object.
◆ parse()
json dpp::etf_parser::parse |
( |
const std::string & |
in | ) |
|
Convert ETF binary content to nlohmann::json.
- Parameters
-
in | Raw binary ETF data (generally from a websocket) |
- Returns
- nlohmann::json JSON data for use in the library
- Exceptions
-