WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
Sendable.hpp
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
8
9namespace wpi::util {
10
11class SendableBuilder;
12
13/**
14 * Interface for Sendable objects.
15 */
17 public:
18 constexpr virtual ~Sendable() = default;
19
20 /**
21 * Initializes this Sendable object.
22 *
23 * @param builder sendable builder
24 */
25 virtual void InitSendable(SendableBuilder& builder) = 0;
26};
27
28} // namespace wpi::util
#define WPILIB_DLLEXPORT
Definition SymbolExports.hpp:36
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.hpp:21
Interface for Sendable objects.
Definition Sendable.hpp:16
virtual constexpr ~Sendable()=default
virtual void InitSendable(SendableBuilder &builder)=0
Initializes this Sendable object.
Definition raw_os_ostream.hpp:19