WPILib 2012
WPILibRoboticsLibraryforFRC
|
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 __INT_CAMERA_PARAMETER_H__ 00008 #define __INT_CAMERA_PARAMETER_H__ 00009 00010 #include <vxWorks.h> 00011 00016 class IntCameraParameter 00017 { 00018 protected: 00019 const char *m_setString; 00020 const char *m_getString; 00021 bool m_changed; 00022 bool m_requiresRestart; 00023 int m_value; // parameter value 00024 00025 int SearchForParam(const char *pattern, const char *searchString, int searchStringLen, char *result); 00026 00027 public: 00028 IntCameraParameter(const char *setString, const char *getString, bool requiresRestart); 00029 int GetValue(); 00030 void SetValue(int value); 00031 virtual bool CheckChanged(bool &changed, char *param); 00032 virtual void GetParamFromString(const char *string, int stringLength); 00033 }; 00034 00035 #endif