ASAPCabinetFE
 
Loading...
Searching...
No Matches
vpinmdb_client.h
Go to the documentation of this file.
1
10#ifndef VPINMDB_CLIENT_H
11#define VPINMDB_CLIENT_H
12
13#include "config/settings.h"
14#include "tables/table_data.h"
16#include "log/logging.h"
17#include <nlohmann/json.hpp>
18#include <filesystem>
19#include <string>
20#include <vector>
21#include <mutex>
22
23namespace fs = std::filesystem;
24
26public:
33 VpinMdbClient(const Settings& settings, LoadingProgress* progress = nullptr, const nlohmann::json* mediaDb = nullptr);
34
40 bool downloadMedia(std::vector<TableData>& tables);
41
42private:
43 const Settings& settings_;
44 LoadingProgress* progress_;
45 nlohmann::json mediaDb_;
46 std::mutex mutex_;
47
52 std::string selectResolution() const;
53};
54
55#endif // VPINMDB_CLIENT_H
Definition vpinmdb_client.h:25
bool downloadMedia(std::vector< TableData > &tables)
Downloads media for a list of tables and updates their media paths.
Definition vpinmdb_client.cpp:87
Defines the LoadingProgress struct for tracking loading state in ASAPCabinetFE.
Tracks the loading progress state for ASAPCabinetFE.
Definition loading_progress.h:33
Definition settings.h:12
Defines the TableData struct for storing VPX table metadata and media paths.