OnixS C++ Cboe CFE Multicast PITCH Market Data Handler  1.10.3
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  };
101  };
102 
103  /// Appends string presentation of object.
104  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, TradeCondition::Enum);
105 
106  /// Returns string presentation of object.
107  inline std::string toStr(TradeCondition::Enum layout)
108  {
109  std::string str;
110 
111  toStr(str, layout);
112 
113  return str;
114  }
115 
116  /// Listing states
118  {
119  /// Integral type used as basement for constants.
120  typedef UInt8 Base;
121 
122  enum Enum
123  {
124  Active = 'A',
125  Inactive = 'I',
126  Test = 'T',
127  };
128  };
129 
130  /// Appends string presentation of object.
131  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, ListingState::Enum);
132 
133  /// Returns string presentation of object.
134  inline std::string toStr(ListingState::Enum layout)
135  {
136  std::string str;
137 
138  toStr(str, layout);
139 
140  return str;
141  }
142 
143  /// Trading Statuses
145  {
146  /// Integral type used as basement for constants.
147  typedef UInt8 Base;
148 
149  enum Enum
150  {
151  Suspended = 'S',
152  Queuing = 'Q',
153  Trading = 'T',
154  Halted = 'H',
155  };
156  };
157 
158  /// Appends string presentation of object.
159  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, TradingStatus::Enum);
160 
161  /// Returns string presentation of object.
162  inline std::string toStr(TradingStatus::Enum layout)
163  {
164  std::string str;
165 
166  toStr(str, layout);
167 
168  return str;
169  }
170 
171  /// Issue Types
172  struct Issue
173  {
174  /// Integral type used as basement for constants.
175  typedef UInt8 Base;
176 
177  enum Enum
178  {
179  PeriodicIndicativeSettlement = 'i',
180  Initial = 'S',
181  Reissued = 'R',
182  IndicativeSettlement = 'I',
183  };
184  };
185 
186  /// Appends string presentation of object.
187  ONIXS_CBOECFE_PITCH_API void toStr(std::string&, Issue::Enum);
188 
189  /// Returns string presentation of object.
190  inline std::string toStr(Issue::Enum layout)
191  {
192  std::string str;
193 
194  toStr(str, layout);
195 
196  return str;
197  }
198 
199  }
200  }
201  }
202 }
203 
204 
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:175
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:147
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:120
ONIXS_CBOECFE_PITCH_API void toStr(std::string &, SideIndicator::Enum)
Appends string presentation of object.