WPILibC++ 2023.4.3-108-ge5452e3
ShuffleboardEventImportance.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <string_view>
8
9namespace frc {
10
11// Maintainer note: this enum is mirrored in WPILibJ and in Shuffleboard
12// Modifying the enum or enum strings requires a corresponding change to the
13// Java enum and the enum in Shuffleboard
14
16
18 ShuffleboardEventImportance importance) {
19 switch (importance) {
20 case kTrivial:
21 return "TRIVIAL";
22 case kLow:
23 return "LOW";
24 case kNormal:
25 return "NORMAL";
26 case kHigh:
27 return "HIGH";
28 case kCritical:
29 return "CRITICAL";
30 default:
31 return "NORMAL";
32 }
33}
34
35} // namespace frc
basic_string_view< char > string_view
Definition: core.h:520
Definition: AprilTagPoseEstimator.h:15
ShuffleboardEventImportance
Definition: ShuffleboardEventImportance.h:15
@ kHigh
Definition: ShuffleboardEventImportance.h:15
@ kTrivial
Definition: ShuffleboardEventImportance.h:15
@ kLow
Definition: ShuffleboardEventImportance.h:15
@ kCritical
Definition: ShuffleboardEventImportance.h:15
@ kNormal
Definition: ShuffleboardEventImportance.h:15
std::string_view ShuffleboardEventImportanceName(ShuffleboardEventImportance importance)
Definition: ShuffleboardEventImportance.h:17