summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 06:14:14 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 06:14:14 -0500
commite85b8a1cf1624a9cbf3d719dd202ad57d43c2f4b (patch)
tree89f7c1d07eed253f97141102041d70b12dfcd48e /examples
parentd43fed8fb9eb369adc70a57bc2a9552d36485241 (diff)
chore: modularize OCL to OCL.core, upcoming OCL.fix
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/fix_tag_example/CMakeLists.txt15
-rw-r--r--examples/fix_tag_example/example.cc31
-rw-r--r--examples/hash_crc32_example/example.cc4
-rw-r--r--examples/simple_unique_socket/example.cc4
4 files changed, 4 insertions, 50 deletions
diff --git a/examples/fix_tag_example/CMakeLists.txt b/examples/fix_tag_example/CMakeLists.txt
deleted file mode 100644
index b9a80db..0000000
--- a/examples/fix_tag_example/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-
-cmake_minimum_required(VERSION 3.15...3.31)
-
-project(
- FixExample
- VERSION 1.0
- LANGUAGES CXX)
-
-find_package(Boost REQUIRED COMPONENTS container)
-
-add_executable(FixExample example.cc)
-
-set_property(TARGET FixExample PROPERTY CXX_STANDARD 20)
-target_include_directories(FixExample PUBLIC ../../include/ocl)
-target_link_libraries(FixExample PRIVATE Boost::container)
diff --git a/examples/fix_tag_example/example.cc b/examples/fix_tag_example/example.cc
deleted file mode 100644
index ad9725b..0000000
--- a/examples/fix_tag_example/example.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <fix/parser.hpp>
-#include <io/print.hpp>
-
-constexpr const char default_fix[] = {
- '8', '=', 'F', 'I', 'X', '.', '4', '.', '2', 0x01,
- '9', '=', '6', '3', 0x01, // BodyLength = 63
- '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,
- '1', '0', '=', '1', '4', '3', 0x01, 0x00 // CheckSum = 143
-};
-
-int main(int argc, char** argv)
-{
- ocl::fix::visitor basic_visitor;
- ocl::fix::range_data fix = basic_visitor.visit(default_fix);
-
- ocl::io::enable_stdio_sync(false);
-
- ocl::io::print(":key=35\n");
- ocl::io::print(":value=", fix["35"], "\n");
-
- ocl::io::print(":key=49\n");
- ocl::io::print(":value=", fix["49"], "\n");
-
- return 0;
-}
diff --git a/examples/hash_crc32_example/example.cc b/examples/hash_crc32_example/example.cc
index cddebda..bd27662 100644
--- a/examples/hash_crc32_example/example.cc
+++ b/examples/hash_crc32_example/example.cc
@@ -1,5 +1,5 @@
-#include <hashing/crc_hash.hpp>
-#include <io/print.hpp>
+#include <ocl/crc_hash.hpp>
+#include <ocl/print.hpp>
int main(int argc, char** argv)
{
diff --git a/examples/simple_unique_socket/example.cc b/examples/simple_unique_socket/example.cc
index a0eaff2..b5bd34f 100644
--- a/examples/simple_unique_socket/example.cc
+++ b/examples/simple_unique_socket/example.cc
@@ -1,5 +1,5 @@
-#include <net/unique_socket.hpp>
-#include <io/print.hpp>
+#include <ocl/unique_socket.hpp>
+#include <ocl/print.hpp>
/// @brief Basic Send test
int main()