File-backed storage for NVIDIA preference undo data.
More...
#include <src/platform/windows/nvprefs/undo_file.h>
File-backed storage for NVIDIA preference undo data.
◆ create_new_file()
| std::optional< undo_file_t > nvprefs::undo_file_t::create_new_file |
( |
std::filesystem::path | file_path | ) |
|
|
static |
Create new file.
- Parameters
-
- Returns
- Created new file object or status.
◆ delete_file()
| bool nvprefs::undo_file_t::delete_file |
( |
| ) |
|
Delete the persisted NVIDIA settings undo file.
- Returns
- True when the undo-file operation succeeds.
◆ open_existing_file()
| std::optional< undo_file_t > nvprefs::undo_file_t::open_existing_file |
( |
std::filesystem::path | file_path, |
|
|
bool & | access_denied ) |
|
static |
Open existing file.
- Parameters
-
| file_path | File path. |
| access_denied | Access denied. |
- Returns
- Open undo file wrapper, or std::nullopt when the file cannot be opened.
◆ read_undo_data()
| std::optional< undo_data_t > nvprefs::undo_file_t::read_undo_data |
( |
| ) |
|
Read undo data.
- Returns
- Parsed undo data, or std::nullopt when the file is empty or invalid.
◆ write_undo_data()
| bool nvprefs::undo_file_t::write_undo_data |
( |
const undo_data_t & | undo_data | ) |
|
Write undo data.
- Parameters
-
| undo_data | Driver settings to persist for a later restore. |
- Returns
- True when the undo-file operation succeeds.
The documentation for this class was generated from the following files: