WPILibC++
trunk
|
#include <IntCameraParameter.h>
Public Member Functions | |
IntCameraParameter (const char *setString, const char *getString, bool requiresRestart) | |
int | GetValue () |
void | SetValue (int value) |
virtual bool | CheckChanged (bool &changed, char *param) |
virtual void | GetParamFromString (const char *string, int stringLength) |
Protected Member Functions | |
int | SearchForParam (const char *pattern, const char *searchString, int searchStringLen, char *result) |
Protected Attributes | |
const char * | m_setString |
const char * | m_getString |
bool | m_changed |
bool | m_requiresRestart |
int | m_value |
Integer camera parameter. This class represents a camera parameter that takes an integer value.
Definition at line 16 of file IntCameraParameter.h.
IntCameraParameter::IntCameraParameter | ( | const char * | setString, |
const char * | getString, | ||
bool | requiresRestart | ||
) |
Constructor for an integer camera parameter.
setString | The string to set a value in the HTTP request |
getString | The string to retrieve a value in the HTTP request |
Definition at line 17 of file IntCameraParameter.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 in EnumCameraParameter.
Definition at line 52 of file IntCameraParameter.cpp.
|
virtual |
Get a parameter value from the string. Get a parameter value from the camera status string. If it has been changed been changed by the program, then don't update it. Program values have precedence over those written in the camera.
Reimplemented in EnumCameraParameter.
Definition at line 70 of file IntCameraParameter.cpp.
int IntCameraParameter::GetValue | ( | ) |
Get a value for a camera parameter.
Definition at line 30 of file IntCameraParameter.cpp.
|
protected |
pattern | the regular expression |
searchString | the text to search |
searchStringLen | the length of searchString |
result | buffer to put resulting text into, must be pre-allocated |
Definition at line 85 of file IntCameraParameter.cpp.
void IntCameraParameter::SetValue | ( | int | value | ) |
Set a value for a camera parameter. Mark the value for change. The value will be updated in the parameter change loop.
Definition at line 40 of file IntCameraParameter.cpp.