LeviLamina
Loading...
Searching...
No Matches
CrashManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
8// auto generated forward declare list
9// clang-format off
10class Scheduler;
11namespace Bedrock { class CrashFileProcessor; }
12namespace Bedrock { class CrashTelemetryProcessor; }
13namespace Bedrock { class WorkerPoolHandleInterface; }
14// clang-format on
15
16namespace Bedrock {
17
18class CrashManager : public ::Bedrock::EnableNonOwnerReferences, public ::Bedrock::ImplBase<::Bedrock::CrashManager> {
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 virtual void initialize(::std::string_view) = 0;
23
24 virtual void setCrashProcessorForFileType(::std::string_view, ::std::shared_ptr<::Bedrock::CrashFileProcessor>) = 0;
25
26 virtual void setCrashTelemetryProcessor(::gsl::not_null<::Bedrock::CrashTelemetryProcessor*>) = 0;
27
28 virtual void processCrashes(::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface>, ::Scheduler&, bool) = 0;
29
30 virtual void notifyCrashed() = 0;
31
32 virtual void notifySystemError(uint, ::std::string const&) = 0;
33
34 virtual void recordCrashedSession(::std::string_view, ::std::string_view, int64) = 0;
35
36 virtual void stopProcessingCrashes() = 0;
37
38 virtual bool isCrashProcessingActive() const = 0;
39
40 virtual ::std::string const& getCrashDataRoot() const = 0;
41
42 virtual ::std::string const& getCrashedSessionFileSuffix() const = 0;
43
44#ifdef LL_PLAT_S
45 virtual ~CrashManager() /*override*/ = default;
46#else // LL_PLAT_C
47 virtual ~CrashManager() /*override*/;
48#endif
49
50 // NOLINTEND
51
52public:
53 // static variables
54 // NOLINTBEGIN
55 MCNAPI_C static ::std::add_lvalue_reference_t<char const[]> DEFAULT_CRASH_DIRECTORY_NAME();
56 // NOLINTEND
57
58public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCNAPI void $dtor();
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67
68 // NOLINTEND
69};
70
71} // namespace Bedrock
Definition CrashFileProcessor.h:18
Definition CrashManager.h:18
Definition CrashTelemetryProcessor.h:13
Definition EnableNonOwnerReferences.h:7
Definition _HeaderOutputPredefine.h:257
Definition WorkerPoolHandleInterface.h:15
Definition Scheduler.h:14