Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
SmartDashboard
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
:
30
SendableChooser
();
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
ITable
Definition:
ITable.h:26
SendableChooser::GetSelected
void * GetSelected()
Definition:
SendableChooser.cpp:50
Sendable
Definition:
Sendable.h:13
SendableChooser::InitTable
virtual void InitTable(ITable *subtable)
Definition:
SendableChooser.cpp:59
SendableChooser::AddDefault
void AddDefault(const char *name, void *object)
Definition:
SendableChooser.cpp:39
SendableChooser
Definition:
SendableChooser.h:27
SendableChooser::GetSmartDashboardType
virtual std::string GetSmartDashboardType()
Definition:
SendableChooser.cpp:76
SendableChooser::AddObject
void AddObject(const char *name, void *object)
Definition:
SendableChooser.cpp:27
SendableChooser::GetTable
virtual ITable * GetTable()
Definition:
SendableChooser.cpp:72
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.