blob: 08b330d36b224e77345f58096e9cd6a07aa1d87d [file] [log] [blame]
Brian Silvermanf7f267a2017-02-04 16:16:08 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2012-2017. 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 the root directory of */
5/* the project. */
6/*----------------------------------------------------------------------------*/
7
8#pragma once
9
10#include "SmartDashboard/Sendable.h"
11
12namespace frc {
13
14/**
15 * Live Window Sendable is a special type of object sendable to the live window.
16 */
17class LiveWindowSendable : public Sendable {
18 public:
19 /**
20 * Update the table for this sendable object with the latest
21 * values.
22 */
23 virtual void UpdateTable() = 0;
24
25 /**
26 * Start having this sendable object automatically respond to
27 * value changes reflect the value on the table.
28 */
29 virtual void StartLiveWindowMode() = 0;
30
31 /**
32 * Stop having this sendable object automatically respond to value
33 * changes.
34 */
35 virtual void StopLiveWindowMode() = 0;
36};
37
38} // namespace frc