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