WPILibC++  unspecified
SendableChooserBase.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-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 <string>
11 
12 #include <networktables/NetworkTableEntry.h>
13 
14 #include "SmartDashboard/SendableBase.h"
15 
16 namespace frc {
17 
25  public:
26  ~SendableChooserBase() override = default;
27 
28  protected:
29  static const char* kDefault;
30  static const char* kOptions;
31  static const char* kSelected;
32 
33  std::string m_defaultChoice;
34  nt::NetworkTableEntry m_selectedEntry;
35 };
36 
37 } // namespace frc
Definition: RobotController.cpp:14
This class is a non-template base class for SendableChooser.
Definition: SendableChooserBase.h:24
Definition: SendableBase.h:19
NetworkTables Entry.
Definition: NetworkTableEntry.h:35