WPILibC++ 2023.4.3-108-ge5452e3
ShuffleboardTab.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <memory>
8#include <string_view>
9
11
13
14namespace frc {
15
16class ShuffleboardRoot;
17
18/**
19 * Represents a tab in the Shuffleboard dashboard. Widgets can be added to the
20 * tab with Add(Sendable), Add(std::string_view, Object), and
21 * Add(String, Sendable). Widgets can also be added to layouts with
22 * GetLayout(std::string_view, std::string_view); layouts can be nested
23 * arbitrarily deep (note that too many levels may make deeper components
24 * unusable).
25 */
27 public:
29
31
32 void BuildInto(std::shared_ptr<nt::NetworkTable> parentTable,
33 std::shared_ptr<nt::NetworkTable> metaTable) override;
34
35 private:
36 ShuffleboardRoot& m_root;
37};
38
39} // namespace frc
Common interface for objects that can contain shuffleboard components.
Definition: ShuffleboardContainer.h:42
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:19
Represents a tab in the Shuffleboard dashboard.
Definition: ShuffleboardTab.h:26
ShuffleboardRoot & GetRoot()
void BuildInto(std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override
Builds the entries for this value.
ShuffleboardTab(ShuffleboardRoot &root, std::string_view title)
basic_string_view< char > string_view
Definition: core.h:520
Definition: AprilTagPoseEstimator.h:15