WPILibC++
2020.3.2
LayoutType.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 <wpi/StringRef.h>
11
12
namespace
frc
{
13
21
class
LayoutType
{
22
public
:
23
explicit
constexpr
LayoutType
(
const
char
* layoutName)
24
: m_layoutName(layoutName) {}
25
~
LayoutType
() =
default
;
26
31
wpi::StringRef
GetLayoutName
()
const
;
32
33
private
:
34
const
char
* m_layoutName;
35
};
36
37
}
// namespace frc
frc::LayoutType
Represents the type of a layout in Shuffleboard.
Definition:
LayoutType.h:21
frc::LayoutType::GetLayoutName
wpi::StringRef GetLayoutName() const
Gets the string type of the layout as defined by that layout in Shuffleboard.
wpi::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:49
frc
A class that enforces constraints on the differential drive kinematics.
Definition:
SPIAccelerometerSim.h:16
wpilibc
src
main
native
include
frc
shuffleboard
LayoutType.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16