OnixS C++ MTS Repo SDP Handler  1.3.2.8
API documentation
Enumerations.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
5 *
6 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
7 * and international copyright treaties.
8 *
9 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
10 * Services Agreement (the Agreement) and Customer end user license agreements granting
11 * a non-assignable, non-transferable and non-exclusive license to use the software
12 * for it's own data processing purposes under the terms defined in the Agreement.
13 *
14 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
15 * of this source code or associated reference material to any other location for further reproduction
16 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
17 *
18 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
19 * the terms of the Agreement is a violation of copyright law.
20 */
21 #include <string>
22 
23 #include <OnixS/MTS/Repo/SDP/ABI.h>
24 
25 namespace OnixS {
26 namespace Mts {
27 namespace Repo {
28 namespace SDP {
29 
30 /// TradeImpact services that can be accessed and used by all authorized traders.
31 ///
33 {
34  enum Enum
35  {
36  /// The IP Provider service is a specialized technological service that has the task of managing, allocating and distributing the transport addresses associated with traders.
37  IP_REQUEST = 0,
38 
39  /// The INFO_BRT service broadcasts the following information to all traders requesting it: MTS registry, market registry and public information
40  ///
41  /// @note The classes supported by the INFO_BRT service that can only be subscribed (action requests are not allowed).
42  INFO_BRT = 2,
43 
44  /// The TXN_INFO_PRIV service is the transactional service that supports the classes that may be used by traders to perform typical trading operations, such as: trade on/trade off, proposal insertion/modification and order insertion.
45  ///
46  /// @note The TXN_INFO_PRIV service also supports the classes that a trader may use to receive private information, such as information about trades.
47  TXN_INFO_PRIV = 4,
48 
49  /// The PRESS service.
50  PRESS = 6,
51  };
52 
53  /// Returns string representation.
54  ///
55  static std::string toString (Enum value);
56 };
57 
58 /// Subscribe Types
59 ///
61 {
62  enum Enum
63  {
64  ///
65  All = 0,
66  ///
67  Stop = 1,
68  ///
69  OnTime = 2,
70  };
71 
72  /// Returns string representation.
73  ///
74  static std::string toString (Enum value);
75 };
76 
77 /// Subscribe Start Request Result Types
78 ///
80 {
81  enum Enum
82  {
83  ///
84  SubscribeOk = 0,
85  ///
86  SubscribeKO = 1,
87  ///
88  SubscribeBad = 2,
89  ///
90  SubscribeInvalidFilterId = 3,
91  ///
92  SubscribeInvalidSubMask = 4,
93  ///
94  SubscribeTooManySubscriptionsOpen = 5,
95  ///
96  SubscribeNoFilterSpecified = 6,
97  };
98 
99  /// Returns string representation.
100  ///
101  static std::string toString(Enum value);
102 };
103 
104 
105  struct ActionType
106 {
107  enum Enum
108  {
109  ///
110  Add = 0,
111  ///
112  Del = 1,
113  ///
114  Rwt = 2,
115  ///
116  Kill = 3
117  };
118 };
119 
121 {
122  enum Enum
123  {
124  SAP_TransOk = 0,
125  SAP_TransKO = 1,
126  SAP_TransInvalidTid = 2,
127  };
128 
129  /// Returns string representation.
130  ///
131  static std::string toString (Enum value);
132 };
133 
134 
135 
136 
137 ONIXS_MTS_REPO_SDP_API std::ostream& operator<< (std::ostream& stream, TradeImpactService::Enum value);
138 ONIXS_MTS_REPO_SDP_API std::ostream& operator<< (std::ostream& stream, SubscribeType::Enum value);
139 ONIXS_MTS_REPO_SDP_API std::ostream& operator<< (std::ostream& stream, ActionResult::Enum value);
140 
141 
142 }
143 }
144 }
145 }
146 
std::ostream & operator<<(std::ostream &stream, TradeImpactService::Enum value)
#define ONIXS_MTS_REPO_SDP_API
Definition: ABI.h:49