blob: 78206d0839b461f829613c3dbbdb48b792f70483 [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05002/* Copyright (c) FIRST 2011-2016. All Rights Reserved. */
Brian Silverman26e4e522015-12-17 01:56:40 -05003/* Open Source Software - may be modified and shared by FRC teams. The code */
Brian Silverman1a675112016-02-20 20:42:49 -05004/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
Brian Silverman26e4e522015-12-17 01:56:40 -05006/*----------------------------------------------------------------------------*/
7
8#ifndef __SMART_DASHBOARD_DATA__
9#define __SMART_DASHBOARD_DATA__
10
11#include <string>
12#include <memory>
13#include "tables/ITable.h"
14
15class Sendable {
16 public:
17 /**
18 * Initializes a table for this sendable object.
19 * @param subtable The table to put the values in.
20 */
21 virtual void InitTable(std::shared_ptr<ITable> subtable) = 0;
22
23 /**
24 * @return the table that is currently associated with the sendable
25 */
26 virtual std::shared_ptr<ITable> GetTable() const = 0;
27
28 /**
29 * @return the string representation of the named data type that will be used
30 * by the smart dashboard for this sendable
31 */
32 virtual std::string GetSmartDashboardType() const = 0;
33};
34
35#endif