OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler 1.12.0
API documentation
Loading...
Searching...
No Matches
SessionMessages.Testing.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#pragma once
20
24
25#include <vector>
27
28namespace OnixS {
29namespace CboeCFE {
30namespace Trading {
31namespace BOE {
32namespace Testing {
33
35struct ONIXS_CBOE_CFE_BOE_API MutableLoginResponse : public OutgoingMessage
36{
38
40
42
43 std::vector<Unit> units_;
44
45 MessageType::Enum type() const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE { return MessageType::LoginResponse; };
46
47 void validate() const ONIXS_BATS_BOE_OVERRIDE {};
48
49 std::string toString() const ONIXS_BATS_BOE_OVERRIDE;
50
51 void toString(std::string& str) const ONIXS_BATS_BOE_OVERRIDE;
52
53 size_t serializeTo(unsigned char*) const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE;
54};
55
57struct ONIXS_CBOE_CFE_BOE_API MutableReplayComplete : public OutgoingMessage
58{
60
61 void validate() const ONIXS_BATS_BOE_OVERRIDE {};
62
63 std::string toString() const ONIXS_BATS_BOE_OVERRIDE;
64
65 void toString(std::string&) const ONIXS_BATS_BOE_OVERRIDE;
66
67private:
68 size_t serializeTo(unsigned char*) const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE { return 0; };
69};
70
72struct ONIXS_CBOE_CFE_BOE_API MutableLogoutResponse : public OutgoingMessage
73{
75
77
79
80 void validate() const ONIXS_BATS_BOE_OVERRIDE {};
81
82 std::string toString() const ONIXS_BATS_BOE_OVERRIDE;
83
84 void toString(std::string& str) const ONIXS_BATS_BOE_OVERRIDE;
85
86 size_t serializeTo(unsigned char*) const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE;
87};
88
90struct ONIXS_CBOE_CFE_BOE_API MutableServerHeartbeat : public OutgoingMessage
91{
93
94 void validate() const ONIXS_BATS_BOE_OVERRIDE {};
95
96 std::string toString() const ONIXS_BATS_BOE_OVERRIDE;
97
98 void toString(std::string&) const ONIXS_BATS_BOE_OVERRIDE;
99
100private:
101 size_t serializeTo(unsigned char*) const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE { return 0; };
102};
103
108
109
111struct ONIXS_CBOE_CFE_BOE_API ConstantLoginRequest : public BinaryMessage
112{
114
117 {
118 return fixedStr<4>(0);
119 }
120
123 {
124 return fixedStr<4>(4);
125 }
126
129 {
130 return fixedStr<10>(8);
131 }
132
138
141 {
142 return ordinary<Binary1>(19);
143 }
144
145 struct Unit : public BinaryMessage
146 {
148 {
149 return ordinary<Binary1>(0);
150 }
151
153 {
154 return ordinary<Binary4>(1);
155 }
156
157 Unit(const void* data, MessageSize size)
158 : BinaryMessage(data, size)
159 {
160 }
161 };
162
164 Unit units(MessageSize index) const
165 {
166 assert(index < numberOfUnits());
167
168 static const MessageSize UnitSize = 5;
169 return submessage<Unit>(20 + UnitSize * index, UnitSize);
170 }
171
175
177 ConstantLoginRequest(const void* data, MessageSize size)
178 : BinaryMessage(data, size)
179 {
180 }
181};
182
184struct ONIXS_CBOE_CFE_BOE_API ConstantLogoutRequest : public BinaryMessage
185{
187
191
192 ConstantLogoutRequest(const void* data, MessageSize size)
193 : BinaryMessage(data, size)
194 {
195 }
196};
197
199struct ONIXS_CBOE_CFE_BOE_API ConstantClientHeartbeat : public BinaryMessage
200{
202
206
207 ConstantClientHeartbeat(const void* data, MessageSize size)
208 : BinaryMessage(data, size)
209 {
210 }
211};
212
216
217
218}
219}
220}
221}
222}
#define ONIXS_BATS_BOE_NOEXCEPT
Definition ABI.h:49
#define ONIXS_CBOE_CFE_BOE_DECLARE_T0_STR_FUNCTIONS(Type)
Definition ABI.h:38
const SubMessage submessage(MessageSize offset, MessageSize size) const
BinaryMessage()
Initializes blank instance referencing to nothing.
Provides efficient way of accessing text-based field values.
Definition String.h:46
Binary2 MessageSize
Aliases message length type.
Base class for outgoing messages.
static MessageType::Enum type() ONIXS_BATS_BOE_NOEXCEPT
ConstantLoginRequest(const void *data, MessageSize size)
Initializes instance over given memory block.
static MessageType::Enum type() ONIXS_BATS_BOE_NOEXCEPT
static MessageType::Enum type() ONIXS_BATS_BOE_NOEXCEPT
std::string toString() const ONIXS_BATS_BOE_OVERRIDE
Returns the text representation.
size_t serializeTo(unsigned char *) const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE
MessageType::Enum type() const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE
Returns message type.
std::string toString() const ONIXS_BATS_BOE_OVERRIDE
Returns the text representation.
size_t serializeTo(unsigned char *) const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE
MessageType::Enum type() const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE
Returns message type.
std::string toString() const ONIXS_BATS_BOE_OVERRIDE
Returns the text representation.
MessageType::Enum type() const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE
Returns message type.
std::string toString() const ONIXS_BATS_BOE_OVERRIDE
Returns the text representation.
MessageType::Enum type() const ONIXS_BATS_BOE_NOEXCEPT ONIXS_BATS_BOE_OVERRIDE
Returns message type.