ASAPCabinetFE
 
Loading...
Searching...
No Matches
itable_callbacks.h
Go to the documentation of this file.
1
11#ifndef ITABLE_CALLBACKS_H
12#define ITABLE_CALLBACKS_H
13
14#include "table_data.h"
15#include "config/settings.h"
17#include <vector>
18
27public:
28 virtual ~ITableCallbacks() = default;
29
41 virtual bool load(const Settings& settings, std::vector<TableData>& tables, LoadingProgress* progress = nullptr) = 0;
42
54 virtual bool save(const Settings& settings, const std::vector<TableData>& tables, LoadingProgress* progress = nullptr) = 0;
55
68 virtual std::vector<TableData> mergeTables(const Settings& settings, const std::vector<TableData>& newTables, LoadingProgress* progress = nullptr) = 0;
69};
70
71#endif // ITABLE_CALLBACKS_H
Interface for managing ASAP index file operations.
Definition itable_callbacks.h:26
virtual std::vector< TableData > mergeTables(const Settings &settings, const std::vector< TableData > &newTables, LoadingProgress *progress=nullptr)=0
Merges new table data with existing index data.
virtual bool save(const Settings &settings, const std::vector< TableData > &tables, LoadingProgress *progress=nullptr)=0
Saves table data to the ASAP index file.
virtual bool load(const Settings &settings, std::vector< TableData > &tables, LoadingProgress *progress=nullptr)=0
Loads table data from the ASAP index file.
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.