fix8  version 1.4.0
Open Source C++ FIX Framework
Perf_classes.cpp
Go to the documentation of this file.
1 //-------------------------------------------------------------------------------------------------
2 // *** f8c generated file: DO NOT EDIT! Created: 2016-09-16 11:50:22 ***
3 //-------------------------------------------------------------------------------------------------
4 /*
5 
6 Fix8 is released under the GNU LESSER GENERAL PUBLIC LICENSE Version 3.
7 
8 Fix8 Open Source FIX Engine.
9 Copyright (C) 2010-16 David L. Dight <fix@fix8.org>
10 
11 Fix8 is free software: you can redistribute it and / or modify it under the terms of the
12 GNU Lesser General Public License as published by the Free Software Foundation, either
13 version 3 of the License, or (at your option) any later version.
14 
15 Fix8 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
16 even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 
18 You should have received a copy of the GNU Lesser General Public License along with Fix8.
19 If not, see <http://www.gnu.org/licenses/>.
20 
21 *******************************************************************************************
22 * Special note for Fix8 compiler generated source code *
23 * *
24 * Binary works that are the results of compilation of code that is generated by the Fix8 *
25 * compiler can be released without releasing your source code as long as your binary *
26 * links dynamically against an unmodified version of the Fix8 library. You are however *
27 * required to leave the copyright text in the generated code. *
28 * *
29 *******************************************************************************************
30 
31 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO
32 THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
33 COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY
34 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO
36 THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE,
37 YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
38 
39 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT
40 HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED
41 ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
42 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
43 NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR
44 THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
45 HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
46 
47 */
48 
49 //-------------------------------------------------------------------------------------------------
50 #include <fix8/f8config.h>
51 #if defined FIX8_MAGIC_NUM && FIX8_MAGIC_NUM > 16793600L
52 #error Perf_classes.cpp version 1.4.0 is out of date. Please regenerate with f8c.
53 #endif
54 //-------------------------------------------------------------------------------------------------
55 // Perf_classes.cpp
56 //-------------------------------------------------------------------------------------------------
57 #include <iostream>
58 #include <fstream>
59 #include <iomanip>
60 #include <sstream>
61 #include <vector>
62 #include <map>
63 #include <list>
64 #include <set>
65 #include <iterator>
66 #include <algorithm>
67 #include <cerrno>
68 #include <string.h>
69 // f8 includes
70 #include <fix8/f8exception.hpp>
71 #include <fix8/hypersleep.hpp>
72 #include <fix8/mpmc.hpp>
73 #include <fix8/thread.hpp>
74 #include <fix8/f8types.hpp>
75 #include <fix8/f8utils.hpp>
76 #include <fix8/tickval.hpp>
77 #include <fix8/logger.hpp>
78 #include <fix8/traits.hpp>
79 #include <fix8/field.hpp>
80 #include <fix8/message.hpp>
81 #include "Perf_types.hpp"
82 #include "Perf_router.hpp"
83 #include "Perf_classes.hpp"
84 //-------------------------------------------------------------------------------------------------
85 namespace FIX8 {
86 namespace TEX {
87 
88 namespace {
89 
90 //-------------------------------------------------------------------------------------------------
91 
92 const char *cn[] // Component names
93 {
94  "",
95 };
96 
97 } // namespace
98 
99 //-------------------------------------------------------------------------------------------------
101 {
102  { "0", { Type2Type<TEX::Heartbeat>(), "Heartbeat" } },
103  { "1", { Type2Type<TEX::TestRequest>(), "TestRequest" } },
104  { "2", { Type2Type<TEX::ResendRequest>(), "ResendRequest" } },
105  { "3", { Type2Type<TEX::Reject>(), "Reject" } },
106  { "4", { Type2Type<TEX::SequenceReset>(), "SequenceReset" } },
107  { "5", { Type2Type<TEX::Logout>(), "Logout" } },
108  { "8", { Type2Type<TEX::ExecutionReport>(), "ExecutionReport" } },
109  { "A", { Type2Type<TEX::Logon>(), "Logon" } },
110  { "D", { Type2Type<TEX::NewOrderSingle>(), "NewOrderSingle" } },
111  { "header", { Type2Type<TEX::header, bool>(), "header" } },
112  { "trailer", { Type2Type<TEX::trailer, bool>(), "trailer" } }
113 }; // 11
114 
115 extern const Perf_BaseEntry::Pair fldpairs[];
116 
118 const F8MetaCntx& ctx() // avoid SIOF
119 {
120  static const Perf_BaseMsgEntry bme(msgpairs, 11);
121  static const Perf_BaseEntry be(fldpairs, 111);
122  static const F8MetaCntx _ctx(4200, bme, be, cn, "FIX.4.2");
123  return _ctx;
124 }
125 
126 } // namespace TEX
127 
128 // Compiler generated metadata object accessible outside namespace through this function.
129 extern "C"
130 {
131  const F8MetaCntx& TEX_ctx() { return TEX::ctx(); }
132 }
133 
134 } // namespace FIX8
135 
FieldTable Perf_BaseEntry
Definition: Perf_types.hpp:580
const TEX::Myfix_BaseMsgEntry::Pair msgpairs[]
const F8MetaCntx & ctx()
Compiler generated metadata object, accessed through this function.
MsgTable Perf_BaseMsgEntry
_pair< Key, Val > Pair
Definition: f8types.hpp:103
const TEX::Myfix_BaseMsgEntry::Pair const Myfix_BaseEntry::Pair fldpairs[]
const F8MetaCntx & TEX_ctx()