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; }
14// clang-format on
15
17public:
18 // ScriptDiagnosticsPublishToFile inner types declare
19 // clang-format off
20 class StreamFlusher;
21 // clang-format on
22
23 // ScriptDiagnosticsPublishToFile inner types define
25 public:
26 // member variables
27 // NOLINTBEGIN
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 StreamFlusher& operator=(StreamFlusher const&);
38
39 public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 0
43 virtual ~StreamFlusher() /*override*/ = default;
44
45 // vIndex: 1
46 virtual ::Core::Result _flushBuffer(void const* data, uint64 amount) /*override*/;
47 // NOLINTEND
48
49 public:
50 // virtual function thunks
51 // NOLINTBEGIN
52 MCNAPI ::Core::Result $_flushBuffer(void const* data, uint64 amount);
53 // NOLINTEND
54
55 public:
56 // vftables
57 // NOLINTBEGIN
58 MCNAPI static void** $vftable();
59 // NOLINTEND
60 };
61
62public:
63 // member variables
64 // NOLINTBEGIN
72 // NOLINTEND
73
74public:
75 // prevent constructor by default
79
80public:
81 // virtual functions
82 // NOLINTBEGIN
83 // vIndex: 0
84 virtual ~ScriptDiagnosticsPublishToFile() /*override*/ = default;
85
86 // vIndex: 1
87 virtual bool isStatPublisherEnabled() const /*override*/;
88
89 // vIndex: 2
90 virtual void publishStats(uint64 collectedTick, ::std::vector<::ScriptStat> const& stats) /*override*/;
91 // NOLINTEND
92
93public:
94 // member functions
95 // NOLINTBEGIN
96 MCNAPI bool _createNewCapture(::Core::Path capturePath);
97
99
100 MCNAPI ::Core::Path _getCapturePath(int captureIndex) const;
101
102 MCNAPI bool _initBasePath();
103
104 MCNAPI bool startCapture();
105
106 MCNAPI ::std::optional<::Core::Path> stopCapture();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCNAPI bool $isStatPublisherEnabled() const;
113
114 MCNAPI void $publishStats(uint64 collectedTick, ::std::vector<::ScriptStat> const& stats);
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
Definition FlushingIOController.h:20
Definition IScriptStatPublisher.h:10
Definition Path.h:16
Definition ScriptDiagnosticsPublishToFile.h:24
MCAPI::Core::Result $_flushBuffer(void const *data, uint64 amount)
Definition ScriptDiagnosticsPublishToFile.h:16
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:5
STL namespace.
Definition Alias.h:14