OnixS Eurex ETI Handler C++ library
9.19.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 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"
23
#include "
OnixS/Eurex/Trading/Defines.h
"
24
#include "
OnixS/Eurex/Trading/Time.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.
44
UInt32
msgSeqNum
;
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.
52
UInt64
rawRequestTime
;
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.
60
UInt64
rawSendingTime
;
61
62
/// Time when the message was received by Handler (system ticks).
63
///
64
/// Default value is UInt64NoValue.
65
Timestamp
rawReceivingTime
;
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
}
OnixS::Eurex::Trading::UInt64
unsigned long long UInt64
Definition:
Defines.h:47
OnixS::Eurex::Trading::MessageInfo::rawSendingTime
UInt64 rawSendingTime
Definition:
MessageInfo.h:60
Time.h
Defines.h
OnixS
Definition:
AdminListener.h:36
OnixS::Eurex::Trading::MessageInfo::rawReceivingTime
Timestamp rawReceivingTime
Definition:
MessageInfo.h:65
OnixS::Eurex::Trading::MessageInfo::msgSeqNum
UInt32 msgSeqNum
Definition:
MessageInfo.h:44
OnixS::Eurex::Trading::UInt32
unsigned int UInt32
Definition:
Defines.h:46
OnixS::Eurex::Trading::MessageInfo
Message info.
Definition:
MessageInfo.h:33
OnixS::Eurex::Trading::HighResolutionTime
Miscellaneous time traits.
Definition:
Time.h:91
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:52
OnixS::Eurex::Trading::Timestamp
AbsoluteHighResolutionTimeImpl Timestamp
Alias for raw timestamps.
Definition:
Time.h:57