4#include <unordered_map>
6#include <frc2/command/Commands.h>
18 std::shared_ptr<frc2::Command> command) {
19 NamedCommands::GetNamedCommands().emplace(name, command);
23 frc2::CommandPtr &&command) {
25 std::shared_ptr < frc2::Command
26 > (std::move(command).Unwrap()));
36 return NamedCommands::GetNamedCommands().contains(name);
45 static frc2::CommandPtr
getCommand(std::string name);
47 static std::unordered_map<std::string, std::shared_ptr<frc2::Command>>& GetNamedCommands();
Definition: NamedCommands.h:9
static frc2::CommandPtr getCommand(std::string name)
Definition: NamedCommands.cpp:7
static void registerCommand(std::string name, std::shared_ptr< frc2::Command > command)
Definition: NamedCommands.h:17
static bool hasCommand(std::string name)
Definition: NamedCommands.h:35