Brian Silverman | 26e4e52 | 2015-12-17 01:56:40 -0500 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/ |
Brian Silverman | 1a67511 | 2016-02-20 20:42:49 -0500 | [diff] [blame^] | 2 | /* Copyright (c) FIRST 2011-2016. All Rights Reserved. */ |
Brian Silverman | 26e4e52 | 2015-12-17 01:56:40 -0500 | [diff] [blame] | 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
Brian Silverman | 1a67511 | 2016-02-20 20:42:49 -0500 | [diff] [blame^] | 4 | /* must be accompanied by the FIRST BSD license file in the root directory of */ |
| 5 | /* the project. */ |
Brian Silverman | 26e4e52 | 2015-12-17 01:56:40 -0500 | [diff] [blame] | 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | #ifndef __SMART_DASHBOARD_DATA__ |
| 9 | #define __SMART_DASHBOARD_DATA__ |
| 10 | |
| 11 | #include <string> |
| 12 | #include <memory> |
| 13 | #include "tables/ITable.h" |
| 14 | |
| 15 | class 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 |