WPILibC++  2019.1.1-beta-4-28-g80f87ff
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ShuffleboardTab.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 <networktables/NetworkTable.h>
13 #include <wpi/StringRef.h>
14 
15 #include "frc/shuffleboard/ShuffleboardContainer.h"
16 #include "frc/smartdashboard/Sendable.h"
17 
18 namespace frc {
19 
20 class ShuffleboardRoot;
21 
29 class ShuffleboardTab final : public ShuffleboardContainer {
30  public:
32 
33  ShuffleboardRoot& GetRoot();
34 
35  void BuildInto(std::shared_ptr<nt::NetworkTable> parentTable,
36  std::shared_ptr<nt::NetworkTable> metaTable) override;
37 
38  private:
39  ShuffleboardRoot& m_root;
40 };
41 
42 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
void BuildInto(std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override
Builds the entries for this value.
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:22
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
Common interface for objects that can contain shuffleboard components.
Definition: ShuffleboardContainer.h:41