Scans VPX table files and constructs TableData objects. More...
#include <file_scanner.h>
Static Public Member Functions | |
static std::vector< TableData > | scan (const Settings &settings, LoadingProgress *progress=nullptr, const std::vector< TableData > *existingTables=nullptr) |
Scans the VPX tables directory and returns a list of tables. | |
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.
|
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.
settings | The application settings controlling the scan. |
progress | Optional pointer to LoadingProgress for real-time updates. |
existingTables | Optional vector of existing TableData for incremental scanning. |