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 // member functions
51 // NOLINTBEGIN
52 MCNAPI explicit StreamFlusher(::Core::Path const& streamPath);
53 // NOLINTEND
54
55 public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCNAPI void* $ctor(::Core::Path const& streamPath);
59 // NOLINTEND
60
61 public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCNAPI ::Core::Result $_flushBuffer(void const* data, uint64 amount);
65 // NOLINTEND
66
67 public:
68 // vftables
69 // NOLINTBEGIN
70 MCNAPI static void** $vftable();
71 // NOLINTEND
72 };
73
74public:
75 // member variables
76 // NOLINTBEGIN
84 // NOLINTEND
85
86public:
87 // prevent constructor by default
91
92public:
93 // virtual functions
94 // NOLINTBEGIN
95 // vIndex: 0
96 virtual ~ScriptDiagnosticsPublishToFile() /*override*/ = default;
97
98 // vIndex: 1
99 virtual bool isStatPublisherEnabled() const /*override*/;
100
101 // vIndex: 2
102 virtual void publishStats(uint64 collectedTick, ::std::vector<::ScriptStat> const& stats) /*override*/;
103 // NOLINTEND
104
105public:
106 // member functions
107 // NOLINTBEGIN
108 MCNAPI bool _createNewCapture(::Core::Path capturePath);
109
111
112 MCNAPI ::Core::Path _getCapturePath(int captureIndex) const;
113
114 MCNAPI bool _initBasePath();
115
116 MCNAPI bool startCapture();
117
118 MCNAPI ::std::optional<::Core::Path> stopCapture();
119 // NOLINTEND
120
121public:
122 // virtual function thunks
123 // NOLINTBEGIN
124 MCNAPI bool $isStatPublisherEnabled() const;
125
126 MCNAPI void $publishStats(uint64 collectedTick, ::std::vector<::ScriptStat> const& stats);
127 // NOLINTEND
128
129public:
130 // vftables
131 // NOLINTBEGIN
132 MCNAPI static void** $vftable();
133 // NOLINTEND
134};
Definition FlushingIOController.h:20
Definition Path.h:11
Definition IScriptStatPublisher.h:10
Definition Path.h:16
Definition ScriptDiagnosticsPublishToFile.h:24
MCAPI void * $ctor(::Core::Path const &streamPath)
MCAPI::Core::Result $_flushBuffer(void const *data, uint64 amount)
MCAPI StreamFlusher(::Core::Path const &streamPath)
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:10
STL namespace.
Definition Alias.h:14