WPILibC++  2019.4.1-3-g655763a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ShuffleboardLayout.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/Twine.h>
14 
15 #include "frc/shuffleboard/ShuffleboardComponent.h"
16 #include "frc/shuffleboard/ShuffleboardContainer.h"
17 #include "frc/smartdashboard/Sendable.h"
18 
19 namespace frc {
20 
25 class ShuffleboardLayout : public ShuffleboardComponent<ShuffleboardLayout>,
26  public ShuffleboardContainer {
27  public:
29  const wpi::Twine& type);
30 
31  void BuildInto(std::shared_ptr<nt::NetworkTable> parentTable,
32  std::shared_ptr<nt::NetworkTable> metaTable) override;
33 };
34 
35 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
A layout in a Shuffleboard tab.
Definition: ShuffleboardLayout.h:25
A generic component in Shuffleboard.
Definition: ShuffleboardComponent.h:30
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
Common interface for objects that can contain shuffleboard components.
Definition: ShuffleboardContainer.h:42
void BuildInto(std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override
Builds the entries for this value.