OnixS Eurex ETI Handler C++ library  9.11.0
API documentation
MessageInfo.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 
22 #include "OnixS/Eurex/Trading/Export.h"
25 
26 #include <string>
27 
28 namespace OnixS {
29 namespace Eurex {
30 namespace Trading {
31 
32 /// Message info.
33 struct ONIXS_EUREX_ETI_EXPORT MessageInfo
34 {
35  ///
36  /// Initialize default instance.
37  ///
38  MessageInfo();
39 
40  /// Message sequence number used by the participant
41  /// for requests sent to the gateway (MsgSeqNum (34)).
42  ///
43  /// Default value is UInt32NoValue.
45 
46  /// Gateway request in (5979) timestamp (UTCTimestamp).
47  ///
48  /// Provides the time the Eurex application has read
49  /// an inbound message on a gateway from the TCP socket.
50  ///
51  /// Default value is UInt64NoValue.
53 
54  /// Gateway response out (52) timestamp (UTCTimestamp).
55  ///
56  /// Date and time, in UTC, represented as nanoseconds
57  /// past the UNIX epoch (00:00:00 UTC on 1 January 1970).
58  ///
59  /// Default value is UInt64NoValue.
61 
62  /// Time when the message was received by Handler (system ticks).
63  ///
64  /// Default value is UInt64NoValue.
66 
67  ///
68  /// Gateway request in timestamp, @see Time.h
69  ///
70  HighResolutionTime requestTime () const;
71 
72  ///
73  /// Gateway response out timestamp, @see Time.h
74  ///
75  HighResolutionTime sendingTime () const;
76 
77  ///
78  /// Time when the message was received by Handler, @see Time.h
79  ///
80  HighResolutionTime receivingTime () const;
81 
82  ///
83  /// Returns string representation.
84  ///
85  std::string toString() const;
86 };
87 
88 ONIXS_EUREX_ETI_EXPORT std::ostream& operator << (std::ostream&, const MessageInfo&);
89 
90 }
91 }
92 }
std::ostream & operator<<(std::ostream &, const ConnectionRetries &)
unsigned long long UInt64
Definition: Defines.h:47
unsigned int UInt32
Definition: Defines.h:46
Miscellaneous time traits.
Definition: Time.h:91
AbsoluteHighResolutionTimeImpl Timestamp
Alias for raw timestamps.
Definition: Time.h:57