From 42daff8a4c5b2f2643f25c6e1fe82365c35d8046 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:33:42 -0500 Subject: [PATCH] oneR: initial folder and CMake creation --- src/CMakeLists.txt | 1 + src/arff/CMakeLists.txt | 4 ++-- src/onerule/CMakeLists.txt | 6 ++++++ src/onerule/main.cpp | 13 +++++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 src/onerule/CMakeLists.txt create mode 100644 src/onerule/main.cpp diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9e6d78f..04a3160 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1 +1,2 @@ add_subdirectory(arff) +add_subdirectory(onerule) diff --git a/src/arff/CMakeLists.txt b/src/arff/CMakeLists.txt index 524fe0c..4d7fd37 100644 --- a/src/arff/CMakeLists.txt +++ b/src/arff/CMakeLists.txt @@ -1,5 +1,5 @@ add_executable(arff - ./main.cpp - ./arff.cpp + main.cpp + arff.cpp ) diff --git a/src/onerule/CMakeLists.txt b/src/onerule/CMakeLists.txt new file mode 100644 index 0000000..43ed139 --- /dev/null +++ b/src/onerule/CMakeLists.txt @@ -0,0 +1,6 @@ +include_directories(../arff) +add_executable(onerule + main.cpp + ../arff/arff.cpp +) + diff --git a/src/onerule/main.cpp b/src/onerule/main.cpp new file mode 100644 index 0000000..4f24fae --- /dev/null +++ b/src/onerule/main.cpp @@ -0,0 +1,13 @@ +/* + * Author: Gregory Crawford + * Date: 2024-03-18 + * Description: Read and store ARFF data from a file + */ +#include "arff.hpp" + +int main(int argc, char* argv[]) { + ARFF::ParseArguments(argc, argv); + ARFF::Arff data; + data.Read(ARFF::GetDataFilename()); + data.Print(); +}