B2BITS FIX Antenna C++ 2.33.0
|
Classes | |
struct | ParseSettings |
JSON message parsing settings. More... | |
Enumerations | |
enum class | JsonEncoding : unsigned int { Default = 0 , IncludeCustomTags = 1 } |
Defines FIX using JSON encoding options. More... | |
enum class | TagsHandlingAction : unsigned int { Remove = 0 , Keep , Reject } |
Defines how to handle unknown(custom) fields while parsing JSON message. More... | |
Functions | |
std::unique_ptr< FIXMessage > V12_API | fromJson (const std::string &jsonMsg, ParserID parser, Engine::ProtocolIndex preferredVersion=Engine::NA, const ParseSettings &settings={}) |
Parses JSON encoded FIX message to FIXMessage object. | |
static JsonEncoding | operator& (const JsonEncoding left, const JsonEncoding right) |
static JsonEncoding | operator| (const JsonEncoding left, const JsonEncoding right) |
std::string V12_API | toJson (const FIXMessage &msg, const JsonEncoding encodingOptions=JsonEncoding::Default) |
Serializes FIXMessage object to JSON using "FIX usign JSON" standard. | |
|
strong |
|
strong |
std::unique_ptr< FIXMessage > V12_API Engine::Mapping::fromJson | ( | const std::string & | jsonMsg, |
ParserID | parser, | ||
Engine::ProtocolIndex | preferredVersion = Engine::NA, | ||
const ParseSettings & | settings = {} ) |
Parses JSON encoded FIX message to FIXMessage object.
jsonMsg | - a string containing JSON encoded FIX message. |
parser | - parser ID of the already created parser available in the engine to use when parsing the message. |
preferredVersion | - protocol index(FIXVersion for standard protocols) to use as default version with the parser specified. Applicable for FIXT.1.1 messages that don't provide FIXVersion explicitly via 'ApplVerID' and/or 'CstmApplVerID' field(s) |
settings | - settings to use when parsing the message. |
|
inlinestatic |
|
inlinestatic |
std::string V12_API Engine::Mapping::toJson | ( | const FIXMessage & | msg, |
const JsonEncoding | encodingOptions = JsonEncoding::Default ) |
Serializes FIXMessage object to JSON using "FIX usign JSON" standard.
msg | - FIX message object. |
encodingOptions | - encoding options to use. |