mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
The non-NT portion has been moved to wpiutil. The NT portion has been moved to ntcore (as NTSendable). SendableBuilder similarly split and moved. SendableRegistry moved to wpiutil. In C++, SendableHelper also moved to wpiutil. This enables use of Sendable from wpimath and also enables moving several classes from wpilib to wpimath.
27 lines
534 B
C++
27 lines
534 B
C++
// Copyright (c) FIRST and other WPILib contributors.
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
#pragma once
|
|
|
|
namespace wpi {
|
|
|
|
class SendableBuilder;
|
|
|
|
/**
|
|
* Interface for Sendable objects.
|
|
*/
|
|
class Sendable {
|
|
public:
|
|
virtual ~Sendable() = default;
|
|
|
|
/**
|
|
* Initializes this Sendable object.
|
|
*
|
|
* @param builder sendable builder
|
|
*/
|
|
virtual void InitSendable(SendableBuilder& builder) = 0;
|
|
};
|
|
|
|
} // namespace wpi
|