13 #include "SmartDashboard/SendableChooserBase.h"
14 #include "llvm/StringMap.h"
15 #include "llvm/StringRef.h"
16 #include "tables/ITable.h"
39 void AddObject(llvm::StringRef name,
const T&
object);
40 void AddDefault(llvm::StringRef name,
const T&
object);
43 void InitTable(std::shared_ptr<ITable> subtable)
override;
46 llvm::StringMap<T> m_choices;
51 #include "SendableChooser.inc"
This class is a non-template base class for SendableChooser.
Definition: SendableChooserBase.h:24
The SendableChooser class is a useful tool for presenting a selection of options to the SmartDashboar...
Definition: SendableChooser.h:35
void InitTable(std::shared_ptr< ITable > subtable) override
Initializes a table for this sendable object.
Definition: SendableChooser.inc:67
T GetSelected()
Returns the selected option.
Definition: SendableChooser.inc:57
void AddDefault(llvm::StringRef name, const T &object)
Add the given object to the list of options and marks it as the default.
Definition: SendableChooser.inc:43
void AddObject(llvm::StringRef name, const T &object)
Adds the given object to the list of options.
Definition: SendableChooser.inc:28