2017-12-13 23:45:12 -08:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2012-2018 FIRST. All Rights Reserved. */
|
2017-12-13 23:45:12 -08:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2018-04-29 23:33:19 -07:00
|
|
|
#include <wpi/deprecated.h>
|
2017-12-13 23:45:12 -08:00
|
|
|
|
|
|
|
|
#include "SmartDashboard/Sendable.h"
|
|
|
|
|
|
|
|
|
|
namespace frc {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The interface for sendable objects that gives the sendable a default name in
|
|
|
|
|
* the Smart Dashboard.
|
|
|
|
|
* @deprecated Use Sendable directly instead
|
|
|
|
|
*/
|
|
|
|
|
class WPI_DEPRECATED("use Sendable directly instead") NamedSendable
|
|
|
|
|
: public Sendable {
|
|
|
|
|
public:
|
2018-04-29 23:33:19 -07:00
|
|
|
void SetName(const wpi::Twine& name) override;
|
2017-12-13 23:45:12 -08:00
|
|
|
std::string GetSubsystem() const override;
|
2018-04-29 23:33:19 -07:00
|
|
|
void SetSubsystem(const wpi::Twine& subsystem) override;
|
2017-12-13 23:45:12 -08:00
|
|
|
void InitSendable(SendableBuilder& builder) override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frc
|