WPILib 2012
WPILibRoboticsLibraryforFRC
Commands/CommandGroupEntry.h
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 __COMMAND_GROUP_ENTRY_H__
00008 #define __COMMAND_GROUP_ENTRY_H__
00009 
00010 class Command;
00011 
00012 class CommandGroupEntry
00013 {
00014 public:
00015         typedef enum {kSequence_InSequence, kSequence_BranchPeer, kSequence_BranchChild} Sequence;
00016 
00017         CommandGroupEntry();
00018         CommandGroupEntry(Command *command, Sequence state);
00019         CommandGroupEntry(Command *command, Sequence state, double timeout);
00020         bool IsTimedOut();
00021 
00022         double m_timeout;
00023         Command *m_command;
00024         Sequence m_state;
00025 };
00026 
00027 #endif
 All Classes Functions Variables