WPILibC++ 2024.3.2
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
17/**
18 * Returns name of the given enum.
19 *
20 * @return Name of the given enum.
21 */
23 ShuffleboardEventImportance importance) {
24 switch (importance) {
25 case kTrivial:
26 return "TRIVIAL";
27 case kLow:
28 return "LOW";
29 case kNormal:
30 return "NORMAL";
31 case kHigh:
32 return "HIGH";
33 case kCritical:
34 return "CRITICAL";
35 default:
36 return "NORMAL";
37 }
38}
39
40} // namespace frc
basic_string_view< char > string_view
Definition: core.h:501
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)
Returns name of the given enum.
Definition: ShuffleboardEventImportance.h:22