OnixS Eurex ETI Handler C++ library  9.22.0
API documentation
NewsBroadcast.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 
25 #include "OnixS/Eurex/Trading/Export.h"
28 
29 #include <iosfwd>
30 #include <string>
31 
32 namespace OnixS { namespace Eurex { namespace Trading {
33 
34 /// News Broadcast Message.
35 class ONIXS_EUREX_ETI_EXPORT NewsBroadcast : public Message
36 {
37 public:
38  /// Initialize default instance.
39  NewsBroadcast();
40 
41  /// Message sequence number assigned to a non-order related Eurex ETI data stream.
43 
44  /// Unique ID assigned by the Eurex system during broadcast subscription in order to link broadcasts to the related
45  /// subscription.
47 
48  /// Is required to define the scope of a Retransmission Request.
50 
51  /// Indicates a retransmission message.
53 
54  /// Identifier for subscription and retransmission of an ETI data stream.
56 
57  /// Indicates whether this message is the last fragment (part) of a sequence of messages belonging to one dedicated
58  /// transaction.
60 
61  /// Transaction timestamp.
63 
64  /// The headline of a News message.
65  std::string headline;
66 
67  /// Text.
68  std::string varText;
69 
70  /// Returns template ID.
71  TemplateId::Enum templateId() const;
72 
73  /// Returns string representation.
74  std::string toString() const;
75 
76 private:
77  friend class Serializer;
78  NewsBroadcast(const void* data, size_t dataSize, MessageInfo& msgInfo);
79  void nativeSerializeTo(void* nativeMessage);
80 };
81 
82 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const NewsBroadcast&);
83 
84 }}}
Enum
Indicates a retransmission message.
Definition: Enumerations.h:76
UInt64 origTime
Transaction timestamp.
Definition: NewsBroadcast.h:62
ApplId::Enum applId
Identifier for subscription and retransmission of an ETI data stream.
Definition: NewsBroadcast.h:55
unsigned long long UInt64
Definition: Defines.h:46
Message base class.
Definition: Message.h:32
UInt64 applSeqNum
Message sequence number assigned to a non-order related Eurex ETI data stream.
Definition: NewsBroadcast.h:42
ApplResendFlag::Enum applResendFlag
Indicates a retransmission message.
Definition: NewsBroadcast.h:52
unsigned int UInt32
Definition: Defines.h:45
std::ostream & operator<<(std::ostream &, ConnectionState::Enum)
Make it printable using C++ I/O streams.
Enum
Identifier for subscription and retransmission of an ETI data stream.
Definition: Enumerations.h:33
std::string headline
The headline of a News message.
Definition: NewsBroadcast.h:65
News Broadcast Message.
Definition: NewsBroadcast.h:35
UInt16 partitionId
Is required to define the scope of a Retransmission Request.
Definition: NewsBroadcast.h:49
unsigned short UInt16
Definition: Defines.h:44