WPILibC++  2019.2.1-26-ge8b2471
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ShuffleboardInstance.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 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 <memory>
11 
12 #include "frc/shuffleboard/ShuffleboardRoot.h"
13 #include "frc/shuffleboard/ShuffleboardTab.h"
14 
15 namespace frc {
16 namespace detail {
17 
18 class ShuffleboardInstance final : public ShuffleboardRoot {
19  public:
21  virtual ~ShuffleboardInstance();
22 
24 
25  void Update() override;
26 
27  void EnableActuatorWidgets() override;
28 
29  void DisableActuatorWidgets() override;
30 
31  void SelectTab(int index) override;
32 
33  void SelectTab(wpi::StringRef) override;
34 
35  private:
36  struct Impl;
37  std::unique_ptr<Impl> m_impl;
38 };
39 
40 } // namespace detail
41 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
Definition: ShuffleboardInstance.h:18
NetworkTables Instance.
Definition: NetworkTableInstance.h:53
frc::ShuffleboardTab & GetTab(wpi::StringRef title) override
Gets the tab with the given title, creating it if it does not already exist.
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:22
void EnableActuatorWidgets() override
Enables all widgets in Shuffleboard that offer user control over actuators.
void DisableActuatorWidgets() override
Disables all widgets in Shuffleboard that offer user control over actuators.
void Update() override
Updates all tabs.
Represents a tab in the Shuffleboard dashboard.
Definition: ShuffleboardTab.h:29
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
void SelectTab(int index) override
Selects the tab in the dashboard with the given index in the range [0..n-1], where n is the number of...