2013-12-15 18:30:16 -05:00
|
|
|
/*
|
|
|
|
|
* NamedSendable.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: Oct 19, 2012
|
|
|
|
|
* Author: Mitchell Wills
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef NAMEDSENDABLE_H_
|
|
|
|
|
#define NAMEDSENDABLE_H_
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
* will use
|
|
|
|
|
*/
|
2015-07-09 01:27:56 -07:00
|
|
|
virtual std::string GetName() const = 0;
|
2013-12-15 18:30:16 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* NAMEDSENDABLE_H_ */
|