File Scanner 1.0.0
A high-performance C++ malicious file scanner.
Loading...
Searching...
No Matches
scanner::ILogger Interface Referenceabstract

Defines the contract for a component that logs malicious detections. More...

#include <interfaces.h>

Inheritance diagram for scanner::ILogger:
Inheritance graph
Collaboration diagram for scanner::ILogger:
Collaboration graph

Public Member Functions

virtual ~ILogger ()=default
 
virtual void LogDetection (const std::filesystem::path &path, const std::string &hash, const std::string &verdict)=0
 Logs the detection of a malicious file.
 

Detailed Description

Defines the contract for a component that logs malicious detections.

Implementations of this interface must be thread-safe, as multiple scanning threads may report detections concurrently.

Constructor & Destructor Documentation

◆ ~ILogger()

virtual scanner::ILogger::~ILogger ( )
virtualdefault

Member Function Documentation

◆ LogDetection()

virtual void scanner::ILogger::LogDetection ( const std::filesystem::path &  path,
const std::string &  hash,
const std::string &  verdict 
)
pure virtual

Logs the detection of a malicious file.

Parameters
pathThe path to the detected file.
hashThe calculated hash of the file.
verdictThe verdict from the hash database.

Implemented in scanner::FileLogger.

Here is the caller graph for this function:

The documentation for this interface was generated from the following file: