WPILibC++ 2023.4.3
CommandGroupBase.h
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
7#include <memory>
8#include <vector>
9
10#include <wpi/deprecated.h>
11
13
14namespace frc2 {
15
16/**
17 * A base for CommandGroups.
18 *
19 * This class is provided by the NewCommands VendorDep
20 * @deprecated This class is an empty abstraction. Inherit directly from
21 * CommandBase.
22 */
24 public:
25 /**
26 * Adds the given commands to the command group.
27 *
28 * @param commands The commands to add.
29 */
30 virtual void AddCommands(
31 std::vector<std::unique_ptr<Command>>&& commands) = 0;
32};
33} // namespace frc2
A Sendable base class for Commands.
Definition: CommandBase.h:26
A base for CommandGroups.
Definition: CommandGroupBase.h:23
virtual void AddCommands(std::vector< std::unique_ptr< Command > > &&commands)=0
Adds the given commands to the command group.
Definition: InstantCommand.h:14