blob: a29c3fdf92588c8e379bfb39c41ad9a7fe5920e0 [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001/*----------------------------------------------------------------------------*/
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 */
16class EnumCameraParameter: public IntCameraParameter
17{
18private:
19 const char *const*m_enumValues;
20 int m_numChoices;
21
22public:
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