OnixS BME SENAF Handler C++ library
2.2.0
API documentation
Home
Contents
Namespaces
Classes
Files
File List
include
OnixS
Senaf
MarketData
MarketSubscription.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/Senaf/MarketData/Export.h>
23
#include <
OnixS/Senaf/MarketData/Enumerations.h
>
24
25
#include <string>
26
27
namespace
OnixS
{
namespace
Senaf {
namespace
MarketData {
28
29
/// Defines market subscription
30
struct
ONIXS_BME_SENAF_EXPORT
MarketSubscription
31
{
32
/**
33
* Subscription name
34
*/
35
std::string
name
;
36
37
/**
38
* Primary host for market
39
*/
40
std::string
primaryHost
;
41
42
/**
43
* Primary port for market
44
*/
45
int
primaryPort
;
46
47
/**
48
* Secondary host for market
49
*/
50
std::string
secondaryHost
;
51
52
/**
53
* Secondary port for market
54
*/
55
int
secondaryPort
;
56
57
/**
58
* User Name.
59
*/
60
std::string
userName
;
61
62
/**
63
* User Password.
64
*/
65
std::string
userPassword
;
66
67
/**
68
* Flow type.
69
*/
70
FlowType::Enum
flowType
;
71
72
/**
73
* Market.
74
*/
75
unsigned
char
market
;
76
77
/**
78
* Reference.
79
*/
80
unsigned
short
reference
;
81
82
/**
83
* Subscription Type.
84
*/
85
unsigned
char
subscriptionType
;
86
87
/**
88
* Accumulative.
89
*/
90
unsigned
char
accumulative
;
91
92
/// Returns string presentation.
93
std::string toString()
const
;
94
95
/// Initializes instance with default values.
96
MarketSubscription
();
97
};
98
99
/// Make it printable to formatted C++ I/O streams.
100
ONIXS_BME_SENAF_EXPORT std::ostream&
operator<<
(std::ostream&,
const
MarketSubscription
&);
101
102
}}}
// namespace MarketData, Senaf, OnixS
OnixS::Senaf::MarketData::MarketSubscription::subscriptionType
unsigned char subscriptionType
Definition:
MarketSubscription.h:85
OnixS::Senaf::MarketData::MarketSubscription::secondaryHost
std::string secondaryHost
Definition:
MarketSubscription.h:50
OnixS::Senaf::MarketData::MarketSubscription::userPassword
std::string userPassword
Definition:
MarketSubscription.h:65
Enumerations.h
OnixS::Senaf::MarketData::MarketSubscription::reference
unsigned short reference
Definition:
MarketSubscription.h:80
OnixS::Senaf::MarketData::MarketSubscription::primaryHost
std::string primaryHost
Definition:
MarketSubscription.h:40
OnixS::Senaf::MarketData::MarketSubscription::userName
std::string userName
Definition:
MarketSubscription.h:60
OnixS
Definition:
Containers.h:24
OnixS::Senaf::MarketData::MarketSubscription::accumulative
unsigned char accumulative
Definition:
MarketSubscription.h:90
OnixS::Senaf::MarketData::operator<<
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
OnixS::Senaf::MarketData::MarketSubscription::secondaryPort
int secondaryPort
Definition:
MarketSubscription.h:55
OnixS::Senaf::MarketData::MarketSubscription::flowType
FlowType::Enum flowType
Definition:
MarketSubscription.h:70
OnixS::Senaf::MarketData::MarketSubscription
Defines market subscription.
Definition:
MarketSubscription.h:30
OnixS::Senaf::MarketData::MarketSubscription::name
std::string name
Definition:
MarketSubscription.h:35
OnixS::Senaf::MarketData::FlowType::Enum
Enum
Flow Type.
Definition:
Enumerations.h:32
OnixS::Senaf::MarketData::MarketSubscription::market
unsigned char market
Definition:
MarketSubscription.h:75
OnixS::Senaf::MarketData::MarketSubscription::primaryPort
int primaryPort
Definition:
MarketSubscription.h:45