WPILib 2012
WPILibRoboticsLibraryforFRC
Vision/EnumCameraParameter.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. 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 __ENUM_CAMERA_PARAMETER_H__
00008 #define __ENUM_CAMERA_PARAMETER_H__
00009 
00010 #include "IntCameraParameter.h"
00011 
00016 class EnumCameraParameter: public IntCameraParameter
00017 {
00018 private:
00019         const char *const*m_enumValues;
00020         int m_numChoices;
00021 
00022 public:
00023         EnumCameraParameter(const char *setString, const char *getString, bool requiresRestart, const char *const*choices, int numChoices);
00024         virtual bool CheckChanged(bool &changed, char *param);
00025         virtual void GetParamFromString(const char *string, int stringLength);
00026 };
00027 
00028 #endif
 All Classes Functions Variables