mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
29 lines
600 B
C++
29 lines
600 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
|
|
|
|
#include "wpi/util/SymbolExports.hpp"
|
|
|
|
namespace wpi {
|
|
|
|
class SendableBuilder;
|
|
|
|
/**
|
|
* Interface for Sendable objects.
|
|
*/
|
|
class WPILIB_DLLEXPORT Sendable {
|
|
public:
|
|
constexpr virtual ~Sendable() = default;
|
|
|
|
/**
|
|
* Initializes this Sendable object.
|
|
*
|
|
* @param builder sendable builder
|
|
*/
|
|
virtual void InitSendable(SendableBuilder& builder) = 0;
|
|
};
|
|
|
|
} // namespace wpi
|