Player12
An open source football management simulator
Loading...
Searching...
No Matches
crash_report.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <filesystem>
12#include <optional>
13#include <string_view>
14
22namespace CrashReport
23{
25struct Pending
26{
27 std::filesystem::path report;
28 std::filesystem::path log;
29};
30
35void install();
36
42std::filesystem::path write(std::string_view reason);
43
45std::optional<Pending> pending();
46
48void acknowledge();
49
51std::filesystem::path directory();
52} // namespace CrashReport
Definition crash_report.cpp:266
void install()
Definition crash_report.cpp:269
void acknowledge()
Definition crash_report.cpp:336
fs::path directory()
Definition crash_report.cpp:267
fs::path write(std::string_view reason)
Definition crash_report.cpp:301
std::optional< Pending > pending()
Definition crash_report.cpp:316
Definition crash_report.h:26
std::filesystem::path report
Definition crash_report.h:27
std::filesystem::path log
Empty when the session log was not kept.
Definition crash_report.h:28