WPILibC++  2019.2.1-26-ge8b2471
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
WidgetType.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <wpi/StringRef.h>
11 
12 namespace frc {
13 
21 class WidgetType {
22  public:
23  explicit constexpr WidgetType(const char* widgetName)
24  : m_widgetName(widgetName) {}
25  ~WidgetType() = default;
26 
32 
33  private:
34  const char* m_widgetName;
35 };
36 
37 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
wpi::StringRef GetWidgetName() const
Gets the string type of the widget as defined by that widget in Shuffleboard.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
Represents the type of a widget in Shuffleboard.
Definition: WidgetType.h:21