ASAPCabinetFE
 
Loading...
Searching...
No Matches
table_override_manager.h
Go to the documentation of this file.
1
12#ifndef TABLE_OVERRIDE_MANAGER_H
13#define TABLE_OVERRIDE_MANAGER_H
14
15#include "tables/table_data.h"
16#include <nlohmann/json.hpp>
17#include <string>
18
20public:
27
37 void applyOverrides(TableData& table) const;
38
46 void reloadOverrides(TableData& table) const;
47
57 void saveOverride(const TableData& table, const std::map<std::string, std::string>& overrides) const;
58
66 void deleteOverride(const TableData& table) const;
67
74 bool overrideFileExists(const TableData& table) const;
75
76private:
85 std::string getOverrideFilePath(const TableData& table) const;
86};
87
88#endif // TABLE_OVERRIDE_MANAGER_H
Definition table_override_manager.h:19
bool overrideFileExists(const TableData &table) const
Checks if the override JSON file exists for a table.
Definition table_override_manager.cpp:32
TableOverrideManager()=default
Constructs a TableOverrideManager instance.
void reloadOverrides(TableData &table) const
Reloads overrides for a table (placeholder for dynamic reloading).
Definition table_override_manager.cpp:156
void deleteOverride(const TableData &table) const
Deletes the override JSON file for a table if it exists.
Definition table_override_manager.cpp:218
void saveOverride(const TableData &table, const std::map< std::string, std::string > &overrides) const
Saves overrides to the table's JSON file.
Definition table_override_manager.cpp:160
void applyOverrides(TableData &table) const
Applies overrides from the table's JSON file to the TableData object.
Definition table_override_manager.cpp:37
Stores metadata and media paths for a VPX table.
Definition table_data.h:29
Defines the TableData struct for storing VPX table metadata and media paths.