ASAPCabinetFE
 
Loading...
Searching...
No Matches
vpsdb_catalog_table.h
1#ifndef VPSDB_CATALOG_TABLE_H
2#define VPSDB_CATALOG_TABLE_H
3
4#include "vpsdb_metadata.h"
5#include <string>
6#include <queue>
7#include <mutex>
8#include <thread>
9
10namespace vpsdb {
11
12PinballTable loadTableFromJson(const std::string& vpsdbFilePath, size_t index);
13
14// Struct to hold loaded table data (mirrors the original LoadedTableData)
16 size_t index;
17 PinballTable table;
18 std::string backglassPath;
19 std::string playfieldPath;
20};
21
22// Loads table data in the background, including image downloads
23void loadTableInBackground(const std::string& vpsdbFilePath, size_t index,
24 std::queue<LoadedTableData>& loadedTableQueue,
25 std::mutex& mutex, std::atomic<bool>& isTableLoading,
26 const std::string& exePath);
27
28} // namespace vpsdb
29
30#endif // VPSDB_CATALOG_TABLE_H
Definition vpsdb_catalog_table.h:15
Definition vpsdb_metadata.h:45
Data structures for parsing VPSDB JSON in ASAPCabinetFE.