Stand/Stand/NuancedEvent.hpp
2024-10-16 11:20:42 +08:00

25 lines
413 B
C++

#pragma once
#include "fwddecl.hpp"
#include "typedecl.hpp"
namespace Stand
{
#pragma pack(push, 1)
struct NuancedEvent
{
flowevent_t type;
uint8_t severity;
constexpr NuancedEvent(flowevent_t type, uint8_t severity = 100) noexcept
: type(type), severity(severity)
{
}
[[nodiscard]] Label getName() const noexcept;
[[nodiscard]] bool isPreemptive() const noexcept;
};
#pragma pack(pop)
}