OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
SessionConnectionSettings.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
22#include <OnixS/ICE/BOE/ABI.h>
23
24#include <string>
25#include <vector>
26
28namespace Scheduling {
29
31typedef std::string Host;
32
34typedef unsigned short Port;
35
39{
40public:
43
46
49
51
53 const Host& host() const noexcept;
54
56 Port port() const noexcept;
57
58 Counterparty& operator=(const Counterparty& other);
59
60private:
61 Host* host_;
62 Port port_;
63};
64
66typedef std::vector<Counterparty> Counterparties;
67
70{
71public:
77
79
81
84
86 const Counterparties& counterparties() const noexcept;
87
89
90protected:
92
93private:
94 Counterparties* counterparties_;
95};
96
97
99{
100 return *counterparties_;
101}
102
103}
#define ONIXS_ICEBOE_NAMESPACE_BEGIN
Definition ABI.h:94
#define ONIXS_ICEBOE_NAMESPACE_END
Definition ABI.h:98
#define ONIXS_ICEBOE_EXPORTED
Definition Compiler.h:153
Parameters required to establish the connection with the counterparty.
Counterparty()
Initializes a blank instance.
const Host & host() const noexcept
Counterparty(const Host &host, Port port)
Fully identified counterparty.
Counterparty(const Counterparty &other)
Initializes as clone of the given instance.
SessionConnectionSettings(const Host &host, Port port)
Constructor.
SessionConnectionSettings(const SessionConnectionSettings &other)
SessionConnectionSettings & addCounterparty(const Host &host, Port port)
Adds the counterparty.
std::string Host
Counterparty host name.
unsigned short Port
Counterparty port.
std::vector< Counterparty > Counterparties
Ordered series of counterparties.