OnixS C++ CME MDP Conflated TCP Handler  1.3.6
API Documentation
MessageSerialization.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 
26 
27 
29 
30 // Market Data Serialization.
31 
32 /// Serializes into a string.
34 void
35 toStr(
36  std::string& str,
37  const Negotiate200& obj);
38 
39 
40 /// Serializes into a string.
41 inline std::string toStr(const Negotiate200& obj)
42 {
43  std::string str;
44 
45  toStr(str, obj);
46 
47  return str;
48 }
49 
50 /// Serializes into a stream.
51 inline
52 std::ostream&
54  std::ostream& stream,
55  const Negotiate200& obj)
56 {
57  std::string str;
58 
59  toStr(str, obj);
60 
61  return stream << str;
62 }
63 
64 inline std::string Negotiate200::toString() const
65 {
66  return toStr(*this);
67 }
68 /// Serializes the object into FIX presentation.
70 void
71 toFix(
72  std::string& str,
73  const Negotiate200& obj);
74 
75 
76 /// Serializes into a string.
78 void
79 toStr(
80  std::string& str,
81  const NegotiationReject201& obj);
82 
83 
84 /// Serializes into a string.
85 inline
86 std::string
88  const NegotiationReject201& obj)
89 {
90  std::string str;
91 
92  toStr(str, obj);
93 
94  return str;
95 }
96 
97 /// Serializes into a stream.
98 inline
99 std::ostream&
101  std::ostream& stream,
102  const NegotiationReject201& obj)
103 {
104  std::string str;
105 
106  toStr(str, obj);
107 
108  return stream << str;
109 }
110 
111 inline std::string NegotiationReject201::toString() const
112 {
113  return toStr(*this);
114 }
115 /// Serializes the object into FIX presentation.
117 void
118 toFix(
119  std::string& str,
120  const NegotiationReject201& obj);
121 
122 
123 /// Serializes into a string.
125 void
126 toStr(
127  std::string& str,
128  const NegotiationResponse202& obj);
129 
130 
131 /// Serializes into a string.
132 inline
133 std::string
135  const NegotiationResponse202& obj)
136 {
137  std::string str;
138 
139  toStr(str, obj);
140 
141  return str;
142 }
143 
144 /// Serializes into a stream.
145 inline
146 std::ostream&
148  std::ostream& stream,
149  const NegotiationResponse202& obj)
150 {
151  std::string str;
152 
153  toStr(str, obj);
154 
155  return stream << str;
156 }
157 
158 inline std::string NegotiationResponse202::toString() const
159 {
160  return toStr(*this);
161 }
162 /// Serializes the object into FIX presentation.
164 void
165 toFix(
166  std::string& str,
167  const NegotiationResponse202& obj);
168 
169 
170 /// Serializes into a string.
172 void
173 toStr(
174  std::string& str,
175  const Terminate203& obj);
176 
177 
178 /// Serializes into a string.
179 inline std::string toStr(const Terminate203& obj)
180 {
181  std::string str;
182 
183  toStr(str, obj);
184 
185  return str;
186 }
187 
188 /// Serializes into a stream.
189 inline
190 std::ostream&
192  std::ostream& stream,
193  const Terminate203& obj)
194 {
195  std::string str;
196 
197  toStr(str, obj);
198 
199  return stream << str;
200 }
201 
202 inline std::string Terminate203::toString() const
203 {
204  return toStr(*this);
205 }
206 /// Serializes the object into FIX presentation.
208 void
209 toFix(
210  std::string& str,
211  const Terminate203& obj);
212 
213 
214 /// Serializes into a string.
216 void
217 toStr(
218  std::string& str,
219  const MarketDataRequest205& obj);
220 
221 
222 /// Serializes into a string.
223 inline
224 std::string
226  const MarketDataRequest205& obj)
227 {
228  std::string str;
229 
230  toStr(str, obj);
231 
232  return str;
233 }
234 
235 /// Serializes into a stream.
236 inline
237 std::ostream&
239  std::ostream& stream,
240  const MarketDataRequest205& obj)
241 {
242  std::string str;
243 
244  toStr(str, obj);
245 
246  return stream << str;
247 }
248 
249 inline std::string MarketDataRequest205::toString() const
250 {
251  return toStr(*this);
252 }
253 /// Serializes the object into FIX presentation.
255 void
256 toFix(
257  std::string& str,
258  const MarketDataRequest205& obj);
259 
260 
261 /// Serializes into a string.
263 void
264 toStr(
265  std::string& str,
267 
268 /// Serializes into a string.
269 inline
270 std::string
273 {
274  std::string str;
275 
276  toStr(str, obj);
277 
278  return str;
279 }
280 
281 /// Serializes into a stream.
282 inline
283 std::ostream&
285  std::ostream& stream,
287 {
288  std::string str;
289 
290  toStr(str, obj);
291 
292  return stream << str;
293 }
294 
295 /// Serializes into a string.
297 void
298 toStr(
299  std::string& str,
301 
302 /// Serializes into a string.
303 inline
304 std::string
307 {
308  std::string str;
309 
310  toStr(str, obj);
311 
312  return str;
313 }
314 
315 /// Serializes into a stream.
316 inline
317 std::ostream&
319  std::ostream& stream,
321 {
322  std::string str;
323 
324  toStr(str, obj);
325 
326  return stream << str;
327 }
328 
329 /// Serializes into a string.
331 void
332 toStr(
333  std::string& str,
334  const RequestAck206& obj);
335 
336 
337 /// Serializes into a string.
338 inline std::string toStr(const RequestAck206& obj)
339 {
340  std::string str;
341 
342  toStr(str, obj);
343 
344  return str;
345 }
346 
347 /// Serializes into a stream.
348 inline
349 std::ostream&
351  std::ostream& stream,
352  const RequestAck206& obj)
353 {
354  std::string str;
355 
356  toStr(str, obj);
357 
358  return stream << str;
359 }
360 
361 inline std::string RequestAck206::toString() const
362 {
363  return toStr(*this);
364 }
365 /// Serializes the object into FIX presentation.
367 void
368 toFix(
369  std::string& str,
370  const RequestAck206& obj);
371 
372 
373 /// Serializes into a string.
375 void
376 toStr(
377  std::string& str,
379 
380 /// Serializes into a string.
381 inline
382 std::string
385 {
386  std::string str;
387 
388  toStr(str, obj);
389 
390  return str;
391 }
392 
393 /// Serializes into a stream.
394 inline
395 std::ostream&
397  std::ostream& stream,
399 {
400  std::string str;
401 
402  toStr(str, obj);
403 
404  return stream << str;
405 }
406 
407 /// Serializes into a string.
409 void
410 toStr(
411  std::string& str,
412  const RequestAck206::RelatedSymEntry& obj);
413 
414 /// Serializes into a string.
415 inline
416 std::string
419 {
420  std::string str;
421 
422  toStr(str, obj);
423 
424  return str;
425 }
426 
427 /// Serializes into a stream.
428 inline
429 std::ostream&
431  std::ostream& stream,
433 {
434  std::string str;
435 
436  toStr(str, obj);
437 
438  return stream << str;
439 }
440 
441 /// Serializes into a string.
443 void
444 toStr(
445  std::string& str,
446  const RequestReject207& obj);
447 
448 
449 /// Serializes into a string.
450 inline
451 std::string
453  const RequestReject207& obj)
454 {
455  std::string str;
456 
457  toStr(str, obj);
458 
459  return str;
460 }
461 
462 /// Serializes into a stream.
463 inline
464 std::ostream&
466  std::ostream& stream,
467  const RequestReject207& obj)
468 {
469  std::string str;
470 
471  toStr(str, obj);
472 
473  return stream << str;
474 }
475 
476 inline std::string RequestReject207::toString() const
477 {
478  return toStr(*this);
479 }
480 /// Serializes the object into FIX presentation.
482 void
483 toFix(
484  std::string& str,
485  const RequestReject207& obj);
486 
487 
488 /// Serializes into a string.
490 void
491 toStr(
492  std::string& str,
493  const SecurityListRequest208& obj);
494 
495 
496 /// Serializes into a string.
497 inline
498 std::string
500  const SecurityListRequest208& obj)
501 {
502  std::string str;
503 
504  toStr(str, obj);
505 
506  return str;
507 }
508 
509 /// Serializes into a stream.
510 inline
511 std::ostream&
513  std::ostream& stream,
514  const SecurityListRequest208& obj)
515 {
516  std::string str;
517 
518  toStr(str, obj);
519 
520  return stream << str;
521 }
522 
523 inline std::string SecurityListRequest208::toString() const
524 {
525  return toStr(*this);
526 }
527 /// Serializes the object into FIX presentation.
529 void
530 toFix(
531  std::string& str,
532  const SecurityListRequest208& obj);
533 
534 
535 /// Serializes into a string.
537 void
538 toStr(
539  std::string& str,
541 
542 /// Serializes into a string.
543 inline
544 std::string
547 {
548  std::string str;
549 
550  toStr(str, obj);
551 
552  return str;
553 }
554 
555 /// Serializes into a stream.
556 inline
557 std::ostream&
559  std::ostream& stream,
561 {
562  std::string str;
563 
564  toStr(str, obj);
565 
566  return stream << str;
567 }
568 
569 /// Serializes into a string.
571 void
572 toStr(
573  std::string& str,
575 
576 /// Serializes into a string.
577 inline
578 std::string
581 {
582  std::string str;
583 
584  toStr(str, obj);
585 
586  return str;
587 }
588 
589 /// Serializes into a stream.
590 inline
591 std::ostream&
593  std::ostream& stream,
595 {
596  std::string str;
597 
598  toStr(str, obj);
599 
600  return stream << str;
601 }
602 
603 /// Serializes into a string.
605 void
606 toStr(
607  std::string& str,
608  const SecurityStatusRequest209& obj);
609 
610 
611 /// Serializes into a string.
612 inline
613 std::string
615  const SecurityStatusRequest209& obj)
616 {
617  std::string str;
618 
619  toStr(str, obj);
620 
621  return str;
622 }
623 
624 /// Serializes into a stream.
625 inline
626 std::ostream&
628  std::ostream& stream,
629  const SecurityStatusRequest209& obj)
630 {
631  std::string str;
632 
633  toStr(str, obj);
634 
635  return stream << str;
636 }
637 
638 inline std::string SecurityStatusRequest209::toString() const
639 {
640  return toStr(*this);
641 }
642 /// Serializes the object into FIX presentation.
644 void
645 toFix(
646  std::string& str,
647  const SecurityStatusRequest209& obj);
648 
649 
650 /// Serializes into a string.
652 void
653 toStr(
654  std::string& str,
656 
657 /// Serializes into a string.
658 inline
659 std::string
662 {
663  std::string str;
664 
665  toStr(str, obj);
666 
667  return str;
668 }
669 
670 /// Serializes into a stream.
671 inline
672 std::ostream&
674  std::ostream& stream,
676 {
677  std::string str;
678 
679  toStr(str, obj);
680 
681  return stream << str;
682 }
683 
684 /// Serializes into a string.
686 void
687 toStr(
688  std::string& str,
690 
691 /// Serializes into a string.
692 inline
693 std::string
696 {
697  std::string str;
698 
699  toStr(str, obj);
700 
701  return str;
702 }
703 
704 /// Serializes into a stream.
705 inline
706 std::ostream&
708  std::ostream& stream,
710 {
711  std::string str;
712 
713  toStr(str, obj);
714 
715  return stream << str;
716 }
717 
718 /// Serializes into a string.
720 void
721 toStr(
722  std::string& str,
723  const SubscriberHeartbeat210& obj);
724 
725 
726 /// Serializes into a string.
727 inline
728 std::string
730  const SubscriberHeartbeat210& obj)
731 {
732  std::string str;
733 
734  toStr(str, obj);
735 
736  return str;
737 }
738 
739 /// Serializes into a stream.
740 inline
741 std::ostream&
743  std::ostream& stream,
744  const SubscriberHeartbeat210& obj)
745 {
746  std::string str;
747 
748  toStr(str, obj);
749 
750  return stream << str;
751 }
752 
753 inline std::string SubscriberHeartbeat210::toString() const
754 {
755  return toStr(*this);
756 }
757 /// Serializes the object into FIX presentation.
759 void
760 toFix(
761  std::string& str,
762  const SubscriberHeartbeat210& obj);
763 
764 
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_END
Definition: ABI.h:143
std::ostream & operator<<(std::ostream &stream, const SubscriberHeartbeat210 &obj)
Serializes into a stream.
void toFix(std::string &str, const SubscriberHeartbeat210 &obj)
Serializes the object into FIX presentation.
#define ONIXS_CONFLATEDTCP_EXPORTED
Definition: Compiler.h:175
Number of SecurityGroups specified in subscription request.
Definition: Messages.h:1250
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_BEGIN
Definition: ABI.h:140
Number of SecurityGroups specified in subscription request.
Definition: Messages.h:2740
Number of SecurityGroups specified in subscription request.
Definition: Messages.h:3343
std::string toStr(const SubscriberHeartbeat210 &obj)
Serializes into a string.