OnixS C++ Tradeweb Approved Publication Arrangement (APA) Handler  1.2.2.18
API documentation
Defines.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 
26 
27 #include <string>
28 #include <ostream>
29 
30 namespace OnixS
31 {
32  namespace Tradeweb
33  {
34  namespace MarketData
35  {
36  namespace Apa
37  {
38  typedef Int8 Integer1;
39  typedef Int16 Integer2;
40  typedef Int32 Integer4;
41  typedef Int64 Integer8;
42 
43  typedef Int64 SInt64;
44  typedef Int32 SInt32;
45 
46  typedef double Double;
47 
48  /// Alias for Sequence Number type.
49  typedef Integer8 SequenceNumber;
50 
51  /// Data source
52  struct ONIXS_TRADEWEB_APA_API DataSource
53  {
54  enum Origin
55  {
56  Multicast = 0,
57  Recovery = 1,
58  };
59 
60  /// Time when the packet was received by Handler from UDP, in system ticks, @see Time.h
62 
63  /// Message sequence number
64  SequenceNumber messageSeqNum;
65 
66  /// Date and Time the message is sent by exchange, UTC Time since epoch (in milliseconds)
68 
69  /// AssetClass (MiFIR Identifier)
71 
72  /// SubAssetClass
74 
75  /// the way data received
77 
78  /// The packet was cached due to incorrect sequence
79  bool cached;
80 
81  std::string toString() const;
82  };
83 
84  ONIXS_TRADEWEB_APA_API std::ostream& operator << (std::ostream& stream, const DataSource& ds);
85  }
86  }
87  }
88 }
89 
SequenceNumber messageSeqNum
Message sequence number.
Definition: Defines.h:64
Represents timestamp without time-zone information.
Definition: Timestamp.h:89
bool cached
The packet was cached due to incorrect sequence.
Definition: Defines.h:79
Integer8 SequenceNumber
Alias for Sequence Number type.
Definition: Defines.h:49
SubAssetClass::Enum subAssetClass
SubAssetClass.
Definition: Defines.h:73
Integer8 packetHeaderTimestamp
Date and Time the message is sent by exchange, UTC Time since epoch (in milliseconds) ...
Definition: Defines.h:67
Origin origin
the way data received
Definition: Defines.h:76
ONIXS_TRADEWEB_APA_API std::ostream & operator<<(std::ostream &stream, const DataSource &ds)
Timestamp packetReceptionTime
Time when the packet was received by Handler from UDP, in system ticks,.
Definition: Defines.h:61
AssetClass::Enum assetClass
AssetClass (MiFIR Identifier)
Definition: Defines.h:70