2016-05-25 22:40:15 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2017-01-01 01:05:57 -07:00
|
|
|
/* Copyright (c) FIRST 2012-2017. All Rights Reserved. */
|
2016-05-25 22:40:15 -07: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. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2013-12-15 18:30:16 -05:00
|
|
|
|
2016-05-25 22:40:15 -07:00
|
|
|
#pragma once
|
2013-12-15 18:30:16 -05:00
|
|
|
|
|
|
|
|
#include <string>
|
2016-09-25 16:50:13 -07:00
|
|
|
|
2013-12-15 18:30:16 -05:00
|
|
|
#include "SmartDashboard/Sendable.h"
|
|
|
|
|
|
2016-11-01 22:33:12 -07:00
|
|
|
namespace frc {
|
|
|
|
|
|
2013-12-15 18:30:16 -05:00
|
|
|
/**
|
2015-06-25 15:07:55 -04:00
|
|
|
* The interface for sendable objects that gives the sendable a default name in
|
|
|
|
|
* the Smart Dashboard
|
|
|
|
|
*
|
2013-12-15 18:30:16 -05:00
|
|
|
*/
|
2015-06-25 15:07:55 -04:00
|
|
|
class NamedSendable : public Sendable {
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @return the name of the subtable of SmartDashboard that the Sendable object
|
2016-05-20 17:30:37 -07:00
|
|
|
* will use
|
2015-06-25 15:07:55 -04:00
|
|
|
*/
|
2015-07-09 01:27:56 -07:00
|
|
|
virtual std::string GetName() const = 0;
|
2013-12-15 18:30:16 -05:00
|
|
|
};
|
2016-11-01 22:33:12 -07:00
|
|
|
|
|
|
|
|
} // namespace frc
|