OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler 1.12.1
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
172
174ONIXS_CBOE_CFE_BOE_API void toStr(std::string&, const HandlerSettings&);
175
177inline std::string toStr(const HandlerSettings& value)
178{
179 std::string str;
180
181 toStr(str, value);
182
183 return str;
184}
185
203
205ONIXS_CBOE_CFE_BOE_API void toStr(std::string&, ReplayUnspecifiedUnit::Enum);
206
208inline std::string toStr(ReplayUnspecifiedUnit::Enum value)
209{
210 std::string str;
211
212 toStr(str, value);
213
214 return str;
215}
216
219{
221 std::string sessionId;
222
224 std::string sessionSubId;
225
227 std::string password;
228
231
232 struct Unit
233 {
236
239 };
240
242 std::vector<Unit> units;
243
246 : replayUnspecifiedUnit(ReplayUnspecifiedUnit::FailIfUnitNotSpecified)
247 {}
248};
249
251ONIXS_CBOE_CFE_BOE_API void toStr(std::string&, const LogonSettings&);
252
254inline std::string toStr(const LogonSettings& value)
255{
256 std::string str;
257
258 toStr(str, value);
259
260 return str;
261}
262
263}
264}
265}
266}
std::set< size_t > CpuIndexes
Logical processors that a thread is allowed to run on (first logical CPU has index 0).
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
unsigned int intervalSec
The time interval between attempts to restore the telecommunication link (in seconds).
int number
Number of attempts to restore the telecommunication link.
ConnectionRetries(int inNumber, unsigned inIntervalSec)
Constructor.
size_t auditTrailFileMaxSize
Max size for audit trail file in megabytes, another file will be created if the size is exceeded.
std::string logDirectory
Log files are stored in this directory.
ConnectionRetries connectionRetries
Connection retries configuration settings.
LogSettings::Enum logSettings
Combine LogSettings enum values to configure the logger.
std::string auditTrailFile
Template of Audit Trail file name without extension.
unsigned receiveSpinningTimeout
Sets the receive spinning timeout (microseconds).
CpuIndexes auditTrailThreadAffinity
CPU affinity of the audit trail thread.
std::string auditTrailDirectory
Audit Trail files are stored in this directory.
std::string logFileNamePrefix
Template of log file name without extension.
int receiveTimeoutMs
Receive timeout in milliseconds.
CpuIndexes sendingThreadAffinity
CPU affinity of the sending thread.
HandlerSettings()
Initialize default instance.
unsigned sendSpinningTimeout
Sets the send spinning timeout (microseconds).
CpuIndexes receivingThreadAffinity
CPU affinity of the receiving thread.
std::string licenseDirectory
Path to the license directory.
int sendTimeoutMs
Send timeout in milliseconds.
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.