ASAPCabinetFE
 
Loading...
Searching...
No Matches
vps_database_loader.h
Go to the documentation of this file.
1
12#ifndef VPS_DATABASE_LOADER_H
13#define VPS_DATABASE_LOADER_H // Header guard to prevent multiple inclusions
14
15#include <string> // For std::string to handle file paths
16#include <nlohmann/json.hpp> // For nlohmann::json to store the parsed VPS database
17#include "core/ui/loading_progress.h" // Structure for tracking loading progress
18
30public:
39 VpsDatabaseLoader(const std::string& vpsDbPath);
40
52 bool load(LoadingProgress* progress = nullptr);
53
62 const nlohmann::json& getVpsDb() const;
63
64private:
65 std::string vpsDbPath_;
66 nlohmann::json vpsDb_;
67};
68
69#endif // VPS_DATABASE_LOADER_H
Loads the VPS database file in ASAPCabinetFE.
Definition vps_database_loader.h:29
const nlohmann::json & getVpsDb() const
Retrieves the loaded VPS database JSON.
Definition vps_database_loader.cpp:66
bool load(LoadingProgress *progress=nullptr)
Loads the VPS database from the specified file path.
Definition vps_database_loader.cpp:21
Defines the LoadingProgress struct for tracking loading state in ASAPCabinetFE.
Tracks the loading progress state for ASAPCabinetFE.
Definition loading_progress.h:33