Brian Silverman | 26e4e52 | 2015-12-17 01:56:40 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * NamedSendable.h |
| 3 | * |
| 4 | * Created on: Oct 19, 2012 |
| 5 | * Author: Mitchell Wills |
| 6 | */ |
| 7 | |
| 8 | #ifndef NAMEDSENDABLE_H_ |
| 9 | #define NAMEDSENDABLE_H_ |
| 10 | |
| 11 | #include <string> |
| 12 | #include "SmartDashboard/Sendable.h" |
| 13 | |
| 14 | /** |
| 15 | * The interface for sendable objects that gives the sendable a default name in |
| 16 | * the Smart Dashboard |
| 17 | * |
| 18 | */ |
| 19 | class NamedSendable : public Sendable { |
| 20 | public: |
| 21 | /** |
| 22 | * @return the name of the subtable of SmartDashboard that the Sendable object |
| 23 | * will use |
| 24 | */ |
| 25 | virtual std::string GetName() const = 0; |
| 26 | }; |
| 27 | |
| 28 | #endif /* NAMEDSENDABLE_H_ */ |