From 032f0d0978a431def4039c66feef9fdbd272e8f2 Mon Sep 17 00:00:00 2001 From: Huamonarch Date: Fri, 15 May 2026 14:42:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=87=E6=8D=A2=20build=5Falgori?= =?UTF-8?q?thm=20=E5=B7=A5=E5=8E=82=E5=88=B0=E7=AE=97=E6=B3=95=E5=AD=90?= =?UTF-8?q?=E7=B1=BB=20+=20CMake=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eqpalg/build_algorithm.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/eqpalg/build_algorithm.cpp b/eqpalg/build_algorithm.cpp index 55f8f57..e731b97 100644 --- a/eqpalg/build_algorithm.cpp +++ b/eqpalg/build_algorithm.cpp @@ -1,13 +1,15 @@ #include #include #include -// for default case -#include +#include +#include #include #include #include #include +#include #include +#include #include #include #include @@ -19,11 +21,19 @@ std::unique_ptr build_algorithm(int algId, const string &ruleId, LOG d("build_algorithm"); switch (algId) { case 1: + return std::make_unique(name, rule_json, ruleId); + break; case 2: + return std::make_unique(name, rule_json, ruleId); + break; case 3: + return std::make_unique(name, rule_json, ruleId, algId); + break; case 4: + return std::make_unique(name, rule_json, ruleId, algId); + break; case 5: - return std::make_unique(name, rule_json, ruleId, algId); + return std::make_unique(name, rule_json, ruleId); break; case 6: case 7: