2016-05-25 22:40:15 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) FIRST 2012-2016. All Rights Reserved. */
|
|
|
|
|
/* 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>
|
|
|
|
|
#include "SmartDashboard/Sendable.h"
|
|
|
|
|
|
|
|
|
|
/**
|
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
|
|
|
};
|