OnixS C++ FIX Engine 4.14.0
Users' manual and 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 = 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
Definition ABI.h:45
Identifies the FIX messages dictionary.
Definition Dictionary.h:132
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
EventBasedDecoder(const std::string &xmlTemplates, ISbeCustomCoderLibrary *customCoders=nullptr)
friend ONIXS_FIXENGINE_API_DECL(class, OnixS::FIX::Dictionary)
std::string schemaHeaderType() const
std::string schemaSemanticVersion() const
The semantic version of the SBE schema.
The library that contains user-defined SBE coders.
ONIXS_FIXENGINE_API_DECL(class, IDecodeListener)
ONIXS_FIXENGINE_API_DECL(class, IEngineListener)