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

Enriches table data with metadata in ASAPCabinetFE. More...

#include <vpin_scanner.h>

+ Collaboration diagram for VPinScanner:

Static Public Member Functions

static void scanFiles (std::vector< TableData > &tables, LoadingProgress *progress)
 Enriches table data with metadata from vpxtool_index.json and VPSDB.
 

Detailed Description

Enriches table data with metadata in ASAPCabinetFE.

This class provides static methods to match TableData objects by extracting metadata from a vpxtool_index.json file and optionally a VPSDB database. It includes utility methods for cleaning strings and safely extracting JSON values. The matchmaking process updates fields like tableName, tableAuthor, and romName, tracks progress with LoadingProgress, and can be configured via Settings, with potential for configUI enhancements (e.g., custom metadata sources).

Member Function Documentation

◆ scanFiles()

void VPinScanner::scanFiles ( std::vector< TableData > &  tables,
LoadingProgress progress 
)
static

Enriches table data with metadata from vpxtool_index.json and VPSDB.

Processes the provided tables vector by matching entries with metadata from vpxtool_index.json (located at settings.VPXTablesPath + vpxtoolIndex) and optionally matchmaking further with VPSDB data if enabled. Updates fields like tableName, tableAuthor, and title, and tracks progress via LoadingProgress, including numNoMatch for unmatched tables. The method is configurable via Settings and supports future configUI customization.

Parameters
settingsThe application settings controlling the matchmaking process.
tablesReference to the vector of TableData to match.
progressOptional pointer to LoadingProgress for real-time updates.
+ 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: