blob: 29322b8b3c707e5ae2ee782d200411bc83376a51 [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001/*----------------------------------------------------------------------------*/
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
13class Sendable
14{
15public:
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