OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
SbeEventBasedDecoder.h
Go to the documentation of this file.
1#pragma once
2/*
3* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
4*
5* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
6* and international copyright treaties.
7*
8* Access to and use of the software is governed by the terms of the applicable ONIXS Software
9* Services Agreement (the Agreement) and Customer end user license agreements granting
10* a non-assignable, non-transferable and non-exclusive license to use the software
11* for it's own data processing purposes under the terms defined in the Agreement.
12*
13* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
14* of this source code or associated reference material to any other location for further reproduction
15* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
16*
17* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18* the terms of the Agreement is a violation of copyright law.
19*/
20
21#include <string>
22#include <vector>
23#include <map>
24#include <limits>
25
26#include <OnixS/FIXEngine/ABI.h>
30
31namespace OnixS {
32namespace FIX {
35
36namespace SBE {
38
41{
42public:
47 EventBasedDecoder(const std::string & xmlTemplates, ISbeCustomCoderLibrary* customCoders = ONIXS_FIXENGINE_NULLPTR);
48
51
68 bool decodeSingleMessage(int version, int templateId, size_t rootBlockLength,
69 const unsigned char * buffer, size_t offset, size_t count, IDecodeListener * listener,
70 size_t * numberOfDecodedBytes) const;
71
73 unsigned schemaVersion() const;
74
76 unsigned schemaId() const;
77
79 std::string schemaSemanticVersion() const;
80
83 std::string schemaHeaderType() const;
84private:
86
88 EventBasedDecoder & operator = (const EventBasedDecoder &);
89
90 struct Impl;
91 Impl * impl_;
92};
93
94}
95}
96}
#define ONIXS_FIXENGINE_API_DECL(typeKind, typeName)
Definition ABI.h:57
#define ONIXS_FIXENGINE_API
Definition ABI.h:45
#define ONIXS_FIXENGINE_NULLPTR
Definition Compiler.h:200
Identifies the FIX messages dictionary.
Definition Dictionary.h:74
Encapsulates operations over a FIX Message.
Definition Message.h:52
unsigned schemaVersion() const
The maximum known version of the SBE schema.
unsigned schemaId() const
The schema identifier.
bool decodeSingleMessage(int version, int templateId, size_t rootBlockLength, const unsigned char *buffer, size_t offset, size_t count, IDecodeListener *listener, size_t *numberOfDecodedBytes) const
Tries to decode the given FAST stream buffer into the corresponding FIX Message.
EventBasedDecoder(const std::string &xmlTemplates, ISbeCustomCoderLibrary *customCoders=ONIXS_FIXENGINE_NULLPTR)
Creates the SBE to FIX Decoder.
std::string schemaHeaderType() const
The name of the encoding type of the message header, which is the same for all messages in a schema.
std::string schemaSemanticVersion() const
The semantic version of the SBE schema.
The SBE decode session's listener.
The library that contains user-defined SBE coders.