diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-11 15:39:31 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-11 15:39:31 +0100 |
| commit | 20f36d5bb5f30ba759676fde1a4da0579e66a878 (patch) | |
| tree | a2281d502c527945869a03897e9f8760bedf59aa /example | |
| parent | d0decd01ec7c9e3f3d493cc6aa9ec87fd34a6722 (diff) | |
feat: FIX library improvements, prepping release.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example')
| -rw-r--r-- | example/fix_tag_example/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | example/fix_tag_example/example.cpp | 27 |
2 files changed, 16 insertions, 12 deletions
diff --git a/example/fix_tag_example/CMakeLists.txt b/example/fix_tag_example/CMakeLists.txt index 56afa24..ca6d6dd 100644 --- a/example/fix_tag_example/CMakeLists.txt +++ b/example/fix_tag_example/CMakeLists.txt @@ -9,6 +9,7 @@ project( find_package(Boost REQUIRED) add_executable(FixExample example.cpp) +target_include_directories(FixExample PUBLIC ${BOOST_INCLUDE_DIRS}) set_property(TARGET FixExample PROPERTY CXX_STANDARD 20) target_include_directories(FixExample PUBLIC ../../include/ocl) diff --git a/example/fix_tag_example/example.cpp b/example/fix_tag_example/example.cpp index cb758c2..efd66f8 100644 --- a/example/fix_tag_example/example.cpp +++ b/example/fix_tag_example/example.cpp @@ -1,3 +1,8 @@ +// Copyright 2025-2026, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/fix + #include <ocl/fix/parser.hpp> #include <ocl/fix/checksum.hpp> @@ -15,18 +20,16 @@ constexpr char const default_fix[] = { }; constexpr char default_fix_unchecked[] = { - '8', '=', 'F', 'I', 'X', '.', '4', '.', '2', 0x01, - '9', '=', '8', '0', 0x01, // BodyLength = 80 - '3', '5', '=', 'A', 0x01, - '4', '9', '=', 'S', 'E', 'R', 'V', 'E', 'R', 0x01, - '5', '6', '=', 'C', 'L', 'I', 'E', 'N', 'T', 0x01, - '3', '4', '=', '1', '7', '7', 0x01, - '5', '2', '=', '2', '0', '0', '9', '0', '1', '0', '7', '-', '1', '8', ':', '1', '5', ':', '1', '6', 0x01, - '9', '8', '=', '0', 0x01, - '1', '0', '8', '=', '3', '0', 0x01, - 0x00 -}; - + '8', '=', 'F', 'I', 'X', '.', '4', '.', '2', 0x01, + '9', '=', '8', '0', 0x01, // BodyLength = 80 + '3', '5', '=', 'A', 0x01, + '4', '9', '=', 'S', 'E', 'R', 'V', 'E', 'R', 0x01, + '5', '6', '=', 'C', 'L', 'I', 'E', 'N', 'T', 0x01, + '3', '4', '=', '1', '7', '7', 0x01, + '5', '2', '=', '2', '0', '0', '9', '0', '1', '0', '7', '-', '1', '8', ':', '1', '5', ':', '1', '6', 0x01, + '9', '8', '=', '0', 0x01, + '1', '0', '8', '=', '3', '0', 0x01, + 0x00}; int main(int argc, char** argv) { |
