OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
IDecodeListener.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_IDECODELISTENER_H__)
21#define __ONIXS_IDECODELISTENER_H__
22
23#include <cstddef>
24
25#include <OnixS/FIXEngine/ABI.h>
27
28namespace OnixS {
29namespace FIX {
30namespace FAST {
34{
35public:
38
41
48 virtual void onBeginMessage(unsigned templateId, const char * messageType,
49 size_t messageTypeLength) = 0;
50
53 virtual void onEndMessage() = 0;
55
58
64 virtual void onValue(int tag, int value) = 0;
65
70 virtual void onValue(int tag, unsigned value) = 0;
71
76 virtual void onValue(int tag, long long value) = 0;
77
82 virtual void onValue(int tag, unsigned long long value) = 0;
83
89 virtual void onValue(int tag, long long mantissa, int exponent) = 0;
90
96 virtual void onValue(int tag, const char * value, size_t valueLength) = 0;
98
101
108 virtual void onBeginSequence(int tag, size_t itemCount, int lengthFieldTag) = 0;
109
111 virtual void onEndSequence() = 0;
113
116
120 virtual void onBeginSequenceEntry(size_t index) = 0;
121
123 virtual void onEndSequenceEntry() = 0;
125};
126}
127}
128}
129
130#endif // __ONIXS_IDECODELISTENER_H__
#define ONIXS_FIXENGINE_API
Definition ABI.h:45
#define ONIXS_FIXENGINE_DEFAULT
Definition Compiler.h:194
The decode session's listener.
virtual void onBeginMessage(unsigned templateId, const char *messageType, size_t messageTypeLength)=0
virtual void onBeginSequenceEntry(size_t index)=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 onBeginSequence(int tag, size_t itemCount, int lengthFieldTag)=0
virtual void onValue(int tag, int value)=0
virtual void onEndSequence()=0
Called immediately after the last sequence entry decoded.