OnixS C++ Cboe CFE Multicast PITCH Market Data Handler  1.12.1
API documentation
Enumerations.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 
24 
25 #include <string>
26 
27 namespace OnixS
28 {
29  namespace CboeCFE
30  {
31  namespace MarketData
32  {
33  namespace Pitch
34  {
35  /// Order sides.
37  {
38  /// Integral type used as basement for constants.
39  typedef UInt8 Base;
40 
41  enum Enum
42  {
43  Buy = 'B',
44  Sell = 'S',
45  };
46  };
47 
48  /// Appends string presentation of object.
49  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, SideIndicator::Enum);
50 
51  /// Returns string presentation of object.
52  inline std::string toStr(SideIndicator::Enum layout)
53  {
54  std::string str;
55 
56  toStr(str, layout);
57 
58  return str;
59  }
60 
61  struct UpdateAction
62  {
63  /// Integral type used as basement for constants.
64  typedef UInt8 Base;
65 
66  enum Enum
67  {
68  Add,
70  Change
71  };
72  };
73 
74  /// Appends string presentation of object.
75  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, UpdateAction::Enum);
76 
77  /// Returns string presentation of object.
78  inline std::string toStr(UpdateAction::Enum layout)
79  {
80  std::string str;
81 
82  toStr(str, layout);
83 
84  return str;
85  }
86 
87  /// Trade Conditions
89  {
90  /// Integral type used as basement for constants.
91  typedef UInt8 Base;
92 
93  enum Enum
94  {
95  NormalTrade = ' ',
96  OpeningTrade = 'O',
97  SpreadTrade = 'S',
98  BlockTrade = 'B',
99  EcrpTrade = 'E',
100  Derived = 'D'
101  };
102  };
103 
104  /// Appends string presentation of object.
105  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, TradeCondition::Enum);
106 
107  /// Returns string presentation of object.
108  inline std::string toStr(TradeCondition::Enum layout)
109  {
110  std::string str;
111 
112  toStr(str, layout);
113 
114  return str;
115  }
116 
117  /// Listing states
119  {
120  /// Integral type used as basement for constants.
121  typedef UInt8 Base;
122 
123  enum Enum
124  {
125  Active = 'A',
126  Inactive = 'I',
127  Test = 'T',
128  };
129  };
130 
131  /// Appends string presentation of object.
132  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, ListingState::Enum);
133 
134  /// Returns string presentation of object.
135  inline std::string toStr(ListingState::Enum layout)
136  {
137  std::string str;
138 
139  toStr(str, layout);
140 
141  return str;
142  }
143 
144  /// Trading Statuses
146  {
147  /// Integral type used as basement for constants.
148  typedef UInt8 Base;
149 
150  enum Enum
151  {
152  Suspended = 'S',
153  Queuing = 'Q',
154  Trading = 'T',
155  Halted = 'H',
156  };
157  };
158 
159  /// Appends string presentation of object.
160  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, TradingStatus::Enum);
161 
162  /// Returns string presentation of object.
163  inline std::string toStr(TradingStatus::Enum layout)
164  {
165  std::string str;
166 
167  toStr(str, layout);
168 
169  return str;
170  }
171 
172  /// Issue Types
173  struct Issue
174  {
175  /// Integral type used as basement for constants.
176  typedef UInt8 Base;
177 
178  enum Enum
179  {
180  PeriodicIndicativeSettlement = 'i',
181  Initial = 'S',
182  Reissued = 'R',
183  IndicativeSettlement = 'I'
184  };
185  };
186 
187  /// Appends string presentation of object.
188  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, Issue::Enum);
189 
190  /// Returns string presentation of object.
191  inline std::string toStr(Issue::Enum layout)
192  {
193  std::string str;
194 
195  toStr(str, layout);
196 
197  return str;
198  }
199 
200  }
201  }
202  }
203 }
204 
205 
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:91
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:64
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:39
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:176
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:148
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:121
ONIXS_CBOECFE_PITCH_API void toStr(std::string &, SideIndicator::Enum)
Appends string presentation of object.