WPILibC++  2020.3.2
ShuffleboardTab.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018-2019 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 <networktables/NetworkTable.h>
13 #include <wpi/StringRef.h>
14 
15 #include "frc/shuffleboard/ShuffleboardContainer.h"
16 
17 namespace frc {
18 
19 class ShuffleboardRoot;
20 
28 class ShuffleboardTab final : public ShuffleboardContainer {
29  public:
31 
32  ShuffleboardRoot& GetRoot();
33 
34  void BuildInto(std::shared_ptr<nt::NetworkTable> parentTable,
35  std::shared_ptr<nt::NetworkTable> metaTable) override;
36 
37  private:
38  ShuffleboardRoot& m_root;
39 };
40 
41 } // namespace frc
frc::ShuffleboardTab::BuildInto
void BuildInto(std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override
Builds the entries for this value.
frc::ShuffleboardContainer
Common interface for objects that can contain shuffleboard components.
Definition: ShuffleboardContainer.h:44
frc::ShuffleboardRoot
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:22
wpi::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
frc::ShuffleboardTab
Represents a tab in the Shuffleboard dashboard.
Definition: ShuffleboardTab.h:28
frc
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16