ASAPCabinetFE
 
Loading...
Searching...
No Matches
vps_database_loader.cpp File Reference

Implements the VpsDatabaseLoader class for loading the VPS database in ASAPCabinetFE. More...

#include "vps_database_loader.h"
#include <filesystem>
#include <fstream>
#include "log/logging.h"
+ Include dependency graph for vps_database_loader.cpp:

Detailed Description

Implements the VpsDatabaseLoader class for loading the VPS database in ASAPCabinetFE.

This file provides the implementation of the VpsDatabaseLoader class, which loads the VPS database (vpsdb.json) from a specified file path into a nlohmann::json object. It validates the JSON structure, supports progress tracking via LoadingProgress, and provides access to the loaded data. The loading process can be extended with configUI for custom validation rules (e.g., additional JSON structure checks) in the future.