OnixS C++ CME MDP Conflated TCP Handler
1.3.6
API Documentation
Loading...
Searching...
No Matches
Typification.h
Go to the documentation of this file.
1
// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2
//
3
// This software owned by Onix Solutions Limited [OnixS] and is
4
// protected by copyright law and international copyright treaties.
5
//
6
// Access to and use of the software is governed by the terms of the applicable
7
// OnixS Software Services Agreement (the Agreement) and Customer end user license
8
// agreements granting a non-assignable, non-transferable and non-exclusive license
9
// to use the software for it's own data processing purposes under the terms defined
10
// in the Agreement.
11
//
12
// Except as otherwise granted within the terms of the Agreement, copying or
13
// reproduction of any part of this source code or associated reference material
14
// to any other location for further reproduction or redistribution, and any
15
// amendments to this copyright notice, are expressly prohibited.
16
//
17
// Any reproduction or redistribution for sale or hiring of the Software not in
18
// accordance with the terms of the Agreement is a violation of copyright law.
19
//
20
21
#pragma once
22
23
#include <
OnixS/CME/ConflatedTCP/messaging/Messages.h
>
24
25
ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_BEGIN
26
28
template
29
<
30
class
Message
31
>
32
inline
33
ONIXS_CONFLATEDTCP_NODISCARD
34
ONIXS_CONFLATEDTCP_PURE
35
Message
36
typify
(
37
const
SbeMessage
& message)
38
{
39
return
Message(message);
40
}
41
48
template
49
<
50
class
Processor
51
>
52
inline
53
ONIXS_CONFLATEDTCP_NODISCARD
54
bool
55
processTypified
(
56
SbeMessage
binary,
57
const
Processor& processor)
58
{
59
switch
(binary.
templateId
())
60
{
61
case
Negotiate200::TemplateId
:
62
{
63
processor(
64
typify
65
<
Negotiate200
>
66
(binary));
67
68
return
true
;
69
}
70
71
case
NegotiationReject201::TemplateId
:
72
{
73
processor(
74
typify
75
<
NegotiationReject201
>
76
(binary));
77
78
return
true
;
79
}
80
81
case
NegotiationResponse202::TemplateId
:
82
{
83
processor(
84
typify
85
<
NegotiationResponse202
>
86
(binary));
87
88
return
true
;
89
}
90
91
case
Terminate203::TemplateId
:
92
{
93
processor(
94
typify
95
<
Terminate203
>
96
(binary));
97
98
return
true
;
99
}
100
101
case
MarketDataRequest205::TemplateId
:
102
{
103
processor(
104
typify
105
<
MarketDataRequest205
>
106
(binary));
107
108
return
true
;
109
}
110
111
case
RequestAck206::TemplateId
:
112
{
113
processor(
114
typify
115
<
RequestAck206
>
116
(binary));
117
118
return
true
;
119
}
120
121
case
RequestReject207::TemplateId
:
122
{
123
processor(
124
typify
125
<
RequestReject207
>
126
(binary));
127
128
return
true
;
129
}
130
131
case
SecurityListRequest208::TemplateId
:
132
{
133
processor(
134
typify
135
<
SecurityListRequest208
>
136
(binary));
137
138
return
true
;
139
}
140
141
case
SecurityStatusRequest209::TemplateId
:
142
{
143
processor(
144
typify
145
<
SecurityStatusRequest209
>
146
(binary));
147
148
return
true
;
149
}
150
151
case
SubscriberHeartbeat210::TemplateId
:
152
{
153
processor(
154
typify
155
<
SubscriberHeartbeat210
>
156
(binary));
157
158
return
true
;
159
}
160
161
default
:
162
return
false
;
163
}
164
}
165
166
ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_END
ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_BEGIN
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_BEGIN
Definition
ABI.h:140
ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_END
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_END
Definition
ABI.h:143
ONIXS_CONFLATEDTCP_PURE
#define ONIXS_CONFLATEDTCP_PURE
Definition
Compiler.h:189
ONIXS_CONFLATEDTCP_NODISCARD
#define ONIXS_CONFLATEDTCP_NODISCARD
Definition
Compiler.h:185
Messages.h
OnixS::CME::ConflatedTCP::Messaging::SbeMessage
SBE-encoded message.
Definition
SbeMessage.h:1092
OnixS::CME::ConflatedTCP::Messaging::SbeMessage::templateId
MessageTemplateId templateId() const noexcept
Definition
SbeMessage.h:1173
OnixS::CME::ConflatedTCP::Messaging::typify
Message typify(const SbeMessage &message)
Casts SBE-encoded message to a given type.
Definition
Typification.h:36
OnixS::CME::ConflatedTCP::Messaging::processTypified
bool processTypified(SbeMessage binary, const Processor &processor)
Casts a given binary message according to template/type information and processes the cast messages b...
Definition
Typification.h:55
OnixS::CME::ConflatedTCP::Messaging::MarketDataRequest205
MarketDataRequest.
Definition
Messages.h:1235
OnixS::CME::ConflatedTCP::Messaging::MarketDataRequest205::TemplateId
@ TemplateId
Definition
Messages.h:1243
OnixS::CME::ConflatedTCP::Messaging::Negotiate200
Negotiate.
Definition
Messages.h:36
OnixS::CME::ConflatedTCP::Messaging::Negotiate200::TemplateId
@ TemplateId
Definition
Messages.h:44
OnixS::CME::ConflatedTCP::Messaging::NegotiationReject201
NegotiationReject.
Definition
Messages.h:386
OnixS::CME::ConflatedTCP::Messaging::NegotiationReject201::TemplateId
@ TemplateId
Definition
Messages.h:394
OnixS::CME::ConflatedTCP::Messaging::NegotiationResponse202
NegotiationResponse.
Definition
Messages.h:672
OnixS::CME::ConflatedTCP::Messaging::NegotiationResponse202::TemplateId
@ TemplateId
Definition
Messages.h:680
OnixS::CME::ConflatedTCP::Messaging::RequestAck206
RequestAck.
Definition
Messages.h:1838
OnixS::CME::ConflatedTCP::Messaging::RequestAck206::TemplateId
@ TemplateId
Definition
Messages.h:1846
OnixS::CME::ConflatedTCP::Messaging::RequestReject207
RequestReject.
Definition
Messages.h:2448
OnixS::CME::ConflatedTCP::Messaging::RequestReject207::TemplateId
@ TemplateId
Definition
Messages.h:2456
OnixS::CME::ConflatedTCP::Messaging::SecurityListRequest208
SecurityListRequest.
Definition
Messages.h:2725
OnixS::CME::ConflatedTCP::Messaging::SecurityListRequest208::TemplateId
@ TemplateId
Definition
Messages.h:2733
OnixS::CME::ConflatedTCP::Messaging::SecurityStatusRequest209
SecurityStatusRequest.
Definition
Messages.h:3328
OnixS::CME::ConflatedTCP::Messaging::SecurityStatusRequest209::TemplateId
@ TemplateId
Definition
Messages.h:3336
OnixS::CME::ConflatedTCP::Messaging::SubscriberHeartbeat210
SubscriberHeartbeat.
Definition
Messages.h:3931
OnixS::CME::ConflatedTCP::Messaging::SubscriberHeartbeat210::TemplateId
@ TemplateId
Definition
Messages.h:3939
OnixS::CME::ConflatedTCP::Messaging::Terminate203
Terminate.
Definition
Messages.h:949
OnixS::CME::ConflatedTCP::Messaging::Terminate203::TemplateId
@ TemplateId
Definition
Messages.h:957
OnixS
CME
ConflatedTCP
messaging
Typification.h
Technical Support:
support@onixs.biz
Copyright © 2025 OnixS. All Rights Reserved.