OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler 1.12.0
API documentation
Loading...
Searching...
No Matches
HandlerSettings.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#pragma once
21
26
27#include <set>
28#include <vector>
29
30namespace OnixS {
31namespace CboeCFE {
32namespace Trading {
33namespace BOE {
34
38{
42
45 ConnectionRetries (int inNumber, unsigned inIntervalSec) : number (inNumber), intervalSec (inIntervalSec) {}
46
51 int number;
52
56 unsigned int intervalSec;
57};
58
60ONIXS_CBOE_CFE_BOE_API void toStr(std::string&, const ConnectionRetries&);
61
63inline std::string toStr(const ConnectionRetries& value)
64{
65 std::string str;
66
67 toStr(str, value);
68
69 return str;
70}
71
74typedef std::set<size_t> CpuIndexes;
75
169
171ONIXS_CBOE_CFE_BOE_API void toStr(std::string&, const HandlerSettings&);
172
174inline std::string toStr(const HandlerSettings& value)
175{
176 std::string str;
177
178 toStr(str, value);
179
180 return str;
181}
182
200
202ONIXS_CBOE_CFE_BOE_API void toStr(std::string&, ReplayUnspecifiedUnit::Enum);
203
205inline std::string toStr(ReplayUnspecifiedUnit::Enum value)
206{
207 std::string str;
208
209 toStr(str, value);
210
211 return str;
212}
213
216{
218 std::string sessionId;
219
221 std::string sessionSubId;
222
224 std::string password;
225
228
229 struct Unit
230 {
233
236 };
237
239 std::vector<Unit> units;
240
243 : replayUnspecifiedUnit(ReplayUnspecifiedUnit::FailIfUnitNotSpecified)
244 {}
245};
246
248ONIXS_CBOE_CFE_BOE_API void toStr(std::string&, const LogonSettings&);
249
251inline std::string toStr(const LogonSettings& value)
252{
253 std::string str;
254
255 toStr(str, value);
256
257 return str;
258}
259
260}
261}
262}
263}
std::set< size_t > CpuIndexes
void toStr(std::string &str, const FixedPointDecimal< Mantissa, Exponent > &number)
Serializes fixed-point decimal into a string.
Definition Decimal.h:156
char Char
Character type alias.
Definition String.h:42
ConnectionRetries(int inNumber, unsigned inIntervalSec)
unsigned receiveSpinningTimeout
Sets the receive spinning timeout (microseconds).
unsigned sendSpinningTimeout
Sets the send spinning timeout (microseconds).
Binary1 number
A unit number. This must be the unit number of the port.
Binary4 sequence
Last received sequence number for the unit.
std::string sessionSubId
Session Sub ID supplied by CFE.
std::string password
The password associated with the SessionId and SessionSubId.
ReplayUnspecifiedUnit::Enum replayUnspecifiedUnit
Controls replay behavior for unknown units.
std::vector< Unit > units
Unit/sequence pairs to follow, one per unit from which the TPH has received messages over this port.
std::string sessionId
Session Id as supplied by CFE.
Controls replay behavior for unknown units.