WPILib 2012
WPILibRoboticsLibraryforFRC
|
#include <EnumCameraParameter.h>
Public Member Functions | |
EnumCameraParameter (const char *setString, const char *getString, bool requiresRestart, const char *const *choices, int numChoices) | |
virtual bool | CheckChanged (bool &changed, char *param) |
virtual void | GetParamFromString (const char *string, int stringLength) |
Enumerated camera parameter. This class represents a camera parameter that takes an enumerated type for a value.
EnumCameraParameter::EnumCameraParameter | ( | const char * | setString, |
const char * | getString, | ||
bool | requiresRestart, | ||
const char *const * | choices, | ||
int | numChoices | ||
) |
Constructor for an enumeration camera parameter. Enumeration camera parameters have lists of value choices and strings that go with them. There are also C++ enumerations to go along with them.
setString | The string for an HTTP request to set the value. |
getString | The string for an HTTP request to get the value. |
choices | An array of strings of the parameter choices set in the http strings. |
numChoices | The number of choices in the enumeration set. |
bool EnumCameraParameter::CheckChanged | ( | bool & | changed, |
char * | param | ||
) | [virtual] |
Check if a parameter has changed and update. Check if a parameter has changed and send the update string if it has changed. This is called from the loop in the parameter task loop.
Reimplemented from IntCameraParameter.
void EnumCameraParameter::GetParamFromString | ( | const char * | string, |
int | stringLength | ||
) | [virtual] |
Extract the parameter value from a string. Extract the parameter value from the camera status message.
string | The string returned from the camera. |
length | The length of the string from the camera. |
Reimplemented from IntCameraParameter.