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 2012-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 LIVEWINDOWSENDABLE_H_ |
| 9 | #define LIVEWINDOWSENDABLE_H_ |
| 10 | |
| 11 | #include "SmartDashboard/Sendable.h" |
| 12 | |
| 13 | /** |
| 14 | * Live Window Sendable is a special type of object sendable to the live window. |
| 15 | * |
| 16 | * @author Patrick Plenefisch |
| 17 | */ |
| 18 | class LiveWindowSendable : public Sendable { |
| 19 | public: |
| 20 | /** |
| 21 | * Update the table for this sendable object with the latest |
| 22 | * values. |
| 23 | */ |
| 24 | virtual void UpdateTable() = 0; |
| 25 | |
| 26 | /** |
| 27 | * Start having this sendable object automatically respond to |
| 28 | * value changes reflect the value on the table. |
| 29 | */ |
| 30 | virtual void StartLiveWindowMode() = 0; |
| 31 | |
| 32 | /** |
| 33 | * Stop having this sendable object automatically respond to value |
| 34 | * changes. |
| 35 | */ |
| 36 | virtual void StopLiveWindowMode() = 0; |
| 37 | }; |
| 38 | |
| 39 | #endif /* LIVEWINDOWSENDABLE_H_ */ |