OnixS BME SENAF Handler C++ library  2.2.1
API documentation
OperationConfirmationNotInvolved.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
5  * copyright law and international copyright treaties.
6  *
7  * Access to and use of the software is governed by the terms of the applicable
8  * ONIXS Software Services Agreement (the Agreement) and Customer end user
9  * license agreements granting a non-assignable, non-transferable and
10  * non-exclusive license to use the software for it's own data processing
11  * purposes under the terms defined in the Agreement.
12  *
13  * Except as otherwise granted within the terms of the Agreement, copying or
14  * reproduction of any part of this source code or associated reference material
15  * to any other location for further reproduction or redistribution, and any
16  * amendments to this copyright notice, are expressly prohibited.
17  *
18  * Any reproduction or redistribution for sale or hiring of the Software not in
19  * accordance with the terms of the Agreement is a violation of copyright law.
20  */
21 
22 #pragma once
23 
25 #include <OnixS/Senaf/MarketData/Export.h>
28 
29 #include <iosfwd>
30 #include <string>
31 #include <vector>
32 
33 namespace OnixS { namespace Senaf { namespace MarketData {
34 
35 /// Operation Confirmation. Not Involved.
36 struct ONIXS_BME_SENAF_EXPORT OperationConfirmationNotInvolved
37 {
38  /// Message code.
39  enum
40  {
41  code = 5
42  };
43 
44  /// Default constructor.
46 
47  /// Message Number.
48  unsigned int messageNumber;
49 
50  /// Market.
51  unsigned char market;
52 
53  /// Instrument Type.
55 
56  /// Reference.
57  unsigned short reference;
58 
59  /// Trade Number.
60  unsigned short tradeNumber;
61 
62  /// Captured Trade ID.
63  unsigned short capturedTradeId;
64 
65  /// Confirmation Type.
67 
68  /// Trade Status.
70 
71  /// Trade Date.
73 
74  /// Operation Time.
76 
77  /// Buy (Sell). Hit direction.
79 
80  /// Cash / Term.
82 
83  /// \name Bonds, Strips, Bills, GGB, Corporate New Issues, Cedulas and FROB
84  /// Bonds (001, 002, 003, 009, 010, 011 and 012).
85  //@{
86 
87  /// Bank of Spain Operation Code.
89 
90  /// Unitary Volume.
92 
93  /// Hit Volume.
95 
96  /// Price.
98 
99  /// Yield / Rate.
101 
102  /// Value Date.
104 
105  /// Reference name.
107 
108  /// Issuer.
110 
111  /// ISIN Code or Issuer Code.
113 
114  /// Currency.
116 
117  /// Country.
119 
120  /// CCP.
122 
123  /// Yield calculation.
125 
126  //@}
127 
128  /// \name Treasury Repo MEFE (BME Clearing-Iberclear), Treasury Repo CNET
129  /// (Clearnet-Iberclear), Bilateral Treasury Repo (No CCP-IberClear) and any
130  /// other Repo instrument (Instrument Types 016 until 031 are reserved for
131  /// other possible Repo instruments).
132  //@{
133 
134  /// Delivered volume.
136 
137  /// Repo Rate.
139 
140  /// Purchase Leg Price.
142 
143  /// Term.
145 
146  /// Purchase Leg Value Date.
148 
149  /// Re-purchase Leg Date.
151 
152  /// Delivered reference.
154 
155  //@}
156 
157  /// \name Switches (007)
158  //@{
159 
160  /// Switch Long Name.
162 
163  /// Rate (Switch).
165 
166  /// Leg.
168 
169  //@}
170 
171  /// Returns string representation.
172  std::string toString() const;
173 
174 private:
175  friend class MessageDeserializer;
176  OperationConfirmationNotInvolved(const char* data, size_t dataSize);
177  void deserialize(const char* data, size_t dataSize);
178  void reset();
179 };
180 
181 ONIXS_BME_SENAF_EXPORT std::ostream&
182 operator<<(std::ostream&, const OperationConfirmationNotInvolved&);
183 
184 }}} // namespace OnixS::Senaf::MarketData
Represents date without time component.
Definition: Time.h:313
Optional< unsigned short > bankOfSpainOperationCode
Bank of Spain Operation Code.
Optional< YieldCalculation::Enum > yieldCalculation
Yield calculation.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
Optional< unsigned short > deliveredReference
Delivered reference.