OnixS Eurex ETI Handler C++ library  9.21.0
API documentation
HeartbeatNotification.h
Go to the documentation of this file.
1 // This software is owned by Onix Solutions Limited [OnixS] and is protected
2 // by copyright law and international copyright treaties. All rights reserved.
3 
4 #pragma once
5 
8 #include "OnixS/Eurex/Trading/Export.h"
11 
12 #include <iosfwd>
13 #include <string>
14 
15 namespace OnixS { namespace Eurex { namespace Trading {
16 
17 /// Heartbeat Notification Message.
18 class ONIXS_EUREX_ETI_EXPORT HeartbeatNotification : public Message
19 {
20 public:
21  /// Initialize default instance.
23 
24  /// Returns template ID.
25  TemplateId::Enum templateId() const;
26 
27  /// Returns string representation.
28  std::string toString() const;
29 
30 private:
31  friend class Serializer;
32  HeartbeatNotification(const void* data, size_t dataSize, MessageInfo& msgInfo);
33  void nativeSerializeTo(void* nativeMessage);
34 };
35 
36 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const HeartbeatNotification&);
37 
38 }}} // namespace OnixS::Eurex::Trading
Message base class.
Definition: Message.h:32
std::ostream & operator<<(std::ostream &, ConnectionState::Enum)
Make it printable using C++ I/O streams.