OnixS C++ CME MDP Premium Market Data Handler 5.11.1
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
62void toStr(std::string& str, NetFeedType::Enum type);
63
70{
71 std::string str;
72
73 toStr(str, type);
74
75 return str;
76}
77
80{
83
85 enum Enum
86 {
88 A = 'A',
89
91 B = 'B'
92 };
93};
94
100inline void toStr(std::string& str, NetFeedRole::Enum role)
101{
102 str.append(1, static_cast<char>(role));
103}
104
111{
112 return std::string(1, static_cast<char>(role));
113}
114
116using NetFeedId = std::string;
117
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:69
#define ONIXS_CMEMDH_LTWT
Definition Bootstrap.h:61
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:73
#define ONIXS_CMEMDH_EXPORTED
Definition Compiler.h:163
#define ONIXS_CMEMDH_NODISCARD
Definition Compiler.h:165
char Char
Character type alias.
Definition String.h:30
std::string NetFeedId
Text identifier assigned to a network feed in the channel configuration.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.
Identifies feed A or feed B within a redundant pair.
Enum
Supported feed roles.
@ B
Feed B in the redundant pair.
@ A
Feed A in the redundant pair.
Messaging::Char Base
Integral type used to store or serialize values of Enum.
Identifies a market data source or service.
Enum
Supported market data feed services.
@ Snapshot
Snapshot recovery service for Market by Price books.
@ MboSnapshot
Snapshot recovery service for Market by Order books.
@ InstrumentCache
Instrument definitions read from a local cache.
@ Historical
TCP historical replay service.
@ Instrument
Instrument definition recovery service.
@ Incremental
Incremental real-time market data service.
Messaging::Char Base
Integral type used to store or serialize values of Enum.