jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame] | 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 __SMART_DASHBOARD_DATA__
|
| 8 | #define __SMART_DASHBOARD_DATA__
|
| 9 |
|
| 10 | #include <string>
|
| 11 | #include "tables/ITable.h"
|
| 12 |
|
| 13 | class Sendable
|
| 14 | {
|
| 15 | public:
|
| 16 | /**
|
| 17 | * Initializes a table for this sendable object.
|
| 18 | * @param subtable The table to put the values in.
|
| 19 | */
|
| 20 | virtual void InitTable(ITable* subtable) = 0;
|
| 21 |
|
| 22 | /**
|
| 23 | * @return the table that is currently associated with the sendable
|
| 24 | */
|
| 25 | virtual ITable* GetTable() = 0;
|
| 26 |
|
| 27 | /**
|
| 28 | * @return the string representation of the named data type that will be used by the smart dashboard for this sendable
|
| 29 | */
|
| 30 | virtual std::string GetSmartDashboardType() = 0;
|
| 31 | };
|
| 32 |
|
| 33 | #endif
|