OnixS C++ CME MDP Conflated UDP Handler  1.1.2
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 
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.
57 ONIXS_CONFLATEDUDP_EXPORTED
58 void
59 toStr(
60  std::string&,
62 
63 /// Returns string presentation of feed service type.
64 inline
65 std::string
67  NetFeedType::Enum type)
68 {
69  std::string str;
70 
71  toStr(str, type);
72 
73  return str;
74 }
75 
76 /// Feed roles (primary, secondary).
78 {
79  /// Integral base type of enumeration.
80  typedef Char Base;
81 
82  /// List of known feed roles.
83  enum Enum
84  {
85  /// Identifies primary feed (A).
86  A = 'A',
87 
88  /// Identifies secondary feed (B).
89  B = 'B'
90  };
91 };
92 
93 /// Appends string presentation of feed role.
94 inline
95 void
97  std::string& str,
98  NetFeedRole::Enum role)
99 {
100  str.append(
101  1,
102  static_cast<char>(role));
103 }
104 
105 /// Returns string presentation of feed role.
106 inline
107 std::string
109  NetFeedRole::Enum role)
110 {
111  return
112  std::string(
113  1,
114  static_cast<char>(role)
115  );
116 }
117 
118 /// The feed identifier.
119 typedef
120 std::string
122 
Char Base
Integral base type of enumeration.
Enum
Feed types based on type of market data service.
Feed types based on type of market data service.
Market recovery for MBP (Market By Price) books.
Enum
List of known feed roles.
Char Base
Integral base type of enumeration.
char Char
Character type alias.
Definition: String.h:36
#define ONIXS_CONFLATEDUDP_LTWT_STRUCT
Definition: Bootstrap.h:99
std::string toStr(NetFeedRole::Enum role)
Returns string presentation of feed role.
Feed roles (primary, secondary).
std::string NetFeedId
The feed identifier.
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
Definition: Bootstrap.h:157
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
Definition: Bootstrap.h:153