LeviLamina
Loading...
Searching...
No Matches
DebuggerDiagnosticsPublishToFile.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/FlushingIOController.h"
7#include "mc/scripting/diagnostics/IDebuggerStatPublisher.h"
8
9// auto generated forward declare list
10// clang-format off
11class DebuggerStat;
12namespace Core { class Path; }
13namespace Core { class Result; }
14namespace cereal { struct ReflectionCtx; }
15// clang-format on
16
17class DebuggerDiagnosticsPublishToFile : public ::IDebuggerStatPublisher {
18public:
19 // DebuggerDiagnosticsPublishToFile inner types declare
20 // clang-format off
21 class StreamFlusher;
22 // clang-format on
23
24 // DebuggerDiagnosticsPublishToFile inner types define
25 class StreamFlusher : public ::Bedrock::FlushingIOController::Flusher {
26 public:
27 // member variables
28 // NOLINTBEGIN
32 // NOLINTEND
33
34 public:
35 // prevent constructor by default
36 StreamFlusher& operator=(StreamFlusher const&);
37 StreamFlusher(StreamFlusher const&);
38 StreamFlusher();
39
40 public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~StreamFlusher() /*override*/ = default;
44
45 virtual ::Core::Result _flushBuffer(void const* data, uint64 amount) /*override*/;
46 // NOLINTEND
47
48 public:
49 // virtual function thunks
50 // NOLINTBEGIN
51 MCNAPI ::Core::Result $_flushBuffer(void const* data, uint64 amount);
52
53
54 // NOLINTEND
55 };
56
57public:
58 // member variables
59 // NOLINTBEGIN
67 // NOLINTEND
68
69public:
70 // prevent constructor by default
71 DebuggerDiagnosticsPublishToFile& operator=(DebuggerDiagnosticsPublishToFile const&);
72 DebuggerDiagnosticsPublishToFile(DebuggerDiagnosticsPublishToFile const&);
73 DebuggerDiagnosticsPublishToFile();
74
75public:
76 // virtual functions
77 // NOLINTBEGIN
78 virtual ~DebuggerDiagnosticsPublishToFile() /*override*/ = default;
79
80 virtual bool isStatPublisherEnabled() const /*override*/;
81
82 virtual void publishStats(uint64 collectedTick, ::std::vector<::DebuggerStat> const& stats) /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
88 MCNAPI DebuggerDiagnosticsPublishToFile(
89 ::cereal::ReflectionCtx& ctx,
90 bool autoStart,
91 ::std::optional<uint> maxCaptureFiles,
92 ::std::optional<uint> maxCaptureFileSize
93 );
94
95 MCNAPI bool _createNewCapture(::Core::Path capturePath);
96
97 MCNAPI ::Core::Path _getCapturePath(int captureIndex) const;
98
99 MCNAPI bool _initBasePath();
100
101 MCNAPI bool startCapture();
102
103 MCNAPI ::std::optional<::Core::Path> stopCapture();
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCNAPI void* $ctor(
110 ::cereal::ReflectionCtx& ctx,
111 bool autoStart,
112 ::std::optional<uint> maxCaptureFiles,
113 ::std::optional<uint> maxCaptureFileSize
114 );
115 // NOLINTEND
116
117public:
118 // virtual function thunks
119 // NOLINTBEGIN
120 MCNAPI bool $isStatPublisherEnabled() const;
121
122 MCNAPI void $publishStats(uint64 collectedTick, ::std::vector<::DebuggerStat> const& stats);
123
124
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
130 MCNAPI static void** $vftable();
131 // NOLINTEND
132};
Definition FlushingIOController.h:20
Definition Path.h:11
Definition Result.h:11
Definition DebuggerDiagnosticsPublishToFile.h:25
MCAPI::Core::Result $_flushBuffer(void const *data, uint64 amount)
MCAPI bool _createNewCapture(::Core::Path capturePath)
MCAPI void $publishStats(uint64 collectedTick, ::std::vector<::DebuggerStat > const &stats)
MCAPI::Core::Path _getCapturePath(int captureIndex) const
MCAPI bool $isStatPublisherEnabled() const
MCAPI void * $ctor(::cereal::ReflectionCtx &ctx, bool autoStart, ::std::optional< uint > maxCaptureFiles, ::std::optional< uint > maxCaptureFileSize)
static MCAPI void ** $vftable()
MCAPI ::std::optional<::Core::Path > stopCapture()
Definition DebuggerStat.h:10
Definition IDebuggerStatPublisher.h:10
Definition Path.h:16
STL namespace.
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14