From 10a8d40e12b30beec0781deb0af894f66fe3561f Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 25 Jul 2024 08:20:05 +0200 Subject: turns: add initialization functions --- core/CMakeLists.txt | 1 + core/include/turns/core/init.hpp | 11 +++++++++++ core/src/init.cpp | 15 +++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 core/include/turns/core/init.hpp create mode 100644 core/src/init.cpp (limited to 'core') diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 4928843..245c7f7 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -2,6 +2,7 @@ add_library("core" "src/disposition.cpp" + "src/init.cpp" "src/participant.cpp" "src/turn_order.cpp" ) diff --git a/core/include/turns/core/init.hpp b/core/include/turns/core/init.hpp new file mode 100644 index 0000000..f0dc70e --- /dev/null +++ b/core/include/turns/core/init.hpp @@ -0,0 +1,11 @@ +#ifndef TURNS_CORE_INIT_HPP +#define TURNS_CORE_INIT_HPP + +namespace turns::core +{ + + auto register_types() -> void; + +} // namespace turns::core + +#endif \ No newline at end of file diff --git a/core/src/init.cpp b/core/src/init.cpp new file mode 100644 index 0000000..258aceb --- /dev/null +++ b/core/src/init.cpp @@ -0,0 +1,15 @@ +#include "turns/core/init.hpp" + +#include "turns/core/participant.hpp" +#include "turns/core/turn_order.hpp" + +namespace turns::core +{ + + auto register_types() -> void + { + static_cast(participant{}); + static_cast(turn_order{}); + } + +} // namespace turns::core \ No newline at end of file -- cgit v1.2.3