OnixS Eurex ETI Handler C++ library  9.20.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
13  * part of this source code or associated reference material to any other location for further
14  * reproduction or redistribution, and any amendments to this copyright notice, are expressly
15  * 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 #pragma once
22 
24 #include "OnixS/Eurex/Trading/Export.h"
26 
27 #include <string>
28 
29 namespace OnixS { namespace Eurex { namespace Trading {
30 
31 /// Message info.
32 struct ONIXS_EUREX_ETI_EXPORT MessageInfo
33 {
34  ///
35  /// Initialize default instance.
36  ///
37  MessageInfo();
38 
39  /// Message sequence number used by the participant
40  /// for requests sent to the gateway (MsgSeqNum (34)).
41  ///
42  /// Default value is UInt32NoValue.
44 
45  /// Gateway request in (5979) timestamp (UTCTimestamp).
46  ///
47  /// Provides the time the Eurex application has read
48  /// an inbound message on a gateway from the TCP socket.
49  ///
50  /// Default value is UInt64NoValue.
52 
53  /// Gateway response out (52) timestamp (UTCTimestamp).
54  ///
55  /// Date and time, in UTC, represented as nanoseconds
56  /// past the UNIX epoch (00:00:00 UTC on 1 January 1970).
57  ///
58  /// Default value is UInt64NoValue.
60 
61  /// Time when the message was received by Handler (system ticks).
62  ///
63  /// Default value is UInt64NoValue.
65 
66  ///
67  /// Gateway request in timestamp, @see Time.h
68  ///
69  HighResolutionTime requestTime() const;
70 
71  ///
72  /// Gateway response out timestamp, @see Time.h
73  ///
74  HighResolutionTime sendingTime() const;
75 
76  ///
77  /// Time when the message was received by Handler, @see Time.h
78  ///
79  HighResolutionTime receivingTime() const;
80 
81  ///
82  /// Returns string representation.
83  ///
84  std::string toString() const;
85 };
86 
87 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const MessageInfo&);
88 
89 }}} // namespace OnixS::Eurex::Trading
unsigned long long UInt64
Definition: Defines.h:46
unsigned int UInt32
Definition: Defines.h:45
Miscellaneous time traits.
Definition: Time.h:89
std::ostream & operator<<(std::ostream &, const ConnectionStateChange &)
Make it printable to formatted C++ I/O streams.
AbsoluteHighResolutionTimeImpl Timestamp
Alias for raw timestamps.
Definition: Time.h:55