OnixS BME SENAF Handler C++ library  2.0.1
API documentation
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>
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  */
46 
47  /**
48  * Secondary host for market
49  */
50  std::string secondaryHost;
51 
52  /**
53  * Secondary port for market
54  */
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  */
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.
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
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.