blob: 1d946944825907d774d11bac868c49dacc8e7bc6 [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05002/* Copyright (c) FIRST 2011-2016. All Rights Reserved. */
Brian Silverman26e4e522015-12-17 01:56:40 -05003/* Open Source Software - may be modified and shared by FRC teams. The code */
Brian Silverman1a675112016-02-20 20:42:49 -05004/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
Brian Silverman26e4e522015-12-17 01:56:40 -05006/*----------------------------------------------------------------------------*/
7
8#include "Commands/PrintCommand.h"
9#include "stdio.h"
10#include <sstream>
11
12PrintCommand::PrintCommand(const std::string &message)
13 : Command(((std::stringstream &)(std::stringstream("Print \"") << message
14 << "\""))
15 .str()
16 .c_str()) {
17 m_message = message;
18}
19
20void PrintCommand::Initialize() { printf("%s", m_message.c_str()); }
21
22void PrintCommand::Execute() {}
23
24bool PrintCommand::IsFinished() { return true; }
25
26void PrintCommand::End() {}
27
28void PrintCommand::Interrupted() {}