diff options
| -rw-r--r-- | examples/fix/fix.cc | 2 | ||||
| -rw-r--r-- | include/ocl/core/chunk_string.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/core/error_handler.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/core/includes.hpp | 8 | ||||
| -rw-r--r-- | include/ocl/fix/fix.hpp | 3 | ||||
| -rw-r--r-- | include/ocl/memory/allocator_system.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/simd/basic_simd.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/simd/simd.hpp | 2 | ||||
| -rw-r--r-- | tests/fix_basic/fix_test.cc | 4 |
9 files changed, 17 insertions, 10 deletions
diff --git a/examples/fix/fix.cc b/examples/fix/fix.cc index eabe3ac..b2d2915 100644 --- a/examples/fix/fix.cc +++ b/examples/fix/fix.cc @@ -15,7 +15,7 @@ /* finally test it */ int main(int argc, char** argv) { - constexpr auto default_fix = "8=FIX.4.2|9=65|35=A|49=SERVER|56=CLIENT|34=177|52=20090107-18:15:16|98=0|108=30|10=062|"; + constexpr auto default_fix = "8=FIX.4.2\x01 9=65 \x01 35=A \x01 49=SERVER \x01 56=CLIENT \x01 34=177 \x01 52=20090107-18:15:16 \x01 98=0 \x01 108=30 \x01 10=062 \x01 "; ocl::fix::basic_visitor<char> basic_visitor; ocl::fix::basic_range_data<char> fix = basic_visitor.visit(default_fix); diff --git a/include/ocl/core/chunk_string.hpp b/include/ocl/core/chunk_string.hpp index 1d922de..ccbc10a 100644 --- a/include/ocl/core/chunk_string.hpp +++ b/include/ocl/core/chunk_string.hpp @@ -8,7 +8,7 @@ #ifndef OCL_UTILITY_CHUNK_STRING_HPP #define OCL_UTILITY_CHUNK_STRING_HPP -#include <core/includes.hpp> +#include <core/config.hpp> #include <io/print.hpp> #include <cstring> diff --git a/include/ocl/core/error_handler.hpp b/include/ocl/core/error_handler.hpp index f761d63..717b522 100644 --- a/include/ocl/core/error_handler.hpp +++ b/include/ocl/core/error_handler.hpp @@ -8,7 +8,7 @@ #ifndef _OCL_ERROR_HANDLER_HPP #define _OCL_ERROR_HANDLER_HPP -#include <core/includes.hpp> +#include <core/config.hpp> #include <io/print.hpp> namespace ocl diff --git a/include/ocl/core/includes.hpp b/include/ocl/core/includes.hpp index 9ed8ffb..8d94cc0 100644 --- a/include/ocl/core/includes.hpp +++ b/include/ocl/core/includes.hpp @@ -1,12 +1,16 @@ /* - * File: core/includes.hpp - * Purpose: Core includes of the OCL. + * File: core/config.hpp + * Purpose: Config file of the OCL. * Author: Amlal El Mahrouss (amlal@nekernel.org) * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. */ #pragma once +#include <memory> +#include <iostream> +#include <string> + #include <boost/config.hpp> #include <boost/core/nvp.hpp> #include <boost/core/demangle.hpp> diff --git a/include/ocl/fix/fix.hpp b/include/ocl/fix/fix.hpp index 0c6685d..85a8b70 100644 --- a/include/ocl/fix/fix.hpp +++ b/include/ocl/fix/fix.hpp @@ -136,7 +136,8 @@ namespace ocl::fix class basic_visitor final { public: - static constexpr const char_type soh = '|'; + /// AMLALE: Yeah... + static constexpr const char_type soh = 0x01; static constexpr const char_type eq = '='; static constexpr uint32_t base = 10U; diff --git a/include/ocl/memory/allocator_system.hpp b/include/ocl/memory/allocator_system.hpp index 67e3266..345b612 100644 --- a/include/ocl/memory/allocator_system.hpp +++ b/include/ocl/memory/allocator_system.hpp @@ -8,7 +8,7 @@ #ifndef _OCL_ALLOCATOR_SYSTEM_HPP #define _OCL_ALLOCATOR_SYSTEM_HPP -#include <core/includes.hpp> +#include <core/config.hpp> #include <memory> namespace ocl diff --git a/include/ocl/simd/basic_simd.hpp b/include/ocl/simd/basic_simd.hpp index a401dbd..7fba26b 100644 --- a/include/ocl/simd/basic_simd.hpp +++ b/include/ocl/simd/basic_simd.hpp @@ -7,7 +7,7 @@ #pragma once -#include <core/includes.hpp> +#include <core/config.hpp> #ifdef __x86_64__ #include <immintrin.h> diff --git a/include/ocl/simd/simd.hpp b/include/ocl/simd/simd.hpp index 711bf31..92bb713 100644 --- a/include/ocl/simd/simd.hpp +++ b/include/ocl/simd/simd.hpp @@ -7,7 +7,7 @@ #pragma once -#include <core/includes.hpp> +#include <core/config.hpp> /// @author Amlal El Mahrouss /// @brief Basic SIMD processor. diff --git a/tests/fix_basic/fix_test.cc b/tests/fix_basic/fix_test.cc index f58973b..f7064b5 100644 --- a/tests/fix_basic/fix_test.cc +++ b/tests/fix_basic/fix_test.cc @@ -11,8 +11,10 @@ TEST(FIXTest, BasicFIXUsage) { + constexpr auto default_fix = "8=FIX.4.2\x01 9=65\x01 35=A\x01 49=SERVER\x01 56=CLIENT\x01 34=177\x01 52=20090107-18:15:16\x01 98=0\x01 108=30\x01 10=062\x01"; + ocl::fix::basic_visitor<char> basic_visitor; - ocl::fix::basic_range_data<char> fix = basic_visitor.visit("8=FIX.4.2|9=65|35=A|49=SERVER|56=CLIENT|34=177|52=20090107-18:15:16|98=0|108=30|10=062|"); + ocl::fix::basic_range_data<char> fix = basic_visitor.visit(default_fix); EXPECT_EQ(fix.magic_, ocl::fix::detail::begin_fix()); EXPECT_TRUE(fix.is_valid()); |
