LeviLamina
Loading...
Searching...
No Matches
LocalProfilerControlBroker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Bedrock::Profiling::Control { struct ProfilerControlRequest; }
8namespace Bedrock::Profiling::Control { struct ProfilerControlResult; }
9// clang-format on
10
11class LocalProfilerControlBroker {
12public:
13 // LocalProfilerControlBroker inner types define
14 enum class ResultResponse : int {
15 SkipResult = 0,
16 RemoveResult = 1,
17 };
18
19public:
20 // member variables
21 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 LocalProfilerControlBroker& operator=(LocalProfilerControlBroker const&);
31 LocalProfilerControlBroker(LocalProfilerControlBroker const&);
32 LocalProfilerControlBroker();
33
34public:
35 // member functions
36 // NOLINTBEGIN
38
39#ifdef LL_PLAT_C
40 MCNAPI void enqueueResult(::Bedrock::Profiling::Control::ProfilerControlResult result);
41#endif
42
44 ::std::function<::LocalProfilerControlBroker::ResultResponse const(
46 )> callback
47 );
48 // NOLINTEND
49};
MCAPI void forEachPendingResult(::std::function<::LocalProfilerControlBroker::ResultResponse const(::Bedrock::Profiling::Control::ProfilerControlResult const &)> callback)
MCAPI void enqueueRequest(::Bedrock::Profiling::Control::ProfilerControlRequest request)
Definition ProfilerControlRequest.h:7
Definition ProfilerControlResult.h:7
Definition Alias.h:14