OnixS C++ CME MDP Premium Market Data Handler  5.8.3
API Documentation
FeedAttributes.h
Go to the documentation of this file.
1 // Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2 //
3 // This software owned by Onix Solutions Limited [OnixS] and is
4 // protected by copyright law and international copyright treaties.
5 //
6 // Access to and use of the software is governed by the terms of the applicable
7 // OnixS Software Services Agreement (the Agreement) and Customer end user license
8 // agreements granting a non-assignable, non-transferable and non-exclusive license
9 // to use the software for it's own data processing purposes under the terms defined
10 // in the Agreement.
11 //
12 // Except as otherwise granted within the terms of the Agreement, copying or
13 // reproduction of any part of this source code or associated reference material
14 // to any other location for further reproduction or redistribution, and any
15 // amendments to this copyright notice, are expressly prohibited.
16 //
17 // Any reproduction or redistribution for sale or hiring of the Software not in
18 // accordance with the terms of the Agreement is a violation of copyright law.
19 //
20 
21 #pragma once
22 
23 #include <OnixS/CME/MDH/String.h>
24 
26 
27 /// Feed types based on type of market data service.
29 {
30  /// Integral base type of enumeration.
31  typedef Char Base;
32 
33  /// Feed types based on type of market data service.
34  enum Enum
35  {
36  /// TCP Replay.
38 
39  /// Incremental/real-time.
41 
42  /// Instrument recovery.
44 
45  /// Instrument definition cache.
47 
48  /// Market recovery for MBP (Market By Price) books.
50 
51  /// Market recovery for MBO (Market By Order) books.
52  MboSnapshot
53  };
54 };
55 
56 /// Appends string presentation of feed service type.
58 void toStr(std::string&, NetFeedType::Enum);
59 
60 /// Returns string presentation of feed service type.
61 inline std::string toStr(NetFeedType::Enum type)
62 {
63  std::string str;
64 
65  toStr(str, type);
66 
67  return str;
68 }
69 
70 /// Feed roles (primary, secondary).
72 {
73  /// Integral base type of enumeration.
74  typedef Char Base;
75 
76  /// List of known feed roles.
77  enum Enum
78  {
79  /// Identifies primary feed (A).
80  A = 'A',
81 
82  /// Identifies secondary feed (B).
83  B = 'B'
84  };
85 };
86 
87 /// Appends string presentation of feed role.
88 inline void toStr(std::string& str, NetFeedRole::Enum role)
89 {
90  str.append(1, static_cast<char>(role));
91 }
92 
93 /// Returns string presentation of feed role.
94 inline std::string toStr(NetFeedRole::Enum role)
95 {
96  return std::string(1, static_cast<char>(role));
97 }
98 
99 /// The feed identifier.
100 typedef std::string NetFeedId;
101 
Feed roles (primary, secondary).
std::string NetFeedId
The feed identifier.
Enum
Feed types based on type of market data service.
#define ONIXS_CMEMDH_LTWT
Definition: Bootstrap.h:46
Market recovery for MBP (Market By Price) books.
char Char
Character type alias.
Definition: String.h:36
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition: Bootstrap.h:67
Char Base
Integral base type of enumeration.
std::string toStr(NetFeedRole::Enum role)
Returns string presentation of feed role.
Enum
List of known feed roles.
#define ONIXS_CMEMDH_EXPORTED
Definition: Compiler.h:135
Feed types based on type of market data service.
Char Base
Integral base type of enumeration.
#define ONIXS_CMEMDH_NAMESPACE_END
Definition: Bootstrap.h:68