OnixS C++ CME MDP Conflated TCP Handler 1.3.6
API Documentation
Loading...
Searching...
No Matches
Serialization.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 <string>
24
27
29
30// Market Data Serialization.
31
34void
36 std::string& str,
37 ErrorCodes::Enum value);
38
39
41inline std::string toStr(ErrorCodes::Enum value)
42{
43 std::string str;
44
45 toStr(str, value);
46
47 return str;
48}
49
51inline
52std::ostream&
54 std::ostream& stream,
55 ErrorCodes::Enum value)
56{
57 std::string str;
58
59 toStr(str, value);
60
61 return stream << str;
62}
63
65inline
66void
68 std::string& str,
69 ErrorCodes::Enum value)
70{
71 toStr(
72 str,
73 static_cast<ErrorCodes::Base>(value));
74}
75
76
79void
81 std::string& str,
82 ReqRejReason::Enum value);
83
84
86inline std::string toStr(ReqRejReason::Enum value)
87{
88 std::string str;
89
90 toStr(str, value);
91
92 return str;
93}
94
96inline
97std::ostream&
99 std::ostream& stream,
100 ReqRejReason::Enum value)
101{
102 std::string str;
103
104 toStr(str, value);
105
106 return stream << str;
107}
108
110inline
111void
113 std::string& str,
114 ReqRejReason::Enum value)
115{
116 toStr(
117 str,
118 static_cast<ReqRejReason::Base>(value));
119}
120
121
124void
126 std::string& str,
128
129
131inline
132std::string
135{
136 std::string str;
137
138 toStr(str, value);
139
140 return str;
141}
142
144inline
145std::ostream&
147 std::ostream& stream,
149{
150 std::string str;
151
152 toStr(str, value);
153
154 return stream << str;
155}
156
158inline
159void
161 std::string& str,
163{
164 toStr(
165 str,
166 static_cast<RequestIDStatus::Base>(value));
167}
168
169
172void
174 std::string& str,
176
177
179inline
180std::string
183{
184 std::string str;
185
186 toStr(str, value);
187
188 return str;
189}
190
192inline
193std::ostream&
195 std::ostream& stream,
197{
198 std::string str;
199
200 toStr(str, value);
201
202 return stream << str;
203}
204
206inline
207void
209 std::string& str,
211{
212 toStr(
213 str,
214 static_cast<SubscriptionReqType::Base>(value));
215}
216
217
218inline std::string ErrorCodes::toString(ErrorCodes::Enum value)
219{
220 return toStr(value);
221}
222
224{
225 return toStr(value);
226}
227
228inline
229std::string
232{
233 return toStr(value);
234}
235
236inline
237std::string
240{
241 return toStr(value);
242}
243
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_BEGIN
Definition ABI.h:140
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_END
Definition ABI.h:143
#define ONIXS_CONFLATEDTCP_EXPORTED
Definition Compiler.h:175
void toFix(std::string &str, const Negotiate200 &obj)
Serializes the object into FIX presentation.
std::ostream & operator<<(std::ostream &stream, const Negotiate200 &obj)
Serializes into a stream.
void toStr(std::string &str, const Negotiate200 &obj)
Serializes into a string.