Now you can download a copy of these docs so you can use them offline! Download now
SendableChooser.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2011. 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 $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef __SENDABLE_CHOOSER_H__
8 #define __SENDABLE_CHOOSER_H__
9 
10 #include "SmartDashboard/Sendable.h"
11 #include "tables/ITable.h"
12 #include <map>
13 #include <string>
14 
27 class SendableChooser : public Sendable
28 {
29 public:
31  virtual ~SendableChooser() {};
32 
33  void AddObject(const char *name, void *object);
34  void AddDefault(const char *name, void *object);
35  void *GetSelected();
36 
37  virtual void InitTable(ITable* subtable);
38  virtual ITable* GetTable();
39  virtual std::string GetSmartDashboardType();
40 
41 private:
42  std::string m_defaultChoice;
43  std::map<std::string, void *> m_choices;
44  ITable *m_table;
45 };
46 
47 #endif
Definition: ITable.h:26
virtual void InitTable(ITable *subtable)
void AddDefault(const char *name, void *object)
virtual std::string GetSmartDashboardType()
void AddObject(const char *name, void *object)
virtual ITable * GetTable()

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6