fix8  version 1.4.0
Open Source C++ FIX Framework
Perf_router.hpp
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_router.hpp version 1.4.0 is out of date. Please regenerate with f8c.
53 #endif
54 //-------------------------------------------------------------------------------------------------
55 // Perf_router.hpp
56 //-------------------------------------------------------------------------------------------------
57 #ifndef FIX8_506572665F726F757465722E687070_
58 #define FIX8_506572665F726F757465722E687070_
59 
60 namespace FIX8 {
61 namespace TEX {
62 
63 //-------------------------------------------------------------------------------------------------
64 class Perf_Router : public Router
65 {
66 public:
68  virtual ~Perf_Router() {}
69 
70  virtual bool operator() (const class Message *msg) { return false; }
71  virtual bool operator() (const class Heartbeat *msg) { return true; }
72  virtual bool operator() (const class TestRequest *msg) { return true; }
73  virtual bool operator() (const class ResendRequest *msg) { return true; }
74  virtual bool operator() (const class Reject *msg) { return true; }
75  virtual bool operator() (const class SequenceReset *msg) { return true; }
76  virtual bool operator() (const class Logout *msg) { return true; }
77  virtual bool operator() (const class ExecutionReport *msg) { return false; }
78  virtual bool operator() (const class Logon *msg) { return true; }
79  virtual bool operator() (const class NewOrderSingle *msg) { return false; }
80 };
81 
82 } // namespace TEX
83 } // namespace FIX8
84 #endif // FIX8_506572665F726F757465722E687070_
Base class for inbound message routing.
Definition: message.hpp:126
ExecutionReport (8), application, 326 fields, 16 groups.
Heartbeat (0), admin, 1 field, 0 groups.
Logout (5), admin, 3 fields, 0 groups.
ResendRequest (2), admin, 2 fields, 0 groups.
virtual bool operator()(const class Message *msg)
Definition: Perf_router.hpp:70
TestRequest (1), admin, 1 field, 0 groups.
NewOrderSingle (D), application, 243 fields, 11 groups.
Reject (3), admin, 7 fields, 0 groups.
Logon (A), admin, 12 fields, 1 group.
A complete Fix message with header, body and trailer.
Definition: message.hpp:1058
SequenceReset (4), admin, 2 fields, 0 groups.