WPILibC++ 2023.4.3-108-ge5452e3
frc2::PrintCommand Class Reference

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

#include <frc2/command/PrintCommand.h>

Inheritance diagram for frc2::PrintCommand:
frc2::CommandHelper< InstantCommand, PrintCommand >

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from frc2::CommandHelper< InstantCommand, PrintCommand >
std::unique_ptr< CommandTransferOwnership () &&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]

frc2::PrintCommand::PrintCommand ( std::string_view  message)
explicit

Creates a new a PrintCommand.

Parameters
messagethe message to print

◆ PrintCommand() [2/3]

frc2::PrintCommand::PrintCommand ( PrintCommand &&  other)
default

◆ PrintCommand() [3/3]

frc2::PrintCommand::PrintCommand ( const PrintCommand other)
default

Member Function Documentation

◆ RunsWhenDisabled()

bool frc2::PrintCommand::RunsWhenDisabled ( ) const
override

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