jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------------*/
|
| 2 | /* Copyright (c) FIRST 2008. All Rights Reserved. */
|
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */
|
| 4 | /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
|
| 5 | /*----------------------------------------------------------------------------*/
|
| 6 |
|
| 7 | #ifndef __ENUM_CAMERA_PARAMETER_H__
|
| 8 | #define __ENUM_CAMERA_PARAMETER_H__
|
| 9 |
|
| 10 | #include "IntCameraParameter.h"
|
| 11 |
|
| 12 | /**
|
| 13 | * Enumerated camera parameter.
|
| 14 | * This class represents a camera parameter that takes an enumerated type for a value.
|
| 15 | */
|
| 16 | class EnumCameraParameter: public IntCameraParameter
|
| 17 | {
|
| 18 | private:
|
| 19 | const char *const*m_enumValues;
|
| 20 | int m_numChoices;
|
| 21 |
|
| 22 | public:
|
| 23 | EnumCameraParameter(const char *setString, const char *getString, bool requiresRestart, const char *const*choices, int numChoices);
|
| 24 | virtual bool CheckChanged(bool &changed, char *param);
|
| 25 | virtual void GetParamFromString(const char *string, int stringLength);
|
| 26 | };
|
| 27 |
|
| 28 | #endif
|