OnixS C++ MTS Cash SDP Handler  1.6.5
API documentation
SMP.Classes.TI_TRADER.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>
30 
35 
36 
37 namespace OnixS {
38 namespace Mts {
39 namespace Cash {
40 namespace SDP {
41 
42 
43 
44 ///
45 class ONIXS_MTS_CASH_SDP_API TI_TRADER : public Class
46 {
47 public:
49  {
50  traderName.reserve(12);
51  password.reserve(16);
52  firstName.reserve(25);
53  lastName.reserve(25);
54  email.reserve(50);
55  phone.reserve(50);
56  fax.reserve(20);
57  otherInfo.reserve(100);
58  otherInfo2.reserve(100);
59  templateDescription.reserve(36);
60  submitterTraderName.reserve(12);
61  }
62 
63  virtual ~TI_TRADER() {}
64 
65  /// Class id
66  virtual ClassId::Enum id() const
67  {
68  return ClassId::TI_TRADER;
69  }
70 
71 
72  /// Unique ID of the member
74 
75  /// Unique ID of the trader
77 
78  /// Unique name of the trader
79  std::string traderName; // maxSize = 12
80 
81  /// ID of the type of trader under examination
83 
84  /// Unique ID of the trader group (optional) CMF, BV Markets
86 
87  /// Flag indicating whether the trader is active, inactive or deleted. Deleted status is reserverd for future use
89 
90  /// Number of days for which the password is valid (0 - password never expires)
92 
93  /// Date of expiry of the password
95 
96  /// Indicates whether the trader has a fixed or variable communication window size
98 
99  /// Maximum variable communication window size negotiable by the trader
101 
102  /// Date of activation of the trader
104 
105  /// Date of deactivation of the trader (optional)
107 
108  /// Trader's password
109  std::string password; // maxSize = 16
110 
111  /// Flag indicating whether the trader may be represented by Master Multitraders (i.e. traders of multimembers). CMF, BV Markets.
113 
114  /// Flag indicating whether the trader is a Master Multitrader ( i.e. may represent Slave Multitraders). CMF, BV Markets.
116 
117  /// Number of minutes of inactivity after which the client workstation must auto-lock. If it is set to zero, it means that the workstation must never be locked.
119 
120  /// Trader's first name
121  std::string firstName; // maxSize = 25
122 
123  /// Trader's last name
124  std::string lastName; // maxSize = 25
125 
126  /// Trader's email address
127  std::string email; // maxSize = 50
128 
129  /// Trader's phone number(s)
130  std::string phone; // maxSize = 50
131 
132  /// Trader's FAX number(s)
133  std::string fax; // maxSize = 20
134 
135  /// Additional Information
136  std::string otherInfo; // maxSize = 100
137 
138  /// Additional Information (for future use)
139  std::string otherInfo2; // maxSize = 100
140 
141  /// Reserved for future use
143 
144  /// Reserved for future use
145  std::string templateDescription; // maxSize = 36
146 
147  /// Flag indicating whether the trader has been certified by MTS
149 
150  /// Unique ID of the member who defined the trader
152 
153  /// Unique ID of the trader who defined the trader
155 
156  /// Unique name of the trader who defined the trader
157  std::string submitterTraderName; // maxSize = 12
158 
159  /// Date at which the record was created
161 
162  /// Time at which the record was created
164 
165  /// Date at which the record was last updated
167 
168  /// Time at which the record was last updated
170 
171  ///
172  size_t deserialize(const void* buf, size_t inLen);
173 
174  /// Provides string presentation
175  virtual std::string toString () const;
176 
177  ///
178  virtual size_t serializationBufSize() const { return 596; }
179 
180  ///
181  virtual TI_TRADER* clone() const;
182 
183  virtual TI_TRADER* clone(void*) const;
184 
185 private:
186  virtual size_t serialize(void* buf) const;
187 
188 };
189 
190 
191 }
192 }
193 }
194 }
UInt32 submitterMemberId
Unique ID of the member who defined the trader.
unsigned short UInt16
Definition: Defines.h:45
virtual size_t serializationBufSize() const
UInt32 variableWindowSize
Maximum variable communication window size negotiable by the trader.
UInt32 templateId
Reserved for future use.
UInt64 updateTime
Time at which the record was last updated.
std::string fax
Trader&#39;s FAX number(s)
TI_TRADER_ACCOUNT_STATUS::Enum traderAccountStatus
Flag indicating whether the trader is active, inactive or deleted. Deleted status is reserverd for fu...
TI_FLAG::Enum mTSCertifiedFg
Flag indicating whether the trader has been certified by MTS.
UInt32 submitterTraderId
Unique ID of the trader who defined the trader.
std::string submitterTraderName
Unique name of the trader who defined the trader.
std::string traderName
Unique name of the trader.
std::string templateDescription
Reserved for future use.
TI_TRADER_TYPE::Enum traderType
ID of the type of trader under examination.
unsigned long long UInt64
Definition: Defines.h:47
TI_FLAG::Enum multiTraderMasterFg
Flag indicating whether the trader is a Master Multitrader ( i.e. may represent Slave Multitraders)...
UInt32 groupId
Unique ID of the trader group (optional) CMF, BV Markets.
UInt32 creationDate
Date at which the record was created.
std::string otherInfo2
Additional Information (for future use)
std::string email
Trader&#39;s email address.
std::string otherInfo
Additional Information.
TI_FLAG::Enum fixedWindowSizeFlag
Indicates whether the trader has a fixed or variable communication window size.
std::string password
Trader&#39;s password.
unsigned int UInt32
Definition: Defines.h:46
UInt32 startDate
Date of activation of the trader.
UInt32 updateDate
Date at which the record was last updated.
TI_FLAG::Enum multiTraderSlaveFg
Flag indicating whether the trader may be represented by Master Multitraders (i.e. traders of multimembers). CMF, BV Markets.
UInt32 traderId
Unique ID of the trader.
UInt64 creationTime
Time at which the record was created.
std::string firstName
Trader&#39;s first name.
std::string lastName
Trader&#39;s last name.
UInt16 workstationLockTimeout
Number of minutes of inactivity after which the client workstation must auto-lock. If it is set to zero, it means that the workstation must never be locked.
UInt16 passwordExpiryPeriod
Number of days for which the password is valid (0 - password never expires)
UInt32 passwordExpiryDate
Date of expiry of the password.
UInt32 memberId
Unique ID of the member.
virtual ClassId::Enum id() const
Class id.
UInt32 endDate
Date of deactivation of the trader (optional)
std::string phone
Trader&#39;s phone number(s)