#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) |
Public Member Functions inherited from IntCameraParameter | |
IntCameraParameter (const char *setString, const char *getString, bool requiresRestart) | |
int | GetValue () |
void | SetValue (int value) |
Additional Inherited Members | |
Protected Member Functions inherited from IntCameraParameter | |
int | SearchForParam (const char *pattern, const char *searchString, int searchStringLen, char *result) |
Protected Attributes inherited from IntCameraParameter | |
const char * | m_setString |
const char * | m_getString |
bool | m_changed |
bool | m_requiresRestart |
int | m_value |
Enumerated camera parameter. This class represents a camera parameter that takes an enumerated type for a value.
Definition at line 16 of file EnumCameraParameter.h.
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. |
Definition at line 20 of file EnumCameraParameter.cpp.
|
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.
Definition at line 34 of file EnumCameraParameter.cpp.
|
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.
Definition at line 52 of file EnumCameraParameter.cpp.