Browse Source

Add evaluator interface to core module

Patrick-Christopher Mattulat 1 year ago
parent
commit
4429044908

+ 1 - 0
CMakeLists.txt

@@ -138,6 +138,7 @@ set(SOURCE_FILES_CORE
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/NullPointerException.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IBoxing.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IEncoding.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IEvaluator.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IEventSubscriber.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IListener.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IReader.cpp

+ 28 - 0
include/ls-std/core/interface/IEvaluator.hpp

@@ -0,0 +1,28 @@
+/*
+* Author:          Patrick-Christopher Mattulat
+* Company:         Lynar Studios
+* E-Mail:          webmaster@lynarstudios.com
+* Created:         2023-02-08
+* Changed:         2023-02-08
+*
+* */
+
+#ifndef LS_STD_I_EVALUATOR_HPP
+#define LS_STD_I_EVALUATOR_HPP
+
+#include <ls-std/os/dynamic-goal.hpp>
+
+namespace ls::std::core::interface_type
+{
+  class LS_STD_DYNAMIC_GOAL IEvaluator
+  {
+    public:
+
+      IEvaluator();
+      virtual ~IEvaluator();
+
+      virtual void evaluate() = 0;
+  };
+}
+
+#endif

+ 14 - 0
source/ls-std/core/interface/IEvaluator.cpp

@@ -0,0 +1,14 @@
+/*
+* Author:          Patrick-Christopher Mattulat
+* Company:         Lynar Studios
+* E-Mail:          webmaster@lynarstudios.com
+* Created:         2023-02-08
+* Changed:         2023-02-08
+*
+* */
+
+#include <ls-std/core/interface/IEvaluator.hpp>
+
+ls::std::core::interface_type::IEvaluator::IEvaluator() = default;
+
+ls::std::core::interface_type::IEvaluator::~IEvaluator() = default;