LeviLamina
Loading...
Searching...
No Matches
IWatchdog.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Scripting { struct ContextId; }
8namespace Scripting { struct WatchdogEvent; }
9// clang-format on
10
11namespace Scripting {
12
13class IWatchdog {
14public:
15 // member variables
16 // NOLINTBEGIN
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 IWatchdog& operator=(IWatchdog const&);
23 IWatchdog(IWatchdog const&);
24 IWatchdog();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ~IWatchdog() = default;
30
31 virtual void setWatchdogEventHandler(::std::function<void(::Scripting::WatchdogEvent)> watchdogEventHandler) = 0;
32
33 virtual void setWatchdogInterruptPollCounter(uint counter) = 0;
34
35 virtual void beginTiming(::Scripting::ContextId contextId) = 0;
36
37 virtual void endTiming(::Scripting::ContextId contextId) = 0;
38
39 virtual void pushPhase(::std::string const& namedPhase, ::std::chrono::microseconds frameBaseLine) = 0;
40
41 virtual void popPhase() = 0;
42
43 virtual void endFrame() = 0;
44
45 virtual void resetTimings() = 0;
46 // NOLINTEND
47};
48
49} // namespace Scripting
Definition ContextId.h:7
Definition WatchdogEvent.h:7
Definition Alias.h:14