WPILibC++  unspecified
NamedSendable.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2012-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 <string>
11 
12 #include <support/deprecated.h>
13 
14 #include "SmartDashboard/Sendable.h"
15 
16 namespace frc {
17 
23 class WPI_DEPRECATED("use Sendable directly instead") NamedSendable
24  : public Sendable {
25  public:
26  void SetName(const llvm::Twine& name) override;
27  std::string GetSubsystem() const override;
28  void SetSubsystem(const llvm::Twine& subsystem) override;
29  void InitSendable(SendableBuilder& builder) override;
30 };
31 
32 } // namespace frc
Definition: RobotController.cpp:14
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79