2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2019-08-25 23:55:59 -04:00
|
|
|
/* Copyright (c) 2011-2019 FIRST. All Rights Reserved. */
|
2013-12-15 18:30:16 -05:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* 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
|
|
|
|
2016-11-01 22:33:12 -07:00
|
|
|
namespace frc {
|
|
|
|
|
|
2017-12-04 23:28:33 -08:00
|
|
|
class SendableBuilder;
|
|
|
|
|
|
2019-09-14 15:22:54 -05:00
|
|
|
/**
|
|
|
|
|
* Interface for Sendable objects.
|
|
|
|
|
*/
|
2015-06-25 15:07:55 -04:00
|
|
|
class Sendable {
|
|
|
|
|
public:
|
2017-12-04 23:28:33 -08:00
|
|
|
virtual ~Sendable() = default;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Initializes this Sendable object.
|
|
|
|
|
*
|
|
|
|
|
* @param builder sendable builder
|
2015-06-25 15:07:55 -04:00
|
|
|
*/
|
2017-12-04 23:28:33 -08:00
|
|
|
virtual void InitSendable(SendableBuilder& builder) = 0;
|
2013-12-15 18:30:16 -05:00
|
|
|
};
|
2016-11-01 22:33:12 -07:00
|
|
|
|
|
|
|
|
} // namespace frc
|