ASAPCabinetFE
 
Loading...
Searching...
No Matches
FileScanner Class Reference

Scans VPX table files and constructs TableData objects. More...

#include <file_scanner.h>

+ Collaboration diagram for FileScanner:

Static Public Member Functions

static std::vector< TableDatascan (const Settings &settings, LoadingProgress *progress=nullptr, const std::vector< TableData > *existingTables=nullptr)
 Scans the VPX tables directory and returns a list of tables.
 

Detailed Description

Scans VPX table files and constructs TableData objects.

This class provides a static method to recursively scan a directory for VPX files, populate TableData objects with file paths and media asset paths, and track progress if a LoadingProgress object is provided. The scanner can optimize for incremental updates by comparing against an existing index, skipping unchanged files.

Member Function Documentation

◆ scan()

std::vector< TableData > FileScanner::scan ( const Settings settings,
LoadingProgress progress = nullptr,
const std::vector< TableData > *  existingTables = nullptr 
)
static

Scans the VPX tables directory and returns a list of tables.

Recursively scans the directory specified in settings.VPXTablesPath for .vpx files, constructs TableData objects with file paths, and resolves media asset paths. If existingTables is provided and settings.forceRebuildMetadata is false, skips files that are unchanged based on fileLastModified and hashes. Updates progress tracking if provided.

Parameters
settingsThe application settings controlling the scan.
progressOptional pointer to LoadingProgress for real-time updates.
existingTablesOptional vector of existing TableData for incremental scanning.
Returns
A vector of TableData objects representing the scanned tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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