OnixS C++ CME MDP Premium Market Data Handler 5.9.0
Users' manual and API documentation
Loading...
Searching...
No Matches
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
55
58void toStr(std::string&, NetFeedType::Enum);
59
61inline std::string toStr(NetFeedType::Enum type)
62{
63 std::string str;
64
65 toStr(str, type);
66
67 return str;
68}
69
72{
74 typedef Char Base;
75
77 enum Enum
78 {
80 A = 'A',
81
83 B = 'B'
84 };
85};
86
88inline void toStr(std::string& str, NetFeedRole::Enum role)
89{
90 str.append(1, static_cast<char>(role));
91}
92
94inline std::string toStr(NetFeedRole::Enum role)
95{
96 return std::string(1, static_cast<char>(role));
97}
98
100typedef std::string NetFeedId;
101
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:67
#define ONIXS_CMEMDH_LTWT
Definition Bootstrap.h:46
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:68
#define ONIXS_CMEMDH_EXPORTED
Definition Compiler.h:171
std::string NetFeedId
The feed identifier.
char Char
Character type alias.
Definition String.h:36
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
Feed roles (primary, secondary).
Enum
List of known feed roles.
@ B
Identifies secondary feed (B).
@ A
Identifies primary feed (A).
Feed types based on type of market data service.
Enum
Feed types based on type of market data service.
@ Snapshot
Market recovery for MBP (Market By Price) books.
@ MboSnapshot
Market recovery for MBO (Market By Order) books.
@ InstrumentCache
Instrument definition cache.
@ Instrument
Instrument recovery.
@ Incremental
Incremental/real-time.