WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Sendable.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2011-2016. 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 <memory>
11 #include <string>
12 
13 #include "tables/ITable.h"
14 
15 namespace frc {
16 
17 class Sendable {
18  public:
23  virtual void InitTable(std::shared_ptr<ITable> subtable) = 0;
24 
28  virtual std::shared_ptr<ITable> GetTable() const = 0;
29 
34  virtual std::string GetSmartDashboardType() const = 0;
35 };
36 
37 } // namespace frc
virtual std::string GetSmartDashboardType() const =0
virtual std::shared_ptr< ITable > GetTable() const =0
virtual void InitTable(std::shared_ptr< ITable > subtable)=0
Initializes a table for this sendable object.
Definition: Sendable.h:17