From 5673f32e69fab1909ab4fdbe255893428fff139f Mon Sep 17 00:00:00 2001 From: rapturate Date: Thu, 28 May 2026 11:47:04 -0400 Subject: [PATCH] changed my file structure to be headers and objects --- headers/ip_to_geo.h | 1 + {log_parsing => headers}/log_parsing.h | 0 ip_to_geo/ip_to_geo.h | 0 {ip_to_geo => objects}/ip_to_geo.cpp | 0 {log_parsing => objects}/log_parsing.cpp | 2 +- 5 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 headers/ip_to_geo.h rename {log_parsing => headers}/log_parsing.h (100%) delete mode 100644 ip_to_geo/ip_to_geo.h rename {ip_to_geo => objects}/ip_to_geo.cpp (100%) rename {log_parsing => objects}/log_parsing.cpp (98%) diff --git a/headers/ip_to_geo.h b/headers/ip_to_geo.h new file mode 100644 index 0000000..7b9637e --- /dev/null +++ b/headers/ip_to_geo.h @@ -0,0 +1 @@ +#pragma once \ No newline at end of file diff --git a/log_parsing/log_parsing.h b/headers/log_parsing.h similarity index 100% rename from log_parsing/log_parsing.h rename to headers/log_parsing.h diff --git a/ip_to_geo/ip_to_geo.h b/ip_to_geo/ip_to_geo.h deleted file mode 100644 index e69de29..0000000 diff --git a/ip_to_geo/ip_to_geo.cpp b/objects/ip_to_geo.cpp similarity index 100% rename from ip_to_geo/ip_to_geo.cpp rename to objects/ip_to_geo.cpp diff --git a/log_parsing/log_parsing.cpp b/objects/log_parsing.cpp similarity index 98% rename from log_parsing/log_parsing.cpp rename to objects/log_parsing.cpp index 699c4a5..2d24035 100644 --- a/log_parsing/log_parsing.cpp +++ b/objects/log_parsing.cpp @@ -8,7 +8,7 @@ #include "log_parsing.h" -parse::parse(const std::smatch& match) { +parsed_logs::parse(const std::smatch& match) { Entry entry; entry.ip = match[1].str(); entry.timestamp = match[2].str();