OnixS C++ B3 BOE Binary Order Entry  1.2.0
API Documentation
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 
32 /// Serializes into a string.
34 void
35 toStr(
36  std::string& str,
37  Boolean::Enum value);
38 
39 
40 /// Serializes into a string.
41 inline std::string toStr(Boolean::Enum value)
42 {
43  std::string str;
44 
45  toStr(str, value);
46 
47  return str;
48 }
49 
50 /// Serializes into a stream.
51 inline
52 std::ostream&
54  std::ostream& stream,
55  Boolean::Enum value)
56 {
57  std::string str;
58 
59  toStr(str, value);
60 
61  return stream << str;
62 }
63 
64 /// Serializes the object into FIX presentation.
65 inline
66 void
68  std::string& str,
69  Boolean::Enum value)
70 {
71  toStr(
72  str,
73  static_cast<Boolean::Base>(value));
74 }
75 
76 
77 /// Serializes into a string.
79 void
80 toStr(
81  std::string& str,
82  AllocTransType::Enum value);
83 
84 
85 /// Serializes into a string.
86 inline
87 std::string
90 {
91  std::string str;
92 
93  toStr(str, value);
94 
95  return str;
96 }
97 
98 /// Serializes into a stream.
99 inline
100 std::ostream&
102  std::ostream& stream,
103  AllocTransType::Enum value)
104 {
105  std::string str;
106 
107  toStr(str, value);
108 
109  return stream << str;
110 }
111 
112 /// Serializes the object into FIX presentation.
113 inline
114 void
116  std::string& str,
117  AllocTransType::Enum value)
118 {
119  toStr(
120  str,
121  static_cast<AllocTransType::Base>(value));
122 }
123 
124 
125 /// Serializes into a string.
127 void
128 toStr(
129  std::string& str,
130  AllocReportType::Enum value);
131 
132 
133 /// Serializes into a string.
134 inline
135 std::string
137  AllocReportType::Enum value)
138 {
139  std::string str;
140 
141  toStr(str, value);
142 
143  return str;
144 }
145 
146 /// Serializes into a stream.
147 inline
148 std::ostream&
150  std::ostream& stream,
151  AllocReportType::Enum value)
152 {
153  std::string str;
154 
155  toStr(str, value);
156 
157  return stream << str;
158 }
159 
160 /// Serializes the object into FIX presentation.
161 inline
162 void
164  std::string& str,
165  AllocReportType::Enum value)
166 {
167  toStr(
168  str,
169  static_cast<AllocReportType::Base>(value));
170 }
171 
172 
173 /// Serializes into a string.
175 void
176 toStr(
177  std::string& str,
178  AllocType::Enum value);
179 
180 
181 /// Serializes into a string.
182 inline std::string toStr(AllocType::Enum value)
183 {
184  std::string str;
185 
186  toStr(str, value);
187 
188  return str;
189 }
190 
191 /// Serializes into a stream.
192 inline
193 std::ostream&
195  std::ostream& stream,
196  AllocType::Enum value)
197 {
198  std::string str;
199 
200  toStr(str, value);
201 
202  return stream << str;
203 }
204 
205 /// Serializes the object into FIX presentation.
206 inline
207 void
209  std::string& str,
210  AllocType::Enum value)
211 {
212  toStr(
213  str,
214  static_cast<AllocType::Base>(value));
215 }
216 
217 
218 /// Serializes into a string.
220 void
221 toStr(
222  std::string& str,
224 
225 
226 /// Serializes into a string.
227 inline
228 std::string
231 {
232  std::string str;
233 
234  toStr(str, value);
235 
236  return str;
237 }
238 
239 /// Serializes into a stream.
240 inline
241 std::ostream&
243  std::ostream& stream,
245 {
246  std::string str;
247 
248  toStr(str, value);
249 
250  return stream << str;
251 }
252 
253 /// Serializes the object into FIX presentation.
254 inline
255 void
257  std::string& str,
259 {
260  toStr(
261  str,
262  static_cast<AllocNoOrdersType::Base>(value));
263 }
264 
265 
266 /// Serializes into a string.
268 void
269 toStr(
270  std::string& str,
271  AllocStatus::Enum value);
272 
273 
274 /// Serializes into a string.
275 inline std::string toStr(AllocStatus::Enum value)
276 {
277  std::string str;
278 
279  toStr(str, value);
280 
281  return str;
282 }
283 
284 /// Serializes into a stream.
285 inline
286 std::ostream&
288  std::ostream& stream,
289  AllocStatus::Enum value)
290 {
291  std::string str;
292 
293  toStr(str, value);
294 
295  return stream << str;
296 }
297 
298 /// Serializes the object into FIX presentation.
299 inline
300 void
302  std::string& str,
303  AllocStatus::Enum value)
304 {
305  toStr(
306  str,
307  static_cast<AllocStatus::Base>(value));
308 }
309 
310 
311 /// Serializes into a string.
313 void
314 toStr(
315  std::string& str,
316  QuoteStatus::Enum value);
317 
318 
319 /// Serializes into a string.
320 inline std::string toStr(QuoteStatus::Enum value)
321 {
322  std::string str;
323 
324  toStr(str, value);
325 
326  return str;
327 }
328 
329 /// Serializes into a stream.
330 inline
331 std::ostream&
333  std::ostream& stream,
334  QuoteStatus::Enum value)
335 {
336  std::string str;
337 
338  toStr(str, value);
339 
340  return stream << str;
341 }
342 
343 /// Serializes the object into FIX presentation.
344 inline
345 void
347  std::string& str,
348  QuoteStatus::Enum value)
349 {
350  toStr(
351  str,
352  static_cast<QuoteStatus::Base>(value));
353 }
354 
355 
356 /// Serializes into a string.
358 void
359 toStr(
360  std::string& str,
362 
363 
364 /// Serializes into a string.
365 inline
366 std::string
369 {
370  std::string str;
371 
372  toStr(str, value);
373 
374  return str;
375 }
376 
377 /// Serializes into a stream.
378 inline
379 std::ostream&
381  std::ostream& stream,
383 {
384  std::string str;
385 
386  toStr(str, value);
387 
388  return stream << str;
389 }
390 
391 /// Serializes the object into FIX presentation.
392 inline
393 void
395  std::string& str,
397 {
398  toStr(
399  str,
400  static_cast<QuoteStatusResponseTo::Base>(value));
401 }
402 
403 
404 /// Serializes into a string.
406 void
407 toStr(
408  std::string& str,
409  QuoteCancelType::Enum value);
410 
411 
412 /// Serializes into a string.
413 inline
414 std::string
416  QuoteCancelType::Enum value)
417 {
418  std::string str;
419 
420  toStr(str, value);
421 
422  return str;
423 }
424 
425 /// Serializes into a stream.
426 inline
427 std::ostream&
429  std::ostream& stream,
430  QuoteCancelType::Enum value)
431 {
432  std::string str;
433 
434  toStr(str, value);
435 
436  return stream << str;
437 }
438 
439 /// Serializes the object into FIX presentation.
440 inline
441 void
443  std::string& str,
444  QuoteCancelType::Enum value)
445 {
446  toStr(
447  str,
448  static_cast<QuoteCancelType::Base>(value));
449 }
450 
451 
452 /// Serializes into a string.
454 void
455 toStr(
456  std::string& str,
457  PosType::Enum value);
458 
459 
460 /// Serializes into a string.
461 inline std::string toStr(PosType::Enum value)
462 {
463  std::string str;
464 
465  toStr(str, value);
466 
467  return str;
468 }
469 
470 /// Serializes into a stream.
471 inline
472 std::ostream&
474  std::ostream& stream,
475  PosType::Enum value)
476 {
477  std::string str;
478 
479  toStr(str, value);
480 
481  return stream << str;
482 }
483 
484 /// Serializes the object into FIX presentation.
485 inline
486 void
488  std::string& str,
489  PosType::Enum value)
490 {
491  toStr(
492  str,
493  static_cast<PosType::Base>(value));
494 }
495 
496 
497 /// Serializes into a string.
499 void
500 toStr(
501  std::string& str,
502  MassActionScope::Enum value);
503 
504 
505 /// Serializes into a string.
506 inline
507 std::string
509  MassActionScope::Enum value)
510 {
511  std::string str;
512 
513  toStr(str, value);
514 
515  return str;
516 }
517 
518 /// Serializes into a stream.
519 inline
520 std::ostream&
522  std::ostream& stream,
523  MassActionScope::Enum value)
524 {
525  std::string str;
526 
527  toStr(str, value);
528 
529  return stream << str;
530 }
531 
532 /// Serializes the object into FIX presentation.
533 inline
534 void
536  std::string& str,
537  MassActionScope::Enum value)
538 {
539  toStr(
540  str,
541  static_cast<MassActionScope::Base>(value));
542 }
543 
544 
545 /// Serializes into a string.
547 void
548 toStr(
549  std::string& str,
550  MassActionType::Enum value);
551 
552 
553 /// Serializes into a string.
554 inline
555 std::string
557  MassActionType::Enum value)
558 {
559  std::string str;
560 
561  toStr(str, value);
562 
563  return str;
564 }
565 
566 /// Serializes into a stream.
567 inline
568 std::ostream&
570  std::ostream& stream,
571  MassActionType::Enum value)
572 {
573  std::string str;
574 
575  toStr(str, value);
576 
577  return stream << str;
578 }
579 
580 /// Serializes the object into FIX presentation.
581 inline
582 void
584  std::string& str,
585  MassActionType::Enum value)
586 {
587  toStr(
588  str,
589  static_cast<MassActionType::Base>(value));
590 }
591 
592 
593 /// Serializes into a string.
595 void
596 toStr(
597  std::string& str,
599 
600 
601 /// Serializes into a string.
602 inline
603 std::string
606 {
607  std::string str;
608 
609  toStr(str, value);
610 
611  return str;
612 }
613 
614 /// Serializes into a stream.
615 inline
616 std::ostream&
618  std::ostream& stream,
620 {
621  std::string str;
622 
623  toStr(str, value);
624 
625  return stream << str;
626 }
627 
628 /// Serializes the object into FIX presentation.
629 inline
630 void
632  std::string& str,
634 {
635  toStr(
636  str,
637  static_cast<MassActionResponse::Base>(value));
638 }
639 
640 
641 /// Serializes into a string.
643 void
644 toStr(
645  std::string& str,
647 
648 
649 /// Serializes into a string.
650 inline
651 std::string
654 {
655  std::string str;
656 
657  toStr(str, value);
658 
659  return str;
660 }
661 
662 /// Serializes into a stream.
663 inline
664 std::ostream&
666  std::ostream& stream,
668 {
669  std::string str;
670 
671  toStr(str, value);
672 
673  return stream << str;
674 }
675 
676 /// Serializes the object into FIX presentation.
677 inline
678 void
680  std::string& str,
682 {
683  toStr(
684  str,
685  static_cast<MassActionRejectReason::Base>(value));
686 }
687 
688 
689 /// Serializes into a string.
691 void
692 toStr(
693  std::string& str,
695 
696 
697 /// Serializes into a string.
698 inline
699 std::string
702 {
703  std::string str;
704 
705  toStr(str, value);
706 
707  return str;
708 }
709 
710 /// Serializes into a stream.
711 inline
712 std::ostream&
714  std::ostream& stream,
716 {
717  std::string str;
718 
719  toStr(str, value);
720 
721  return stream << str;
722 }
723 
724 /// Serializes the object into FIX presentation.
725 inline
726 void
728  std::string& str,
730 {
731  toStr(
732  str,
733  static_cast<SecurityResponseType::Base>(value));
734 }
735 
736 
737 /// Serializes into a string.
739 void
740 toStr(
741  std::string& str,
742  PosMaintStatus::Enum value);
743 
744 
745 /// Serializes into a string.
746 inline
747 std::string
749  PosMaintStatus::Enum value)
750 {
751  std::string str;
752 
753  toStr(str, value);
754 
755  return str;
756 }
757 
758 /// Serializes into a stream.
759 inline
760 std::ostream&
762  std::ostream& stream,
763  PosMaintStatus::Enum value)
764 {
765  std::string str;
766 
767  toStr(str, value);
768 
769  return stream << str;
770 }
771 
772 /// Serializes the object into FIX presentation.
773 inline
774 void
776  std::string& str,
777  PosMaintStatus::Enum value)
778 {
779  toStr(
780  str,
781  static_cast<PosMaintStatus::Base>(value));
782 }
783 
784 
785 /// Serializes into a string.
787 void
788 toStr(
789  std::string& str,
791 
792 
793 /// Serializes into a string.
794 inline
795 std::string
798 {
799  std::string str;
800 
801  toStr(str, value);
802 
803  return str;
804 }
805 
806 /// Serializes into a stream.
807 inline
808 std::ostream&
810  std::ostream& stream,
812 {
813  std::string str;
814 
815  toStr(str, value);
816 
817  return stream << str;
818 }
819 
820 /// Serializes the object into FIX presentation.
821 inline
822 void
824  std::string& str,
826 {
827  toStr(
828  str,
829  static_cast<ExecuteUnderlyingTrade::Base>(value));
830 }
831 
832 
833 /// Serializes into a string.
835 void
836 toStr(
837  std::string& str,
838  PosTransType::Enum value);
839 
840 
841 /// Serializes into a string.
842 inline std::string toStr(PosTransType::Enum value)
843 {
844  std::string str;
845 
846  toStr(str, value);
847 
848  return str;
849 }
850 
851 /// Serializes into a stream.
852 inline
853 std::ostream&
855  std::ostream& stream,
856  PosTransType::Enum value)
857 {
858  std::string str;
859 
860  toStr(str, value);
861 
862  return stream << str;
863 }
864 
865 /// Serializes the object into FIX presentation.
866 inline
867 void
869  std::string& str,
870  PosTransType::Enum value)
871 {
872  toStr(
873  str,
874  static_cast<PosTransType::Base>(value));
875 }
876 
877 
878 /// Serializes into a string.
880 void
881 toStr(
882  std::string& str,
883  PosMaintAction::Enum value);
884 
885 
886 /// Serializes into a string.
887 inline
888 std::string
890  PosMaintAction::Enum value)
891 {
892  std::string str;
893 
894  toStr(str, value);
895 
896  return str;
897 }
898 
899 /// Serializes into a stream.
900 inline
901 std::ostream&
903  std::ostream& stream,
904  PosMaintAction::Enum value)
905 {
906  std::string str;
907 
908  toStr(str, value);
909 
910  return stream << str;
911 }
912 
913 /// Serializes the object into FIX presentation.
914 inline
915 void
917  std::string& str,
918  PosMaintAction::Enum value)
919 {
920  toStr(
921  str,
922  static_cast<PosMaintAction::Base>(value));
923 }
924 
925 
926 /// Serializes into a string.
928 void
929 toStr(
930  std::string& str,
931  SettlType::Enum value);
932 
933 
934 /// Serializes into a string.
935 inline std::string toStr(SettlType::Enum value)
936 {
937  std::string str;
938 
939  toStr(str, value);
940 
941  return str;
942 }
943 
944 /// Serializes into a stream.
945 inline
946 std::ostream&
948  std::ostream& stream,
949  SettlType::Enum value)
950 {
951  std::string str;
952 
953  toStr(str, value);
954 
955  return stream << str;
956 }
957 
958 /// Serializes the object into FIX presentation.
959 inline
960 void
962  std::string& str,
963  SettlType::Enum value)
964 {
965  toStr(
966  str,
967  static_cast<SettlType::Base>(value));
968 }
969 
970 
971 /// Serializes into a string.
973 void
974 toStr(
975  std::string& str,
977 
978 
979 /// Serializes into a string.
980 inline
981 std::string
984 {
985  std::string str;
986 
987  toStr(str, value);
988 
989  return str;
990 }
991 
992 /// Serializes into a stream.
993 inline
994 std::ostream&
996  std::ostream& stream,
998 {
999  std::string str;
1000 
1001  toStr(str, value);
1002 
1003  return stream << str;
1004 }
1005 
1006 /// Serializes the object into FIX presentation.
1007 inline
1008 void
1010  std::string& str,
1012 {
1013  toStr(
1014  str,
1015  static_cast<SelfTradePreventionInstruction::Base>(value));
1016 }
1017 
1018 
1019 /// Serializes into a string.
1021 void
1022 toStr(
1023  std::string& str,
1024  TimeUnit::Enum value);
1025 
1026 
1027 /// Serializes into a string.
1028 inline std::string toStr(TimeUnit::Enum value)
1029 {
1030  std::string str;
1031 
1032  toStr(str, value);
1033 
1034  return str;
1035 }
1036 
1037 /// Serializes into a stream.
1038 inline
1039 std::ostream&
1041  std::ostream& stream,
1042  TimeUnit::Enum value)
1043 {
1044  std::string str;
1045 
1046  toStr(str, value);
1047 
1048  return stream << str;
1049 }
1050 
1051 /// Serializes the object into FIX presentation.
1052 inline
1053 void
1055  std::string& str,
1056  TimeUnit::Enum value)
1057 {
1058  toStr(
1059  str,
1060  static_cast<TimeUnit::Base>(value));
1061 }
1062 
1063 
1064 /// Serializes into a string.
1066 void
1067 toStr(
1068  std::string& str,
1069  MessageType::Enum value);
1070 
1071 
1072 /// Serializes into a string.
1073 inline std::string toStr(MessageType::Enum value)
1074 {
1075  std::string str;
1076 
1077  toStr(str, value);
1078 
1079  return str;
1080 }
1081 
1082 /// Serializes into a stream.
1083 inline
1084 std::ostream&
1086  std::ostream& stream,
1087  MessageType::Enum value)
1088 {
1089  std::string str;
1090 
1091  toStr(str, value);
1092 
1093  return stream << str;
1094 }
1095 
1096 /// Serializes the object into FIX presentation.
1097 inline
1098 void
1100  std::string& str,
1101  MessageType::Enum value)
1102 {
1103  toStr(
1104  str,
1105  static_cast<MessageType::Base>(value));
1106 }
1107 
1108 
1109 /// Serializes into a string.
1111 void
1112 toStr(
1113  std::string& str,
1114  FlowType::Enum value);
1115 
1116 
1117 /// Serializes into a string.
1118 inline std::string toStr(FlowType::Enum value)
1119 {
1120  std::string str;
1121 
1122  toStr(str, value);
1123 
1124  return str;
1125 }
1126 
1127 /// Serializes into a stream.
1128 inline
1129 std::ostream&
1131  std::ostream& stream,
1132  FlowType::Enum value)
1133 {
1134  std::string str;
1135 
1136  toStr(str, value);
1137 
1138  return stream << str;
1139 }
1140 
1141 /// Serializes the object into FIX presentation.
1142 inline
1143 void
1145  std::string& str,
1146  FlowType::Enum value)
1147 {
1148  toStr(
1149  str,
1150  static_cast<FlowType::Base>(value));
1151 }
1152 
1153 
1154 /// Serializes into a string.
1156 void
1157 toStr(
1158  std::string& str,
1160 
1161 
1162 /// Serializes into a string.
1163 inline
1164 std::string
1167 {
1168  std::string str;
1169 
1170  toStr(str, value);
1171 
1172  return str;
1173 }
1174 
1175 /// Serializes into a stream.
1176 inline
1177 std::ostream&
1179  std::ostream& stream,
1181 {
1182  std::string str;
1183 
1184  toStr(str, value);
1185 
1186  return stream << str;
1187 }
1188 
1189 /// Serializes the object into FIX presentation.
1190 inline
1191 void
1193  std::string& str,
1195 {
1196  toStr(
1197  str,
1198  static_cast<NegotiationRejectCode::Base>(value));
1199 }
1200 
1201 
1202 /// Serializes into a string.
1204 void
1205 toStr(
1206  std::string& str,
1208 
1209 
1210 /// Serializes into a string.
1211 inline
1212 std::string
1215 {
1216  std::string str;
1217 
1218  toStr(str, value);
1219 
1220  return str;
1221 }
1222 
1223 /// Serializes into a stream.
1224 inline
1225 std::ostream&
1227  std::ostream& stream,
1229 {
1230  std::string str;
1231 
1232  toStr(str, value);
1233 
1234  return stream << str;
1235 }
1236 
1237 /// Serializes the object into FIX presentation.
1238 inline
1239 void
1241  std::string& str,
1243 {
1244  toStr(
1245  str,
1246  static_cast<EstablishRejectCode::Base>(value));
1247 }
1248 
1249 
1250 /// Serializes into a string.
1252 void
1253 toStr(
1254  std::string& str,
1255  TerminationCode::Enum value);
1256 
1257 
1258 /// Serializes into a string.
1259 inline
1260 std::string
1262  TerminationCode::Enum value)
1263 {
1264  std::string str;
1265 
1266  toStr(str, value);
1267 
1268  return str;
1269 }
1270 
1271 /// Serializes into a stream.
1272 inline
1273 std::ostream&
1275  std::ostream& stream,
1276  TerminationCode::Enum value)
1277 {
1278  std::string str;
1279 
1280  toStr(str, value);
1281 
1282  return stream << str;
1283 }
1284 
1285 /// Serializes the object into FIX presentation.
1286 inline
1287 void
1289  std::string& str,
1290  TerminationCode::Enum value)
1291 {
1292  toStr(
1293  str,
1294  static_cast<TerminationCode::Base>(value));
1295 }
1296 
1297 
1298 /// Serializes into a string.
1300 void
1301 toStr(
1302  std::string& str,
1304 
1305 
1306 /// Serializes into a string.
1307 inline
1308 std::string
1311 {
1312  std::string str;
1313 
1314  toStr(str, value);
1315 
1316  return str;
1317 }
1318 
1319 /// Serializes into a stream.
1320 inline
1321 std::ostream&
1323  std::ostream& stream,
1325 {
1326  std::string str;
1327 
1328  toStr(str, value);
1329 
1330  return stream << str;
1331 }
1332 
1333 /// Serializes the object into FIX presentation.
1334 inline
1335 void
1337  std::string& str,
1339 {
1340  toStr(
1341  str,
1342  static_cast<RetransmitRejectCode::Base>(value));
1343 }
1344 
1345 
1346 /// Serializes into a string.
1348 void
1349 toStr(
1350  std::string& str,
1352 
1353 
1354 /// Serializes into a string.
1355 inline
1356 std::string
1359 {
1360  std::string str;
1361 
1362  toStr(str, value);
1363 
1364  return str;
1365 }
1366 
1367 /// Serializes into a stream.
1368 inline
1369 std::ostream&
1371  std::ostream& stream,
1373 {
1374  std::string str;
1375 
1376  toStr(str, value);
1377 
1378  return stream << str;
1379 }
1380 
1381 /// Serializes the object into FIX presentation.
1382 inline
1383 void
1385  std::string& str,
1387 {
1388  toStr(
1389  str,
1390  static_cast<CancelOnDisconnectType::Base>(value));
1391 }
1392 
1393 
1394 /// Serializes into a string.
1396 void
1397 toStr(
1398  std::string& str,
1399  Side::Enum value);
1400 
1401 
1402 /// Serializes into a string.
1403 inline std::string toStr(Side::Enum value)
1404 {
1405  std::string str;
1406 
1407  toStr(str, value);
1408 
1409  return str;
1410 }
1411 
1412 /// Serializes into a stream.
1413 inline
1414 std::ostream&
1416  std::ostream& stream,
1417  Side::Enum value)
1418 {
1419  std::string str;
1420 
1421  toStr(str, value);
1422 
1423  return stream << str;
1424 }
1425 
1426 /// Serializes the object into FIX presentation.
1427 inline
1428 void
1430  std::string& str,
1431  Side::Enum value)
1432 {
1433  toStr(
1434  str,
1435  static_cast<Side::Base>(value));
1436 }
1437 
1438 
1439 /// Serializes into a string.
1441 void
1442 toStr(
1443  std::string& str,
1444  TimeInForce::Enum value);
1445 
1446 
1447 /// Serializes into a string.
1448 inline std::string toStr(TimeInForce::Enum value)
1449 {
1450  std::string str;
1451 
1452  toStr(str, value);
1453 
1454  return str;
1455 }
1456 
1457 /// Serializes into a stream.
1458 inline
1459 std::ostream&
1461  std::ostream& stream,
1462  TimeInForce::Enum value)
1463 {
1464  std::string str;
1465 
1466  toStr(str, value);
1467 
1468  return stream << str;
1469 }
1470 
1471 /// Serializes the object into FIX presentation.
1472 inline
1473 void
1475  std::string& str,
1476  TimeInForce::Enum value)
1477 {
1478  toStr(
1479  str,
1480  static_cast<TimeInForce::Base>(value));
1481 }
1482 
1483 
1484 /// Serializes into a string.
1486 void
1487 toStr(
1488  std::string& str,
1489  SimpleTimeInForce::Enum value);
1490 
1491 
1492 /// Serializes into a string.
1493 inline
1494 std::string
1497 {
1498  std::string str;
1499 
1500  toStr(str, value);
1501 
1502  return str;
1503 }
1504 
1505 /// Serializes into a stream.
1506 inline
1507 std::ostream&
1509  std::ostream& stream,
1511 {
1512  std::string str;
1513 
1514  toStr(str, value);
1515 
1516  return stream << str;
1517 }
1518 
1519 /// Serializes the object into FIX presentation.
1520 inline
1521 void
1523  std::string& str,
1525 {
1526  toStr(
1527  str,
1528  static_cast<SimpleTimeInForce::Base>(value));
1529 }
1530 
1531 
1532 /// Serializes into a string.
1534 void
1535 toStr(
1536  std::string& str,
1537  OrdType::Enum value);
1538 
1539 
1540 /// Serializes into a string.
1541 inline std::string toStr(OrdType::Enum value)
1542 {
1543  std::string str;
1544 
1545  toStr(str, value);
1546 
1547  return str;
1548 }
1549 
1550 /// Serializes into a stream.
1551 inline
1552 std::ostream&
1554  std::ostream& stream,
1555  OrdType::Enum value)
1556 {
1557  std::string str;
1558 
1559  toStr(str, value);
1560 
1561  return stream << str;
1562 }
1563 
1564 /// Serializes the object into FIX presentation.
1565 inline
1566 void
1568  std::string& str,
1569  OrdType::Enum value)
1570 {
1571  toStr(
1572  str,
1573  static_cast<OrdType::Base>(value));
1574 }
1575 
1576 
1577 /// Serializes into a string.
1579 void
1580 toStr(
1581  std::string& str,
1582  SimpleOrdType::Enum value);
1583 
1584 
1585 /// Serializes into a string.
1586 inline
1587 std::string
1589  SimpleOrdType::Enum value)
1590 {
1591  std::string str;
1592 
1593  toStr(str, value);
1594 
1595  return str;
1596 }
1597 
1598 /// Serializes into a stream.
1599 inline
1600 std::ostream&
1602  std::ostream& stream,
1603  SimpleOrdType::Enum value)
1604 {
1605  std::string str;
1606 
1607  toStr(str, value);
1608 
1609  return stream << str;
1610 }
1611 
1612 /// Serializes the object into FIX presentation.
1613 inline
1614 void
1616  std::string& str,
1617  SimpleOrdType::Enum value)
1618 {
1619  toStr(
1620  str,
1621  static_cast<SimpleOrdType::Base>(value));
1622 }
1623 
1624 
1625 /// Serializes into a string.
1627 void
1628 toStr(
1629  std::string& str,
1630  RoutingInstruction::Enum value);
1631 
1632 
1633 /// Serializes into a string.
1634 inline
1635 std::string
1638 {
1639  std::string str;
1640 
1641  toStr(str, value);
1642 
1643  return str;
1644 }
1645 
1646 /// Serializes into a stream.
1647 inline
1648 std::ostream&
1650  std::ostream& stream,
1652 {
1653  std::string str;
1654 
1655  toStr(str, value);
1656 
1657  return stream << str;
1658 }
1659 
1660 /// Serializes the object into FIX presentation.
1661 inline
1662 void
1664  std::string& str,
1666 {
1667  toStr(
1668  str,
1669  static_cast<RoutingInstruction::Base>(value));
1670 }
1671 
1672 
1673 /// Serializes into a string.
1675 void
1676 toStr(
1677  std::string& str,
1678  ExecType::Enum value);
1679 
1680 
1681 /// Serializes into a string.
1682 inline std::string toStr(ExecType::Enum value)
1683 {
1684  std::string str;
1685 
1686  toStr(str, value);
1687 
1688  return str;
1689 }
1690 
1691 /// Serializes into a stream.
1692 inline
1693 std::ostream&
1695  std::ostream& stream,
1696  ExecType::Enum value)
1697 {
1698  std::string str;
1699 
1700  toStr(str, value);
1701 
1702  return stream << str;
1703 }
1704 
1705 /// Serializes the object into FIX presentation.
1706 inline
1707 void
1709  std::string& str,
1710  ExecType::Enum value)
1711 {
1712  toStr(
1713  str,
1714  static_cast<ExecType::Base>(value));
1715 }
1716 
1717 
1718 /// Serializes into a string.
1720 void
1721 toStr(
1722  std::string& str,
1723  OrdStatus::Enum value);
1724 
1725 
1726 /// Serializes into a string.
1727 inline std::string toStr(OrdStatus::Enum value)
1728 {
1729  std::string str;
1730 
1731  toStr(str, value);
1732 
1733  return str;
1734 }
1735 
1736 /// Serializes into a stream.
1737 inline
1738 std::ostream&
1740  std::ostream& stream,
1741  OrdStatus::Enum value)
1742 {
1743  std::string str;
1744 
1745  toStr(str, value);
1746 
1747  return stream << str;
1748 }
1749 
1750 /// Serializes the object into FIX presentation.
1751 inline
1752 void
1754  std::string& str,
1755  OrdStatus::Enum value)
1756 {
1757  toStr(
1758  str,
1759  static_cast<OrdStatus::Base>(value));
1760 }
1761 
1762 
1763 /// Serializes into a string.
1765 void
1766 toStr(
1767  std::string& str,
1769 
1770 
1771 /// Serializes into a string.
1772 inline
1773 std::string
1776 {
1777  std::string str;
1778 
1779  toStr(str, value);
1780 
1781  return str;
1782 }
1783 
1784 /// Serializes into a stream.
1785 inline
1786 std::ostream&
1788  std::ostream& stream,
1790 {
1791  std::string str;
1792 
1793  toStr(str, value);
1794 
1795  return stream << str;
1796 }
1797 
1798 /// Serializes the object into FIX presentation.
1799 inline
1800 void
1802  std::string& str,
1804 {
1805  toStr(
1806  str,
1807  static_cast<ExecRestatementReasonValidForSingleCancel::Base>(value));
1808 }
1809 
1810 
1811 /// Serializes into a string.
1813 void
1814 toStr(
1815  std::string& str,
1817 
1818 
1819 /// Serializes into a string.
1820 inline
1821 std::string
1824 {
1825  std::string str;
1826 
1827  toStr(str, value);
1828 
1829  return str;
1830 }
1831 
1832 /// Serializes into a stream.
1833 inline
1834 std::ostream&
1836  std::ostream& stream,
1838 {
1839  std::string str;
1840 
1841  toStr(str, value);
1842 
1843  return stream << str;
1844 }
1845 
1846 /// Serializes the object into FIX presentation.
1847 inline
1848 void
1850  std::string& str,
1852 {
1853  toStr(
1854  str,
1855  static_cast<ExecRestatementReasonValidForMassCancel::Base>(value));
1856 }
1857 
1858 
1859 /// Serializes into a string.
1861 void
1862 toStr(
1863  std::string& str,
1865 
1866 
1867 /// Serializes into a string.
1868 inline
1869 std::string
1872 {
1873  std::string str;
1874 
1875  toStr(str, value);
1876 
1877  return str;
1878 }
1879 
1880 /// Serializes into a stream.
1881 inline
1882 std::ostream&
1884  std::ostream& stream,
1886 {
1887  std::string str;
1888 
1889  toStr(str, value);
1890 
1891  return stream << str;
1892 }
1893 
1894 /// Serializes the object into FIX presentation.
1895 inline
1896 void
1898  std::string& str,
1900 {
1901  toStr(
1902  str,
1903  static_cast<ExecRestatementReason::Base>(value));
1904 }
1905 
1906 
1907 /// Serializes into a string.
1909 void
1910 toStr(
1911  std::string& str,
1913 
1914 
1915 /// Serializes into a string.
1916 inline
1917 std::string
1920 {
1921  std::string str;
1922 
1923  toStr(str, value);
1924 
1925  return str;
1926 }
1927 
1928 /// Serializes into a stream.
1929 inline
1930 std::ostream&
1932  std::ostream& stream,
1934 {
1935  std::string str;
1936 
1937  toStr(str, value);
1938 
1939  return stream << str;
1940 }
1941 
1942 /// Serializes the object into FIX presentation.
1943 inline
1944 void
1946  std::string& str,
1948 {
1949  toStr(
1950  str,
1951  static_cast<MultiLegReportingType::Base>(value));
1952 }
1953 
1954 
1955 /// Serializes into a string.
1957 void
1958 toStr(
1959  std::string& str,
1960  OrderCategory::Enum value);
1961 
1962 
1963 /// Serializes into a string.
1964 inline
1965 std::string
1967  OrderCategory::Enum value)
1968 {
1969  std::string str;
1970 
1971  toStr(str, value);
1972 
1973  return str;
1974 }
1975 
1976 /// Serializes into a stream.
1977 inline
1978 std::ostream&
1980  std::ostream& stream,
1981  OrderCategory::Enum value)
1982 {
1983  std::string str;
1984 
1985  toStr(str, value);
1986 
1987  return stream << str;
1988 }
1989 
1990 /// Serializes the object into FIX presentation.
1991 inline
1992 void
1994  std::string& str,
1995  OrderCategory::Enum value)
1996 {
1997  toStr(
1998  str,
1999  static_cast<OrderCategory::Base>(value));
2000 }
2001 
2002 
2003 /// Serializes into a string.
2005 void
2006 toStr(
2007  std::string& str,
2008  AccountType::Enum value);
2009 
2010 
2011 /// Serializes into a string.
2012 inline std::string toStr(AccountType::Enum value)
2013 {
2014  std::string str;
2015 
2016  toStr(str, value);
2017 
2018  return str;
2019 }
2020 
2021 /// Serializes into a stream.
2022 inline
2023 std::ostream&
2025  std::ostream& stream,
2026  AccountType::Enum value)
2027 {
2028  std::string str;
2029 
2030  toStr(str, value);
2031 
2032  return stream << str;
2033 }
2034 
2035 /// Serializes the object into FIX presentation.
2036 inline
2037 void
2039  std::string& str,
2040  AccountType::Enum value)
2041 {
2042  toStr(
2043  str,
2044  static_cast<AccountType::Base>(value));
2045 }
2046 
2047 
2048 /// Serializes into a string.
2050 void
2051 toStr(
2052  std::string& str,
2053  CxlRejResponseTo::Enum value);
2054 
2055 
2056 /// Serializes into a string.
2057 inline
2058 std::string
2060  CxlRejResponseTo::Enum value)
2061 {
2062  std::string str;
2063 
2064  toStr(str, value);
2065 
2066  return str;
2067 }
2068 
2069 /// Serializes into a stream.
2070 inline
2071 std::ostream&
2073  std::ostream& stream,
2074  CxlRejResponseTo::Enum value)
2075 {
2076  std::string str;
2077 
2078  toStr(str, value);
2079 
2080  return stream << str;
2081 }
2082 
2083 /// Serializes the object into FIX presentation.
2084 inline
2085 void
2087  std::string& str,
2088  CxlRejResponseTo::Enum value)
2089 {
2090  toStr(
2091  str,
2092  static_cast<CxlRejResponseTo::Base>(value));
2093 }
2094 
2095 
2096 /// Serializes into a string.
2098 void
2099 toStr(
2100  std::string& str,
2101  PossResend::Enum value);
2102 
2103 
2104 /// Serializes into a string.
2105 inline std::string toStr(PossResend::Enum value)
2106 {
2107  std::string str;
2108 
2109  toStr(str, value);
2110 
2111  return str;
2112 }
2113 
2114 /// Serializes into a stream.
2115 inline
2116 std::ostream&
2118  std::ostream& stream,
2119  PossResend::Enum value)
2120 {
2121  std::string str;
2122 
2123  toStr(str, value);
2124 
2125  return stream << str;
2126 }
2127 
2128 /// Serializes the object into FIX presentation.
2129 inline
2130 void
2132  std::string& str,
2133  PossResend::Enum value)
2134 {
2135  toStr(
2136  str,
2137  static_cast<PossResend::Base>(value));
2138 }
2139 
2140 
2141 /// Serializes into a string.
2143 void
2144 toStr(
2145  std::string& str,
2146  SecurityIDSource::Enum value);
2147 
2148 
2149 /// Serializes into a string.
2150 inline
2151 std::string
2153  SecurityIDSource::Enum value)
2154 {
2155  std::string str;
2156 
2157  toStr(str, value);
2158 
2159  return str;
2160 }
2161 
2162 /// Serializes into a stream.
2163 inline
2164 std::ostream&
2166  std::ostream& stream,
2167  SecurityIDSource::Enum value)
2168 {
2169  std::string str;
2170 
2171  toStr(str, value);
2172 
2173  return stream << str;
2174 }
2175 
2176 /// Serializes the object into FIX presentation.
2177 inline
2178 void
2180  std::string& str,
2181  SecurityIDSource::Enum value)
2182 {
2183  toStr(
2184  str,
2185  static_cast<SecurityIDSource::Base>(value));
2186 }
2187 
2188 
2189 /// Serializes into a string.
2191 void
2192 toStr(
2193  std::string& str,
2194  CrossedIndicator::Enum value);
2195 
2196 
2197 /// Serializes into a string.
2198 inline
2199 std::string
2201  CrossedIndicator::Enum value)
2202 {
2203  std::string str;
2204 
2205  toStr(str, value);
2206 
2207  return str;
2208 }
2209 
2210 /// Serializes into a stream.
2211 inline
2212 std::ostream&
2214  std::ostream& stream,
2215  CrossedIndicator::Enum value)
2216 {
2217  std::string str;
2218 
2219  toStr(str, value);
2220 
2221  return stream << str;
2222 }
2223 
2224 /// Serializes the object into FIX presentation.
2225 inline
2226 void
2228  std::string& str,
2229  CrossedIndicator::Enum value)
2230 {
2231  toStr(
2232  str,
2233  static_cast<CrossedIndicator::Base>(value));
2234 }
2235 
2236 
2237 /// Serializes into a string.
2239 void
2240 toStr(
2241  std::string& str,
2242  TradingSessionID::Enum value);
2243 
2244 
2245 /// Serializes into a string.
2246 inline
2247 std::string
2249  TradingSessionID::Enum value)
2250 {
2251  std::string str;
2252 
2253  toStr(str, value);
2254 
2255  return str;
2256 }
2257 
2258 /// Serializes into a stream.
2259 inline
2260 std::ostream&
2262  std::ostream& stream,
2263  TradingSessionID::Enum value)
2264 {
2265  std::string str;
2266 
2267  toStr(str, value);
2268 
2269  return stream << str;
2270 }
2271 
2272 /// Serializes the object into FIX presentation.
2273 inline
2274 void
2276  std::string& str,
2277  TradingSessionID::Enum value)
2278 {
2279  toStr(
2280  str,
2281  static_cast<TradingSessionID::Base>(value));
2282 }
2283 
2284 
2285 /// Serializes into a string.
2287 void
2288 toStr(
2289  std::string& str,
2291 
2292 
2293 /// Serializes into a string.
2294 inline
2295 std::string
2298 {
2299  std::string str;
2300 
2301  toStr(str, value);
2302 
2303  return str;
2304 }
2305 
2306 /// Serializes into a stream.
2307 inline
2308 std::ostream&
2310  std::ostream& stream,
2312 {
2313  std::string str;
2314 
2315  toStr(str, value);
2316 
2317  return stream << str;
2318 }
2319 
2320 /// Serializes the object into FIX presentation.
2321 inline
2322 void
2324  std::string& str,
2326 {
2327  toStr(
2328  str,
2329  static_cast<TradingSessionSubID::Base>(value));
2330 }
2331 
2332 
2333 /// Serializes into a string.
2335 void
2336 toStr(
2337  std::string& str,
2339 
2340 
2341 /// Serializes into a string.
2342 inline
2343 std::string
2346 {
2347  std::string str;
2348 
2349  toStr(str, value);
2350 
2351  return str;
2352 }
2353 
2354 /// Serializes into a stream.
2355 inline
2356 std::ostream&
2358  std::ostream& stream,
2360 {
2361  std::string str;
2362 
2363  toStr(str, value);
2364 
2365  return stream << str;
2366 }
2367 
2368 /// Serializes the object into FIX presentation.
2369 inline
2370 void
2372  std::string& str,
2374 {
2375  toStr(
2376  str,
2377  static_cast<SecurityTradingStatus::Base>(value));
2378 }
2379 
2380 
2381 /// Serializes into a string.
2383 void
2384 toStr(
2385  std::string& str,
2386  CrossType::Enum value);
2387 
2388 
2389 /// Serializes into a string.
2390 inline std::string toStr(CrossType::Enum value)
2391 {
2392  std::string str;
2393 
2394  toStr(str, value);
2395 
2396  return str;
2397 }
2398 
2399 /// Serializes into a stream.
2400 inline
2401 std::ostream&
2403  std::ostream& stream,
2404  CrossType::Enum value)
2405 {
2406  std::string str;
2407 
2408  toStr(str, value);
2409 
2410  return stream << str;
2411 }
2412 
2413 /// Serializes the object into FIX presentation.
2414 inline
2415 void
2417  std::string& str,
2418  CrossType::Enum value)
2419 {
2420  toStr(
2421  str,
2422  static_cast<CrossType::Base>(value));
2423 }
2424 
2425 
2426 /// Serializes into a string.
2428 void
2429 toStr(
2430  std::string& str,
2432 
2433 
2434 /// Serializes into a string.
2435 inline
2436 std::string
2439 {
2440  std::string str;
2441 
2442  toStr(str, value);
2443 
2444  return str;
2445 }
2446 
2447 /// Serializes into a stream.
2448 inline
2449 std::ostream&
2451  std::ostream& stream,
2453 {
2454  std::string str;
2455 
2456  toStr(str, value);
2457 
2458  return stream << str;
2459 }
2460 
2461 /// Serializes the object into FIX presentation.
2462 inline
2463 void
2465  std::string& str,
2467 {
2468  toStr(
2469  str,
2470  static_cast<CrossPrioritization::Base>(value));
2471 }
2472 
2473 
2474 /// Serializes into a string.
2476 void
2477 toStr(
2478  std::string& str,
2479  const GroupSizeEncoding& obj);
2480 
2481 
2482 /// Serializes into a string.
2483 inline
2484 std::string
2486  const GroupSizeEncoding& obj)
2487 {
2488  std::string str;
2489 
2490  toStr(str, obj);
2491 
2492  return str;
2493 }
2494 
2495 /// Serializes into a stream.
2496 inline
2497 std::ostream&
2499  std::ostream& stream,
2500  const GroupSizeEncoding& obj)
2501 {
2502  std::string str;
2503 
2504  toStr(str, obj);
2505 
2506  return stream << str;
2507 }
2508 
2509 
2510 /// Serializes into a string.
2512 void
2513 toStr(
2514  std::string& str,
2515  const PriceOffsetOptional& obj);
2516 
2517 
2518 /// Serializes into a string.
2519 inline
2520 std::string
2522  const PriceOffsetOptional& obj)
2523 {
2524  std::string str;
2525 
2526  toStr(str, obj);
2527 
2528  return str;
2529 }
2530 
2531 /// Serializes into a stream.
2532 inline
2533 std::ostream&
2535  std::ostream& stream,
2536  const PriceOffsetOptional& obj)
2537 {
2538  std::string str;
2539 
2540  toStr(str, obj);
2541 
2542  return stream << str;
2543 }
2544 
2545 
2546 /// Serializes into a string.
2548 void
2549 toStr(
2550  std::string& str,
2551  const Percentage8Optional& obj);
2552 
2553 
2554 /// Serializes into a string.
2555 inline
2556 std::string
2558  const Percentage8Optional& obj)
2559 {
2560  std::string str;
2561 
2562  toStr(str, obj);
2563 
2564  return str;
2565 }
2566 
2567 /// Serializes into a stream.
2568 inline
2569 std::ostream&
2571  std::ostream& stream,
2572  const Percentage8Optional& obj)
2573 {
2574  std::string str;
2575 
2576  toStr(str, obj);
2577 
2578  return stream << str;
2579 }
2580 
2581 
2582 /// Serializes into a string.
2584 void
2585 toStr(
2586  std::string& str,
2587  const RatioQty& obj);
2588 
2589 
2590 /// Serializes into a string.
2591 inline std::string toStr(const RatioQty& obj)
2592 {
2593  std::string str;
2594 
2595  toStr(str, obj);
2596 
2597  return str;
2598 }
2599 
2600 /// Serializes into a stream.
2601 inline
2602 std::ostream&
2604  std::ostream& stream,
2605  const RatioQty& obj)
2606 {
2607  std::string str;
2608 
2609  toStr(str, obj);
2610 
2611  return stream << str;
2612 }
2613 
2614 
2615 /// Serializes into a string.
2617 void
2618 toStr(
2619  std::string& str,
2620  const UTCTimestampNanos& obj);
2621 
2622 
2623 /// Serializes into a string.
2624 inline
2625 std::string
2627  const UTCTimestampNanos& obj)
2628 {
2629  std::string str;
2630 
2631  toStr(str, obj);
2632 
2633  return str;
2634 }
2635 
2636 /// Serializes into a stream.
2637 inline
2638 std::ostream&
2640  std::ostream& stream,
2641  const UTCTimestampNanos& obj)
2642 {
2643  std::string str;
2644 
2645  toStr(str, obj);
2646 
2647  return stream << str;
2648 }
2649 
2650 
2651 /// Serializes into a string.
2653 void
2654 toStr(
2655  std::string& str,
2656  const UTCTimestampNanosOptional& obj);
2657 
2658 
2659 /// Serializes into a string.
2660 inline
2661 std::string
2663  const UTCTimestampNanosOptional& obj)
2664 {
2665  std::string str;
2666 
2667  toStr(str, obj);
2668 
2669  return str;
2670 }
2671 
2672 /// Serializes into a stream.
2673 inline
2674 std::ostream&
2676  std::ostream& stream,
2677  const UTCTimestampNanosOptional& obj)
2678 {
2679  std::string str;
2680 
2681  toStr(str, obj);
2682 
2683  return stream << str;
2684 }
2685 
2686 
2687 /// Serializes into a string.
2689 void
2690 toStr(
2691  std::string& str,
2692  const DeltaInMillis& obj);
2693 
2694 
2695 /// Serializes into a string.
2696 inline std::string toStr(const DeltaInMillis& obj)
2697 {
2698  std::string str;
2699 
2700  toStr(str, obj);
2701 
2702  return str;
2703 }
2704 
2705 /// Serializes into a stream.
2706 inline
2707 std::ostream&
2709  std::ostream& stream,
2710  const DeltaInMillis& obj)
2711 {
2712  std::string str;
2713 
2714  toStr(str, obj);
2715 
2716  return stream << str;
2717 }
2718 
2719 
2720 /// Serializes into a string.
2722 void
2723 toStr(
2724  std::string& str,
2725  const CredentialsEncoding& obj);
2726 
2727 
2728 /// Serializes into a string.
2729 inline
2730 std::string
2732  const CredentialsEncoding& obj)
2733 {
2734  std::string str;
2735 
2736  toStr(str, obj);
2737 
2738  return str;
2739 }
2740 
2741 /// Serializes into a stream.
2742 inline
2743 std::ostream&
2745  std::ostream& stream,
2746  const CredentialsEncoding& obj)
2747 {
2748  std::string str;
2749 
2750  toStr(str, obj);
2751 
2752  return stream << str;
2753 }
2754 
2755 
2756 /// Serializes into a string.
2758 void
2759 toStr(
2760  std::string& str,
2761  const MemoEncoding& obj);
2762 
2763 
2764 /// Serializes into a string.
2765 inline std::string toStr(const MemoEncoding& obj)
2766 {
2767  std::string str;
2768 
2769  toStr(str, obj);
2770 
2771  return str;
2772 }
2773 
2774 /// Serializes into a stream.
2775 inline
2776 std::ostream&
2778  std::ostream& stream,
2779  const MemoEncoding& obj)
2780 {
2781  std::string str;
2782 
2783  toStr(str, obj);
2784 
2785  return stream << str;
2786 }
2787 
2788 
2789 /// Serializes into a string.
2791 void
2792 toStr(
2793  std::string& str,
2794  const TextEncoding& obj);
2795 
2796 
2797 /// Serializes into a string.
2798 inline std::string toStr(const TextEncoding& obj)
2799 {
2800  std::string str;
2801 
2802  toStr(str, obj);
2803 
2804  return str;
2805 }
2806 
2807 /// Serializes into a stream.
2808 inline
2809 std::ostream&
2811  std::ostream& stream,
2812  const TextEncoding& obj)
2813 {
2814  std::string str;
2815 
2816  toStr(str, obj);
2817 
2818  return stream << str;
2819 }
2820 
2821 
2822 /// Serializes into a string.
2824 void
2825 toStr(
2826  std::string& str,
2827  const DeskIDEncoding& obj);
2828 
2829 
2830 /// Serializes into a string.
2831 inline
2832 std::string
2834  const DeskIDEncoding& obj)
2835 {
2836  std::string str;
2837 
2838  toStr(str, obj);
2839 
2840  return str;
2841 }
2842 
2843 /// Serializes into a stream.
2844 inline
2845 std::ostream&
2847  std::ostream& stream,
2848  const DeskIDEncoding& obj)
2849 {
2850  std::string str;
2851 
2852  toStr(str, obj);
2853 
2854  return stream << str;
2855 }
2856 
2857 
2858 /// Serializes into a string.
2860 void
2861 toStr(
2862  std::string& str,
2863  const ClientAppEncoding& obj);
2864 
2865 
2866 /// Serializes into a string.
2867 inline
2868 std::string
2870  const ClientAppEncoding& obj)
2871 {
2872  std::string str;
2873 
2874  toStr(str, obj);
2875 
2876  return str;
2877 }
2878 
2879 /// Serializes into a stream.
2880 inline
2881 std::ostream&
2883  std::ostream& stream,
2884  const ClientAppEncoding& obj)
2885 {
2886  std::string str;
2887 
2888  toStr(str, obj);
2889 
2890  return stream << str;
2891 }
2892 
2893 
2894 /// Serializes into a string.
2896 void
2897 toStr(
2898  std::string& str,
2899  const CustodianInfo& obj);
2900 
2901 
2902 /// Serializes into a string.
2903 inline std::string toStr(const CustodianInfo& obj)
2904 {
2905  std::string str;
2906 
2907  toStr(str, obj);
2908 
2909  return str;
2910 }
2911 
2912 /// Serializes into a stream.
2913 inline
2914 std::ostream&
2916  std::ostream& stream,
2917  const CustodianInfo& obj)
2918 {
2919  std::string str;
2920 
2921  toStr(str, obj);
2922 
2923  return stream << str;
2924 }
2925 
2926 
2927 /// Serializes into a string.
2929 void
2930 toStr(
2931  std::string& str,
2932  const InboundBusinessHeader& obj);
2933 
2934 
2935 /// Serializes into a string.
2936 inline
2937 std::string
2939  const InboundBusinessHeader& obj)
2940 {
2941  std::string str;
2942 
2943  toStr(str, obj);
2944 
2945  return str;
2946 }
2947 
2948 /// Serializes into a stream.
2949 inline
2950 std::ostream&
2952  std::ostream& stream,
2953  const InboundBusinessHeader& obj)
2954 {
2955  std::string str;
2956 
2957  toStr(str, obj);
2958 
2959  return stream << str;
2960 }
2961 
2962 
2963 /// Serializes into a string.
2965 void
2966 toStr(
2967  std::string& str,
2968  const OutboundBusinessHeader& obj);
2969 
2970 
2971 /// Serializes into a string.
2972 inline
2973 std::string
2975  const OutboundBusinessHeader& obj)
2976 {
2977  std::string str;
2978 
2979  toStr(str, obj);
2980 
2981  return str;
2982 }
2983 
2984 /// Serializes into a stream.
2985 inline
2986 std::ostream&
2988  std::ostream& stream,
2989  const OutboundBusinessHeader& obj)
2990 {
2991  std::string str;
2992 
2993  toStr(str, obj);
2994 
2995  return stream << str;
2996 }
2997 
2998 
2999 /// Serializes into a string.
3001 void
3002 toStr(
3003  std::string& str,
3004  const BidirectionalBusinessHeader& obj);
3005 
3006 
3007 /// Serializes into a string.
3008 inline
3009 std::string
3011  const BidirectionalBusinessHeader& obj)
3012 {
3013  std::string str;
3014 
3015  toStr(str, obj);
3016 
3017  return str;
3018 }
3019 
3020 /// Serializes into a stream.
3021 inline
3022 std::ostream&
3024  std::ostream& stream,
3025  const BidirectionalBusinessHeader& obj)
3026 {
3027  std::string str;
3028 
3029  toStr(str, obj);
3030 
3031  return stream << str;
3032 }
3033 
3034 
3035 /// Serializes into a string.
3037 void
3038 toStr(
3039  std::string& str,
3040  const InvestorID& obj);
3041 
3042 
3043 /// Serializes into a string.
3044 inline std::string toStr(const InvestorID& obj)
3045 {
3046  std::string str;
3047 
3048  toStr(str, obj);
3049 
3050  return str;
3051 }
3052 
3053 /// Serializes into a stream.
3054 inline
3055 std::ostream&
3057  std::ostream& stream,
3058  const InvestorID& obj)
3059 {
3060  std::string str;
3061 
3062  toStr(str, obj);
3063 
3064  return stream << str;
3065 }
3066 
3067 
3068 inline std::string GroupSizeEncoding::toString() const
3069 {
3070  return toStr(*this);
3071 }
3072 
3073 inline std::string UTCTimestampNanos::toString() const
3074 {
3075  return toStr(*this);
3076 }
3077 
3078 inline std::string UTCTimestampNanosOptional::toString() const
3079 {
3080  return toStr(*this);
3081 }
3082 
3083 inline std::string DeltaInMillis::toString() const
3084 {
3085  return toStr(*this);
3086 }
3087 
3088 inline std::string CredentialsEncoding::toString() const
3089 {
3090  return toStr(*this);
3091 }
3092 
3093 inline std::string MemoEncoding::toString() const
3094 {
3095  return toStr(*this);
3096 }
3097 
3098 inline std::string TextEncoding::toString() const
3099 {
3100  return toStr(*this);
3101 }
3102 
3103 inline std::string DeskIDEncoding::toString() const
3104 {
3105  return toStr(*this);
3106 }
3107 
3108 inline std::string ClientAppEncoding::toString() const
3109 {
3110  return toStr(*this);
3111 }
3112 
3113 inline std::string CustodianInfo::toString() const
3114 {
3115  return toStr(*this);
3116 }
3117 
3118 inline std::string InboundBusinessHeader::toString() const
3119 {
3120  return toStr(*this);
3121 }
3122 
3123 inline std::string OutboundBusinessHeader::toString() const
3124 {
3125  return toStr(*this);
3126 }
3127 
3128 inline std::string BidirectionalBusinessHeader::toString() const
3129 {
3130  return toStr(*this);
3131 }
3132 
3133 inline std::string InvestorID::toString() const
3134 {
3135  return toStr(*this);
3136 }
3137 
3138 inline std::string Boolean::toString(Boolean::Enum value)
3139 {
3140  return toStr(value);
3141 }
3142 
3143 inline
3144 std::string
3145 AllocTransType::toString(
3146  AllocTransType::Enum value)
3147 {
3148  return toStr(value);
3149 }
3150 
3151 inline
3152 std::string
3153 AllocReportType::toString(
3154  AllocReportType::Enum value)
3155 {
3156  return toStr(value);
3157 }
3158 
3159 inline std::string AllocType::toString(AllocType::Enum value)
3160 {
3161  return toStr(value);
3162 }
3163 
3164 inline
3165 std::string
3166 AllocNoOrdersType::toString(
3168 {
3169  return toStr(value);
3170 }
3171 
3172 inline std::string AllocStatus::toString(AllocStatus::Enum value)
3173 {
3174  return toStr(value);
3175 }
3176 
3177 inline std::string QuoteStatus::toString(QuoteStatus::Enum value)
3178 {
3179  return toStr(value);
3180 }
3181 
3182 inline
3183 std::string
3184 QuoteStatusResponseTo::toString(
3186 {
3187  return toStr(value);
3188 }
3189 
3190 inline
3191 std::string
3192 QuoteCancelType::toString(
3193  QuoteCancelType::Enum value)
3194 {
3195  return toStr(value);
3196 }
3197 
3198 inline std::string PosType::toString(PosType::Enum value)
3199 {
3200  return toStr(value);
3201 }
3202 
3203 inline
3204 std::string
3205 MassActionScope::toString(
3206  MassActionScope::Enum value)
3207 {
3208  return toStr(value);
3209 }
3210 
3211 inline
3212 std::string
3213 MassActionType::toString(
3214  MassActionType::Enum value)
3215 {
3216  return toStr(value);
3217 }
3218 
3219 inline
3220 std::string
3221 MassActionResponse::toString(
3223 {
3224  return toStr(value);
3225 }
3226 
3227 inline
3228 std::string
3229 MassActionRejectReason::toString(
3231 {
3232  return toStr(value);
3233 }
3234 
3235 inline
3236 std::string
3237 SecurityResponseType::toString(
3239 {
3240  return toStr(value);
3241 }
3242 
3243 inline
3244 std::string
3245 PosMaintStatus::toString(
3246  PosMaintStatus::Enum value)
3247 {
3248  return toStr(value);
3249 }
3250 
3251 inline
3252 std::string
3253 ExecuteUnderlyingTrade::toString(
3255 {
3256  return toStr(value);
3257 }
3258 
3259 inline std::string PosTransType::toString(PosTransType::Enum value)
3260 {
3261  return toStr(value);
3262 }
3263 
3264 inline
3265 std::string
3266 PosMaintAction::toString(
3267  PosMaintAction::Enum value)
3268 {
3269  return toStr(value);
3270 }
3271 
3272 inline std::string SettlType::toString(SettlType::Enum value)
3273 {
3274  return toStr(value);
3275 }
3276 
3277 inline
3278 std::string
3279 SelfTradePreventionInstruction::toString(
3281 {
3282  return toStr(value);
3283 }
3284 
3285 inline std::string TimeUnit::toString(TimeUnit::Enum value)
3286 {
3287  return toStr(value);
3288 }
3289 
3290 inline std::string MessageType::toString(MessageType::Enum value)
3291 {
3292  return toStr(value);
3293 }
3294 
3295 inline std::string FlowType::toString(FlowType::Enum value)
3296 {
3297  return toStr(value);
3298 }
3299 
3300 inline
3301 std::string
3302 NegotiationRejectCode::toString(
3304 {
3305  return toStr(value);
3306 }
3307 
3308 inline
3309 std::string
3310 EstablishRejectCode::toString(
3312 {
3313  return toStr(value);
3314 }
3315 
3316 inline
3317 std::string
3318 TerminationCode::toString(
3319  TerminationCode::Enum value)
3320 {
3321  return toStr(value);
3322 }
3323 
3324 inline
3325 std::string
3326 RetransmitRejectCode::toString(
3328 {
3329  return toStr(value);
3330 }
3331 
3332 inline
3333 std::string
3334 CancelOnDisconnectType::toString(
3336 {
3337  return toStr(value);
3338 }
3339 
3340 inline std::string Side::toString(Side::Enum value)
3341 {
3342  return toStr(value);
3343 }
3344 
3345 inline std::string TimeInForce::toString(TimeInForce::Enum value)
3346 {
3347  return toStr(value);
3348 }
3349 
3350 inline
3351 std::string
3352 SimpleTimeInForce::toString(
3354 {
3355  return toStr(value);
3356 }
3357 
3358 inline std::string OrdType::toString(OrdType::Enum value)
3359 {
3360  return toStr(value);
3361 }
3362 
3363 inline
3364 std::string
3365 SimpleOrdType::toString(
3366  SimpleOrdType::Enum value)
3367 {
3368  return toStr(value);
3369 }
3370 
3371 inline
3372 std::string
3373 RoutingInstruction::toString(
3375 {
3376  return toStr(value);
3377 }
3378 
3379 inline std::string ExecType::toString(ExecType::Enum value)
3380 {
3381  return toStr(value);
3382 }
3383 
3384 inline std::string OrdStatus::toString(OrdStatus::Enum value)
3385 {
3386  return toStr(value);
3387 }
3388 
3389 inline
3390 std::string
3391 ExecRestatementReasonValidForSingleCancel::toString(
3393 {
3394  return toStr(value);
3395 }
3396 
3397 inline
3398 std::string
3399 ExecRestatementReasonValidForMassCancel::toString(
3401 {
3402  return toStr(value);
3403 }
3404 
3405 inline
3406 std::string
3407 ExecRestatementReason::toString(
3409 {
3410  return toStr(value);
3411 }
3412 
3413 inline
3414 std::string
3415 MultiLegReportingType::toString(
3417 {
3418  return toStr(value);
3419 }
3420 
3421 inline
3422 std::string
3423 OrderCategory::toString(
3424  OrderCategory::Enum value)
3425 {
3426  return toStr(value);
3427 }
3428 
3429 inline std::string AccountType::toString(AccountType::Enum value)
3430 {
3431  return toStr(value);
3432 }
3433 
3434 inline
3435 std::string
3436 CxlRejResponseTo::toString(
3437  CxlRejResponseTo::Enum value)
3438 {
3439  return toStr(value);
3440 }
3441 
3442 inline std::string PossResend::toString(PossResend::Enum value)
3443 {
3444  return toStr(value);
3445 }
3446 
3447 inline
3448 std::string
3449 SecurityIDSource::toString(
3450  SecurityIDSource::Enum value)
3451 {
3452  return toStr(value);
3453 }
3454 
3455 inline
3456 std::string
3457 CrossedIndicator::toString(
3458  CrossedIndicator::Enum value)
3459 {
3460  return toStr(value);
3461 }
3462 
3463 inline
3464 std::string
3465 TradingSessionID::toString(
3466  TradingSessionID::Enum value)
3467 {
3468  return toStr(value);
3469 }
3470 
3471 inline
3472 std::string
3473 TradingSessionSubID::toString(
3475 {
3476  return toStr(value);
3477 }
3478 
3479 inline
3480 std::string
3481 SecurityTradingStatus::toString(
3483 {
3484  return toStr(value);
3485 }
3486 
3487 inline std::string CrossType::toString(CrossType::Enum value)
3488 {
3489  return toStr(value);
3490 }
3491 
3492 inline
3493 std::string
3494 CrossPrioritization::toString(
3496 {
3497  return toStr(value);
3498 }
3499 
Enum
Specifies how long the order remains in effect.
Definition: Fields.h:1518
#define ONIXS_B3_BOE_MESSAGING_NAMESPACE_END
Definition: ABI.h:144
Enum
Type of cross being submitted to a market.
Definition: Fields.h:2143
Enum
Status of Position Maintenance Request.
Definition: Fields.h:812
Enum
Identifies the code of reject establishment.
Definition: Fields.h:1236
Enum
Indicates that message may contain information that has been sent under another sequence number...
Definition: Fields.h:1960
Repeating group dimensions.
Definition: Composites.h:120
Interval time expressed in milliseconds.
Definition: Composites.h:701
std::string toStr(const InvestorID &obj)
Serializes into a string.
Enum
Indicates how the orders being booked and allocated by an Allocation Instruction. ...
Definition: Fields.h:504
Enum
Specifies the type of action requested.
Definition: Fields.h:703
#define ONIXS_B3_BOE_EXPORTED
Definition: Compiler.h:181
Enum
Specifies if a simultaneous trade of the underlying is to be performed.
Definition: Fields.h:843
Enum
Describes the action that triggered this specific Execution Report - see the OrdStatus (39) tag for t...
Definition: Fields.h:1642
Enum
Identifies the code of termination.
Definition: Fields.h:1300
Enum
Maintenance Action to be performed.
Definition: Fields.h:896
Enum
Identifies status of allocation.
Definition: Fields.h:526
Enum
Identifies allocation transaction type.
Definition: Fields.h:435
Enum
Type of Security Definition message response.
Definition: Fields.h:784
Enum
Defines message type.
Definition: Fields.h:1011
Enum
Identifies the code of reject negotiation.
Definition: Fields.h:1178
Enum
Used to communicate a reason for a solicited cancel.
Definition: Fields.h:1713
Enum
Describes the specific type or purpose of an Allocation Report message.
Definition: Fields.h:460
void toFix(std::string &str, CrossPrioritization::Enum value)
Serializes the object into FIX presentation.
Enum
Indicates reason of cancelation, if available.
Definition: Fields.h:1760
Enum
Describes the specific type or purpose of an Allocation message.
Definition: Fields.h:482
Enum
Used to indicate what an Execution Report represents.
Definition: Fields.h:1839
Self trade prevention investor identification is composed of the prefix and document.
Definition: Composites.h:1777
Enum
Used to identify the type of quantity.
Definition: Fields.h:644
Header used for inbound business messages.
Definition: Composites.h:1240
Custodian information is required for going private offer.
Definition: Composites.h:1075
Enum
Unit of time used for measurement.
Definition: Fields.h:980
Enum
Identifier for the instrument status.
Definition: Fields.h:2100
Enum
Identifies the type of position transaction.
Definition: Fields.h:868
Enum
Type of Account associated with an order.
Definition: Fields.h:1907
#define ONIXS_B3_BOE_MESSAGING_NAMESPACE_BEGIN
Definition: ABI.h:140
Enum
Identifies the code of reject retransmission.
Definition: Fields.h:1376
Enum
Identifier for the instrument group phase.
Definition: Fields.h:2063
Enum
Indicates additional order instruction.
Definition: Fields.h:1611
Enum
Defines the type of interest behind a trade i.e. why a trade occurred.
Definition: Fields.h:1867
Enum
Identifies current status of order.
Definition: Fields.h:1667
Enum
Reason Order Mass Action Request was rejected.
Definition: Fields.h:756
std::ostream & operator<<(std::ostream &stream, const InvestorID &obj)
Serializes into a stream.
Enum
Identifies the type of request that this cancel reject is in response to.
Definition: Fields.h:1932
Enum
Identifies the type of request that a Quote Status Report is in response to.
Definition: Fields.h:591
Enum
Identifies the class of the SecurityID.
Definition: Fields.h:1985
Enum
Specifies the scope of the action. All Day and MOC orders will be cancelled. GTC, GTD and MOA orders ...
Definition: Fields.h:681
Header used for outbound business messages.
Definition: Composites.h:1410
Enum
Specifies the action taken by matching engine when it receives the Order Mass Action Request...
Definition: Fields.h:731
Enum
Identifier for Trading Session.
Definition: Fields.h:2038
Enum
Indicates if one side or the other of a cross order should be prioritized.
Definition: Fields.h:2166
Enum
Identifies the type of quote cancel.
Definition: Fields.h:622
Optional UTC timestamp with nanosecond precision.
Definition: Composites.h:586
Enum
Specifies how long the order remains in effect.
Definition: Fields.h:1478
Enum
Used to communicate event type which triggers mass cancelation.
Definition: Fields.h:1735
Header used for business messages that can go inbound or outbound.
Definition: Composites.h:1575
Enum
Identifies the status of the quote acknowledgement.
Definition: Fields.h:551
UTC timestamp with nanosecond precision.
Definition: Composites.h:498
Enum
Indicates who in the contract has control over evoking settlement.
Definition: Fields.h:921
Enum
Criteria used to initiate cancel on disconnect mechanism by the gateway.
Definition: Fields.h:1422
Enum
Indicates which order should be canceled due to self-trade prevention.
Definition: Fields.h:949
Enum
Type of message flow from client to server or from server to client.
Definition: Fields.h:1147
Enum
Indicates cross order purpose.
Definition: Fields.h:2010