OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
ISbeDecodeListener.h
Go to the documentation of this file.
1/*
2* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3*
4* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5* and international copyright treaties.
6*
7* Access to and use of the software is governed by the terms of the applicable ONIXS Software
8* Services Agreement (the Agreement) and Customer end user license agreements granting
9* a non-assignable, non-transferable and non-exclusive license to use the software
10* for it's own data processing purposes under the terms defined in the Agreement.
11*
12* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13* of this source code or associated reference material to any other location for further reproduction
14* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15*
16* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17* the terms of the Agreement is a violation of copyright law.
18*/
19
20#if !defined(__ONIXS_ISBEDECODELISTENER_H__)
21#define __ONIXS_ISBEDECODELISTENER_H__
22
23#include <cstddef>
24
25#include <OnixS/FIXEngine/ABI.h>
27
28namespace OnixS {
29namespace FIX {
30namespace SBE {
34{
35public:
38
41
48 virtual void onBeginMessage(unsigned templateId, const char * messageType, size_t messageTypeLength) = 0;
49
52 virtual void onEndMessage() = 0;
54
57
63 virtual void onValue(int tag, char value) = 0;
64
69 virtual void onValue(int tag, short value) = 0;
70
75 virtual void onValue(int tag, unsigned short value) = 0;
76
81 virtual void onValue(int tag, int value) = 0;
82
87 virtual void onValue(int tag, unsigned value) = 0;
88
93 virtual void onValue(int tag, long long value) = 0;
94
99 virtual void onValue(int tag, unsigned long long value) = 0;
100
106 virtual void onValue(int tag, long long mantissa, int exponent) = 0;
107
113 virtual void onValue(int tag, const char * value, size_t valueLength) = 0;
114
119 virtual void onValue(int tag, float value) = 0;
120
125 virtual void onValue(int tag, double value) = 0;
127
130
136 virtual void onBeginSequence(int tag, size_t itemCount) = 0;
137
139 virtual void onEndSequence() = 0;
141
144
148 virtual void onBeginSequenceEntry(size_t index) = 0;
149
151 virtual void onEndSequenceEntry() = 0;
153};
154}
155}
156}
157
158#endif // __ONIXS_ISBEDECODELISTENER_H__
#define ONIXS_FIXENGINE_API
Definition ABI.h:45
#define ONIXS_FIXENGINE_DEFAULT
Definition Compiler.h:194
The SBE decode session's listener.
virtual void onValue(int tag, char value)=0
virtual void onBeginMessage(unsigned templateId, const char *messageType, size_t messageTypeLength)=0
virtual void onBeginSequenceEntry(size_t index)=0
virtual void onBeginSequence(int tag, size_t itemCount)=0
virtual void onEndSequenceEntry()=0
Called after the entry was decoded.
virtual void onEndMessage()=0
Called when the decoder finishes the current message decoding.
virtual ~IDecodeListener() ONIXS_FIXENGINE_DEFAULT
virtual void onEndSequence()=0
Called immediately after the last sequence entry decoded.