LeviLamina
Loading...
Searching...
No Matches
ScriptDiagnosticsPublishToFile.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/IScriptStatPublisher.h"
8
9// auto generated forward declare list
10// clang-format off
11class ScriptStat;
12namespace Core { class Path; }
13namespace Core { class Result; }
14namespace cereal { struct ReflectionCtx; }
15// clang-format on
16
17class ScriptDiagnosticsPublishToFile : public ::IScriptStatPublisher {
18public:
19 // ScriptDiagnosticsPublishToFile inner types declare
20 // clang-format off
21 class StreamFlusher;
22 // clang-format on
23
24 // ScriptDiagnosticsPublishToFile 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*/;
44
45 virtual ::Core::Result _flushBuffer(void const* data, uint64 amount) /*override*/;
46 // NOLINTEND
47
48 public:
49 // member functions
50 // NOLINTBEGIN
51 MCNAPI explicit StreamFlusher(::Core::Path const& streamPath);
52 // NOLINTEND
53
54 public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCNAPI void* $ctor(::Core::Path const& streamPath);
58 // NOLINTEND
59
60 public:
61 // destructor thunk
62 // NOLINTBEGIN
63 MCNAPI void $dtor();
64 // NOLINTEND
65
66 public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCNAPI ::Core::Result $_flushBuffer(void const* data, uint64 amount);
70
71
72 // NOLINTEND
73
74 public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79 };
80
81public:
82 // member variables
83 // NOLINTBEGIN
91 // NOLINTEND
92
93public:
94 // prevent constructor by default
95 ScriptDiagnosticsPublishToFile& operator=(ScriptDiagnosticsPublishToFile const&);
96 ScriptDiagnosticsPublishToFile(ScriptDiagnosticsPublishToFile const&);
97 ScriptDiagnosticsPublishToFile();
98
99public:
100 // virtual functions
101 // NOLINTBEGIN
102 virtual ~ScriptDiagnosticsPublishToFile() /*override*/;
103
104 virtual bool isStatPublisherEnabled() const /*override*/;
105
106 virtual void publishStats(uint64 collectedTick, ::std::vector<::ScriptStat> const& stats) /*override*/;
107 // NOLINTEND
108
109public:
110 // member functions
111 // NOLINTBEGIN
112 MCNAPI ScriptDiagnosticsPublishToFile(
113 ::cereal::ReflectionCtx& ctx,
114 bool autoStart,
115 ::std::optional<uint> maxCaptureFiles,
116 ::std::optional<uint> maxCaptureFileSize
117 );
118
119 MCNAPI bool _createNewCapture(::Core::Path capturePath);
120
122
123 MCNAPI ::Core::Path _getCapturePath(int captureIndex) const;
124
125 MCNAPI bool _initBasePath();
126
127 MCNAPI bool startCapture();
128
129 MCNAPI ::std::optional<::Core::Path> stopCapture();
130 // NOLINTEND
131
132public:
133 // constructor thunks
134 // NOLINTBEGIN
135 MCNAPI void* $ctor(
136 ::cereal::ReflectionCtx& ctx,
137 bool autoStart,
138 ::std::optional<uint> maxCaptureFiles,
139 ::std::optional<uint> maxCaptureFileSize
140 );
141 // NOLINTEND
142
143public:
144 // destructor thunk
145 // NOLINTBEGIN
146 MCNAPI void $dtor();
147 // NOLINTEND
148
149public:
150 // virtual function thunks
151 // NOLINTBEGIN
152 MCNAPI bool $isStatPublisherEnabled() const;
153
154 MCNAPI void $publishStats(uint64 collectedTick, ::std::vector<::ScriptStat> const& stats);
155
156
157 // NOLINTEND
158
159public:
160 // vftables
161 // NOLINTBEGIN
162 MCNAPI static void** $vftable();
163 // NOLINTEND
164};
Definition FlushingIOController.h:20
Definition Path.h:12
Definition Result.h:11
Definition IScriptStatPublisher.h:10
Definition Path.h:16
Definition ScriptDiagnosticsPublishToFile.h:25
MCAPI void * $ctor(::Core::Path const &streamPath)
MCAPI::Core::Result $_flushBuffer(void const *data, uint64 amount)
MCAPI StreamFlusher(::Core::Path const &streamPath)
MCAPI void * $ctor(::cereal::ReflectionCtx &ctx, bool autoStart, ::std::optional< uint > maxCaptureFiles, ::std::optional< uint > maxCaptureFileSize)
MCAPI bool $isStatPublisherEnabled() const
MCAPI ::std::optional<::Core::Path > stopCapture()
static MCAPI void ** $vftable()
MCAPI::Core::Path _getCapturePath(int captureIndex) const
MCAPI bool _createNewCapture(::Core::Path capturePath)
MCAPI void $publishStats(uint64 collectedTick, ::std::vector<::ScriptStat > const &stats)
Definition ScriptStat.h:10
STL namespace.
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14