Skip to content
API Documentation
BastionGuard™
recovery_exporter.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "models.hpp"
4#include <string>
5#include <vector>
6#include <functional>
7
9{
10 std::vector<std::string> exported_images;
11 std::vector<std::string> recovered_files;
12 std::string rescue_image_path;
13 std::string rescue_map_path;
14};
15
17{
18public:
19
20 using CancelCallback = std::function<bool()>;
21
22 static bool create_rescue_image(
23 const std::string& input_path,
24 const std::string& output_image_path,
25 RecoverySummary& summary,
26 std::vector<std::string>& logs,
27 std::string& error,
28 CancelCallback cancel_cb
29 );
30
31 static bool export_results_and_carve(
32 const ScanReport& report,
33 const std::string& output_dir,
34 const std::vector<size_t>& selected_result_indices,
35 RecoverySummary& summary,
36 std::vector<std::string>& logs,
37 std::string& error,
38 CancelCallback cancel_cb // ← NEW
39 );
40};
static bool create_rescue_image(const std::string &input_path, const std::string &output_image_path, RecoverySummary &summary, std::vector< std::string > &logs, std::string &error, CancelCallback cancel_cb)
std::function< bool()> CancelCallback
static bool export_results_and_carve(const ScanReport &report, const std::string &output_dir, const std::vector< size_t > &selected_result_indices, RecoverySummary &summary, std::vector< std::string > &logs, std::string &error, CancelCallback cancel_cb)
std::vector< std::string > exported_images
std::string rescue_map_path
std::string rescue_image_path
std::vector< std::string > recovered_files