OnixS C++ MTS Bond Vision SDP Handler  1.2.0
API documentation
SMP.Classes.BV_TRADE_REGISTRATION.h
Go to the documentation of this file.
1 #pragma once
2 /*
3 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
4 *
5 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
6 * and international copyright treaties.
7 *
8 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
9 * Services Agreement (the Agreement) and Customer end user license agreements granting
10 * a non-assignable, non-transferable and non-exclusive license to use the software
11 * for it's own data processing purposes under the terms defined in the Agreement.
12 *
13 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
14 * of this source code or associated reference material to any other location for further reproduction
15 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
16 *
17 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18 * the terms of the Agreement is a violation of copyright law.
19 */
20 
21 
22 /*
23 --------------
24 GENERATED FILE
25 --------------
26 */
27 
28 
29 #include <string>
38 
39 
40 namespace OnixS {
41 namespace Mts {
42 namespace BondVision {
43 namespace SDP {
44 
45 
46 
47 ///
48 class ONIXS_MTS_BONDVISION_SDP_API BV_TRADE_REGISTRATION : public Class
49 {
50 public:
52  legs(20)
53 
54  {
55  sectionCode.reserve(4);
56  dealerOrderId.reserve(50);
57  originalDealerOrderId.reserve(50);
58  }
59 
61 
62  /// Class id
63  virtual ClassId::Enum id() const
64  {
66  }
67 
68  /// Message Info - unique ID of the Trade Registration
70 
71  /// Section code
72  std::string sectionCode; // maxSize = 4
73 
74  /// Sell Side Member sending the Trade Registration
76 
77  /// Buy Side Member receiving the Trade Registration
79 
80  /// Provider reference ID of the order execution
81  std::string dealerOrderId; // maxSize = 50
82 
83  /// Previous provider reference ID of the order execution
84  std::string originalDealerOrderId; // maxSize = 50
85 
86  /// Number of processed trades
88 
89  /// List of processed trades
90  static const size_t legsSize = 20;
91  std::vector<BV_TRADE_REGISTRATION_LEG_INFO> legs;
92 
93  /// Spread info
95 
96  /// Validity of the Trade Registration
98 
99  /// Duration, in seconds, of the Trade Registration
101 
102  /// Time when the Trade Registration will expire
103  UInt64 timeout; // UTIME presentation
104 
105  /// Action applied to Trade Registration
107 
108  /// Status of the Trade Registration
110 
111  /// Status of the Provider (Sell Side Member)
113 
114  /// Status of the Aggressor (Buy Side Member)
116 
117  /// Last update timestamp
118  UInt64 updateTime; // UTIME presentation
119 
120 
121  ///
122  size_t deserialize(const void* buf, size_t inLen);
123 
124  /// Provides string presentation
125  virtual std::string toString () const;
126 
127  ///
128  virtual size_t serializationBufSize() const { return 27920; }
129 
130  ///
131  virtual BV_TRADE_REGISTRATION* clone() const;
132 
133  virtual BV_TRADE_REGISTRATION* clone(void*) const;
134 
135 private:
136  virtual size_t serialize(void* buf) const;
137 
138 };
139 
140 
141 }
142 }
143 }
144 }
std::string dealerOrderId
Provider reference ID of the order execution.
BV_TRADE_REGISTRATION_GOOD_FOR_TIME::Enum goodForTime
Validity of the Trade Registration.
BV_TRADE_REGISTRATION_MEMBER_INFO aggressor
Buy Side Member receiving the Trade Registration.
BV_TRADE_REGISTRATION_MEMBER_STATUS::Enum aggressorStatus
Status of the Aggressor (Buy Side Member)
std::string originalDealerOrderId
Previous provider reference ID of the order execution.
UInt32 duration
Duration, in seconds, of the Trade Registration.
BV_TRADE_REGISTRATION_MEMBER_INFO provider
Sell Side Member sending the Trade Registration.
TI_MSG_INFO msgInfo
Message Info - unique ID of the Trade Registration.
BV_TRADE_REGISTRATION_STATUS::Enum status
Status of the Trade Registration.
BV_TRADE_REGISTRATION_EVENT::Enum event
Action applied to Trade Registration.
UInt64 timeout
Time when the Trade Registration will expire.
BV_TRADE_REGISTRATION_MEMBER_STATUS::Enum providerStatus
Status of the Provider (Sell Side Member)
unsigned long long UInt64
Definition: Defines.h:47
unsigned short UInt16
Definition: Defines.h:45