WPILibC++  2019.1.1-beta-4-20-gceed1d7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
LiveWindowSendable.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2012-2018 FIRST. 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 <string>
11 
12 #include <wpi/deprecated.h>
13 
14 #include "frc/smartdashboard/Sendable.h"
15 
16 namespace frc {
17 
22 class LiveWindowSendable : public Sendable {
23  public:
24  WPI_DEPRECATED("use Sendable directly instead")
25  LiveWindowSendable() = default;
27  LiveWindowSendable& operator=(LiveWindowSendable&&) = default;
28 
32  virtual void UpdateTable() = 0;
33 
38  virtual void StartLiveWindowMode() = 0;
39 
43  virtual void StopLiveWindowMode() = 0;
44 
45  std::string GetName() const override;
46  void SetName(const wpi::Twine& name) override;
47  std::string GetSubsystem() const override;
48  void SetSubsystem(const wpi::Twine& subsystem) override;
49  void InitSendable(SendableBuilder& builder) override;
50 };
51 
52 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
Live Window Sendable is a special type of object sendable to the live window.
Definition: LiveWindowSendable.h:22
virtual void StartLiveWindowMode()=0
Start having this sendable object automatically respond to value changes reflect the value on the tab...
virtual void StopLiveWindowMode()=0
Stop having this sendable object automatically respond to value changes.
std::string GetName() const override
Gets the name of this Sendable object.
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
void SetSubsystem(const wpi::Twine &subsystem) override
Sets the subsystem name of this Sendable object.
void SetName(const wpi::Twine &name) override
Sets the name of this Sendable object.
virtual void UpdateTable()=0
Update the table for this sendable object with the latest values.
Definition: SendableBuilder.h:23
std::string GetSubsystem() const override
Gets the subsystem name of this Sendable object.
Definition: Sendable.h:18
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79