OnixS Eurex ETI Handler C++ library
9.20.0
API documentation
Home
Contents
Namespaces
Classes
Files
File List
include
OnixS
Eurex
Trading
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
23
#include "
OnixS/Eurex/Trading/Defines.h
"
24
#include "OnixS/Eurex/Trading/Export.h"
25
#include "
OnixS/Eurex/Trading/Time.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.
43
UInt32
msgSeqNum
;
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.
51
UInt64
rawRequestTime
;
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.
59
UInt64
rawSendingTime
;
60
61
/// Time when the message was received by Handler (system ticks).
62
///
63
/// Default value is UInt64NoValue.
64
Timestamp
rawReceivingTime
;
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
OnixS::Eurex::Trading::UInt64
unsigned long long UInt64
Definition:
Defines.h:46
OnixS::Eurex::Trading::MessageInfo::rawSendingTime
UInt64 rawSendingTime
Definition:
MessageInfo.h:59
Time.h
Defines.h
OnixS
Definition:
AdminListener.h:39
OnixS::Eurex::Trading::MessageInfo::rawReceivingTime
Timestamp rawReceivingTime
Definition:
MessageInfo.h:64
OnixS::Eurex::Trading::MessageInfo::msgSeqNum
UInt32 msgSeqNum
Definition:
MessageInfo.h:43
OnixS::Eurex::Trading::UInt32
unsigned int UInt32
Definition:
Defines.h:45
OnixS::Eurex::Trading::MessageInfo
Message info.
Definition:
MessageInfo.h:32
OnixS::Eurex::Trading::HighResolutionTime
Miscellaneous time traits.
Definition:
Time.h:89
OnixS::Eurex::Trading::operator<<
std::ostream & operator<<(std::ostream &, const ConnectionStateChange &)
Make it printable to formatted C++ I/O streams.
OnixS::Eurex::Trading::MessageInfo::rawRequestTime
UInt64 rawRequestTime
Definition:
MessageInfo.h:51
OnixS::Eurex::Trading::Timestamp
AbsoluteHighResolutionTimeImpl Timestamp
Alias for raw timestamps.
Definition:
Time.h:55