OnixS C++ SGX Titan ITCH Market Data Handler  1.2.2
API documentation
Formatting.Messages.h
Go to the documentation of this file.
1 /*
2 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3 *
4 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5 * and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
8 * Services Agreement (the Agreement) and Customer end user license agreements granting
9 * a non-assignable, non-transferable and non-exclusive license to use the software
10 * for it's own data processing purposes under the terms defined in the Agreement.
11 *
12 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13 * of this source code or associated reference material to any other location for further reproduction
14 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15 *
16 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17 * the terms of the Agreement is a violation of copyright law.
18 */
19 
20 #pragma once
21 
22 #include <util/TextBuilder.h>
23 
37 
38 
39 namespace OnixS
40 {
41  namespace Util
42  {
43  inline
44  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::SecondsMsg& msg)
45  {
46  toStr(tb.buffer(), msg);
47  return tb;
48  }
49 
50  inline
51  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::SecondsMsg* msg)
52  {
53  toStr(tb.buffer(), *msg);
54  return tb;
55  }
56 
57  inline
58  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderBookDirectoryMsg& msg)
59  {
60  toStr(tb.buffer(), msg);
61  return tb;
62  }
63 
64  inline
65  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderBookDirectoryMsg* msg)
66  {
67  toStr(tb.buffer(), *msg);
68  return tb;
69  }
70 
71  inline
73  {
74  toStr(tb.buffer(), msg);
75  return tb;
76  }
77 
78  inline
80  {
81  toStr(tb.buffer(), *msg);
82  return tb;
83  }
84 
85  inline
86  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::TickSizeTableEntryMsg& msg)
87  {
88  toStr(tb.buffer(), msg);
89  return tb;
90  }
91 
92  inline
93  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::TickSizeTableEntryMsg* msg)
94  {
95  toStr(tb.buffer(), *msg);
96  return tb;
97  }
98 
99  inline
100  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::SystemEventMsg& msg)
101  {
102  toStr(tb.buffer(), msg);
103  return tb;
104  }
105 
106  inline
107  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::SystemEventMsg* msg)
108  {
109  toStr(tb.buffer(), *msg);
110  return tb;
111  }
112 
113  inline
114  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderBookStateMsg& msg)
115  {
116  toStr(tb.buffer(), msg);
117  return tb;
118  }
119 
120  inline
121  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderBookStateMsg* msg)
122  {
123  toStr(tb.buffer(), *msg);
124  return tb;
125  }
126 
127  inline
128  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::AddOrderMsg& msg)
129  {
130  toStr(tb.buffer(), msg);
131  return tb;
132  }
133 
134  inline
135  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::AddOrderMsg* msg)
136  {
137  toStr(tb.buffer(), *msg);
138  return tb;
139  }
140 
141  inline
142  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderExecutedMsg& msg)
143  {
144  toStr(tb.buffer(), msg);
145  return tb;
146  }
147 
148  inline
149  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderExecutedMsg* msg)
150  {
151  toStr(tb.buffer(), *msg);
152  return tb;
153  }
154 
155  inline
157  {
158  toStr(tb.buffer(), msg);
159  return tb;
160  }
161 
162  inline
164  {
165  toStr(tb.buffer(), *msg);
166  return tb;
167  }
168 
169  inline
170  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderReplaceMsg& msg)
171  {
172  toStr(tb.buffer(), msg);
173  return tb;
174  }
175 
176  inline
177  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderReplaceMsg* msg)
178  {
179  toStr(tb.buffer(), *msg);
180  return tb;
181  }
182 
183  inline
184  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderDeleteMsg& msg)
185  {
186  toStr(tb.buffer(), msg);
187  return tb;
188  }
189 
190  inline
191  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::OrderDeleteMsg* msg)
192  {
193  toStr(tb.buffer(), *msg);
194  return tb;
195  }
196 
197  inline
198  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::TradeMsg& msg)
199  {
200  toStr(tb.buffer(), msg);
201  return tb;
202  }
203 
204  inline
205  TextBuilder& operator<<(TextBuilder& tb, const OnixS::SgxTitan::MarketData::Itch::TradeMsg* msg)
206  {
207  toStr(tb.buffer(), *msg);
208  return tb;
209  }
210 
211  inline
213  {
214  toStr(tb.buffer(), msg);
215  return tb;
216  }
217 
218  inline
220  {
221  toStr(tb.buffer(), *msg);
222  return tb;
223  }
224 
225  }
226 }
TextBuilder & operator<<(TextBuilder &tb, const std::pair< TFirst, TSecond > &obj)
ONIXS_SGXTITAN_ITCH_API void toStr(std::string &, MessageType::Enum)
Appends string presentation of object.