General update during the refactoring process

This commit is contained in:
rapturate
2026-06-24 12:58:05 -04:00
parent 77ea44b03d
commit f4916f76a2
2 changed files with 91 additions and 59 deletions
+10 -2
View File
@@ -10,6 +10,7 @@
*/
#pragma once
#include <filesystem>
#include <string>
#include <vector>
#include "../ip_to_geo/ip_to_geo.hpp"
@@ -30,16 +31,23 @@ class p_logs {
private:
Entry entry;
std::vector<Entry> logs;
std::string url;
std::vector<std::filesystem::path> log_paths;
public:
/**
* @brief Construct a new parsed logs object
* Detailed explanation: This function takes in the absolute path to a .log file and parses the lines into individual "Entry"s. These Entrys are then stored into a vector that can then be accessed via getter functions.
* Detailed explanation: This function takes in the path to the access log directory parses the lines into individual "Entry"s. These Entrys are then stored into a vector that can then be accessed via getter functions.
* @param string
*/
p_logs(std::string);
std::vector<Entry> get_all_logs();
/**
* @brief Get the log paths object
* Detailed explanation: This function returns all of the paths to the log files in the user provided directory.
* @return std::vector<std::filesystem::path>
*/
std::vector<std::filesystem::path> get_log_paths();
/**
* @brief Getter function for a specific Entry's IP