WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::cmd::PrintCommand Class Reference

A command that prints a string when initialized. More...

#include <wpi/commands2/PrintCommand.hpp>

Inheritance diagram for wpi::cmd::PrintCommand:
wpi::cmd::CommandHelper< InstantCommand, PrintCommand >

Public Member Functions

 PrintCommand (std::string_view message)
 Creates a new a PrintCommand.
 PrintCommand (PrintCommand &&other)=default
 PrintCommand (const PrintCommand &other)=default
bool RunsWhenDisabled () const override
Public Member Functions inherited from wpi::cmd::CommandHelper< InstantCommand, PrintCommand >
 CommandHelper ()=default
CommandPtr ToPtr () &&override

Detailed Description

A command that prints a string when initialized.

This class is provided by the NewCommands VendorDep

Constructor & Destructor Documentation

◆ PrintCommand() [1/3]

wpi::cmd::PrintCommand::PrintCommand ( std::string_view message)
explicit

Creates a new a PrintCommand.

Parameters
messagethe message to print

◆ PrintCommand() [2/3]

wpi::cmd::PrintCommand::PrintCommand ( PrintCommand && other)
default

◆ PrintCommand() [3/3]

wpi::cmd::PrintCommand::PrintCommand ( const PrintCommand & other)
default

Member Function Documentation

◆ RunsWhenDisabled()

bool wpi::cmd::PrintCommand::RunsWhenDisabled ( ) const
override

The documentation for this class was generated from the following file: