Wrote the print_logs funciton for debugging and changed the location of the test .log files
This commit is contained in:
@@ -24,7 +24,7 @@ struct Entry {
|
||||
std::string browser;
|
||||
};
|
||||
|
||||
class parsed_logs {
|
||||
class p_logs {
|
||||
private:
|
||||
Entry entry;
|
||||
std::vector<Entry> logs;
|
||||
@@ -35,7 +35,7 @@ public:
|
||||
* 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.
|
||||
* @param string
|
||||
*/
|
||||
parsed_logs(std::string);
|
||||
p_logs(std::string);
|
||||
|
||||
/**
|
||||
* @brief Getter function for a specific Entry's IP
|
||||
@@ -100,4 +100,10 @@ public:
|
||||
* @return std::string
|
||||
*/
|
||||
std::string entryx_browser(int);
|
||||
|
||||
/**
|
||||
* @brief Prints all parsed log entries
|
||||
*
|
||||
*/
|
||||
void print_logs();
|
||||
};
|
||||
Reference in New Issue
Block a user