blob: 759447f058c47f86c30fb84d7575c6b5c1ab061e [file] [log] [blame]
Brian Silvermanf7f267a2017-02-04 16:16:08 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2012-2017. All Rights Reserved. */
3/* Open Source Software - may be modified and shared by FRC teams. The code */
4/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
6/*----------------------------------------------------------------------------*/
7
8#pragma once
9
10#include <string>
11
12#include "SmartDashboard/Sendable.h"
13
14namespace frc {
15
16/**
17 * The interface for sendable objects that gives the sendable a default name in
18 * the Smart Dashboard
19 *
20 */
21class NamedSendable : public Sendable {
22 public:
23 /**
24 * @return the name of the subtable of SmartDashboard that the Sendable object
25 * will use
26 */
27 virtual std::string GetName() const = 0;
28};
29
30} // namespace frc