WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
PrintCommand.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2011-2017. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <string>
11 
12 #include "Commands/InstantCommand.h"
13 
14 namespace frc {
15 
16 class PrintCommand : public InstantCommand {
17  public:
18  explicit PrintCommand(const std::string& message);
19  virtual ~PrintCommand() = default;
20 
21  protected:
22  virtual void Initialize();
23 
24  private:
25  std::string m_message;
26 };
27 
28 } // namespace frc
virtual void Initialize()
The initialize method is called the first time this Command is run after being started.
Definition: PrintCommand.cpp:19
Definition: PrintCommand.h:16
This command will execute once, then finish immediately afterward.
Definition: InstantCommand.h:22