CoreTrace Qt IDE 1.0
The CoreTrace Text editor
 
Loading...
Searching...
No Matches
AuditCache Class Reference

#include <audit_cache.hpp>

Public Member Functions

QList< AuditResultgetCachedResults (const QString &file)
 Retrieves cached audit results for a given file and options combination.
 
void cacheResults (const QString &file, const QList< AuditResult > &results)
 Caches the audit results for a specified file and options combination.
 

Private Attributes

QMap< QString, QList< AuditResult > > cache
 

Member Function Documentation

◆ cacheResults()

void AuditCache::cacheResults ( const QString &  cacheKey,
const QList< AuditResult > &  results 
)

Caches the audit results for a specified file and options combination.

This function stores the provided list of audit results associated with the given cache key (file path + options) in the cache. If the key already exists in the cache, its associated results will be overwritten.

Parameters
cacheKeyThe combined file path and options string.
resultsA QList of AuditResult objects representing the audit results to be cached.

◆ getCachedResults()

QList< AuditResult > AuditCache::getCachedResults ( const QString &  cacheKey)

Retrieves cached audit results for a given file and options combination.

Parameters
cacheKeyThe combined file path and options string.
Returns
A list of cached audit results, or an empty list if no results are found.

Member Data Documentation

◆ cache

QMap<QString, QList<AuditResult> > AuditCache::cache
private

The documentation for this class was generated from the following files: