General update during the refactoring process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user