WPILib 2012
WPILibRoboticsLibraryforFRC
|
00001 /*----------------------------------------------------------------------------*/ 00002 /* Copyright (c) FIRST 2011. All Rights Reserved. */ 00003 /* Open Source Software - may be modified and shared by FRC teams. The code */ 00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ 00005 /*----------------------------------------------------------------------------*/ 00006 00007 #ifndef __START_COMMAND_H__ 00008 #define __START_COMMAND_H__ 00009 00010 #include "Commands/Command.h" 00011 00012 class StartCommand : public Command 00013 { 00014 public: 00015 StartCommand(Command *commandToStart); 00016 virtual ~StartCommand() {} 00017 00018 protected: 00019 virtual void Initialize(); 00020 virtual void Execute(); 00021 virtual bool IsFinished(); 00022 virtual void End(); 00023 virtual void Interrupted(); 00024 00025 private: 00026 Command *m_commandToFork; 00027 }; 00028 00029 #endif