Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
|
#include <AbstractHandler.h>
Public Member Functions | |
tcAbstractHandler (tcSensorBoard *apSensor, tcAbstractHandler *apNextHandler=NULL) | |
virtual | ~tcAbstractHandler () |
virtual std::string | execute (std::string &arCommandString, std::string &arParameters) |
void | appendHandler (tcAbstractHandler *apNextHandler) |
tcAbstractHandler * | prependHandler (tcAbstractHandler *apFirstHandler) |
virtual void | update (tsUpdate asMessage) |
virtual void | SetIOChannel (tcIOChannel *apChannel) |
void | unregisterFromFile () |
const std::string & | name () const |
return the handler name More... | |
Public Member Functions inherited from tcObserver | |
tcObserver () | |
virtual | ~tcObserver () |
Protected Member Functions | |
void | Report (const char *fmt,...) |
void | ReportError (const char *fmt,...) |
Static Protected Member Functions | |
static std::string | nack (int32 anNack) |
static std::string | ack (std::string *apValue=NULL) |
static std::string | carrotNumber (float anNum) |
static std::string | carrotNumber (int32 anNum) |
static std::string | carrotNumberHex (int32 anNum) |
static void | handleCode (tcRegUpdateUint32Msg *apMsg, teNackCode anCode) |
Protected Attributes | |
std::string | m_name |
tcAbstractHandler * | mpNextHandler |
tcSensorBoard * | mpSensor |
This is the abstract base class for the chain of responsibility pattern. Commands are passed through the chain and handled when possible
tcAbstractHandler::tcAbstractHandler | ( | tcSensorBoard * | apSensor, |
tcAbstractHandler * | apNextHandler = NULL |
||
) |
|
virtual |
|
staticprotected |
void SocCamera::tcAbstractHandler::appendHandler | ( | tcAbstractHandler * | apNextHandler | ) |
Used to append a handler onto the end of the chain.
apNextHandler | - the handler to append to the chain. |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
virtual |
Call this to launch the chain. Iterates over the handlers until one succeeds or runs out of handlers.
arCommandString | - the command that was found. |
arParameters | - the string of parameters that must be processed. |
Reimplemented in SocCamera::tcFanHandler, SocCamera::tcIndicatorHandler, SocCamera::tcMultipleROIHandler, SocCamera::tcBadPixelHandler< BprCoreProvider >, SocCamera::tcTECHandler, SocCamera::tcClockHandler, SocCamera::tcFilesystemHandler, SocCamera::tcEdgeDetectionHandler, SocCamera::tcStartStopHandler, SocCamera::tcBufferedCLHandler, SocCamera::tcFlipXHandler, SocCamera::tcPinHandler, SocCamera::tcBinningHandler, SocCamera::tcCamlinkPixClockHandler, SocCamera::tcDigitalIOHandler, SocCamera::tcFrameIntervalHandler, SocCamera::tcOutputModeHandler, SocCamera::tcROIHandler, SocCamera::tcExposureHandler, SocCamera::tcGainModeHandler, SocCamera::tcTDIHandler, SocCamera::tcBPPModeHandler, SocCamera::tcCalibrationHandler, SocCamera::tcNoiseReductionHandler, SocCamera::tcSqrtHandler, SocCamera::tcVariableHandler, SocCamera::tcTestPatternHandler, SocCamera::tcPowerHandler, SocCamera::tcVersionHandler, SocCamera::tcPeekHandler, SocCamera::tcPokeHandler, SocCamera::tcRecallConfHandler, SocCamera::tcResetHandler, SocCamera::tcSaveConfHandler, SocCamera::tcShutterModeHandler, SocCamera::tcTemperatureHandler, and SocCamera::tcTriggerHandler.
|
staticprotected |
|
staticprotected |
|
inline |
return the handler name
tcAbstractHandler * SocCamera::tcAbstractHandler::prependHandler | ( | tcAbstractHandler * | apFirstHandler | ) |
Used to prepend a handler to the chain.
apFirstHandler | - the new first handler in the chain. |
|
protected |
|
protected |
Report Error Fucntion
This method routes error text to stderr
[in] | buffer | error text to display |
[in] | length | length of text to display |
|
inlinevirtual |
Reimplemented in SocCamera::tcBPPModeHandler, and SocCamera::tcStartStopHandler.
void SocCamera::tcAbstractHandler::unregisterFromFile | ( | ) |
|
inlinevirtual |
Observers are updated of a change by an observable.
asMessage | - the message sent by the observable. |
Implements tcObserver.
Reimplemented in SocCamera::tcFanHandler, SocCamera::tcBlackLevelHandler, SocCamera::tcGainHandler, SocCamera::tcIndicatorHandler, SocCamera::tcPeekHandler, SocCamera::tcBadPixelHandler< BprCoreProvider >, SocCamera::tcNoiseReductionHandler, SocCamera::tcBinningHandler, SocCamera::tcClockHandler, SocCamera::tcSqrtHandler, SocCamera::tcEdgeDetectionHandler, SocCamera::tcPinHandler, SocCamera::tcFlipXHandler, SocCamera::tcDigitalIOHandler, SocCamera::tcGainModeHandler, SocCamera::tcUserNameHandler, SocCamera::tcBPPModeHandler, SocCamera::tcGigEIOHandler, SocCamera::tcTimeStampHandler, SocCamera::tcU3VHandler, SocCamera::tcTestPatternHandler, SocCamera::tcPokeHandler, SocCamera::tcShutterModeHandler, SocCamera::tcTestPendingAckHandler, SocCamera::tcTriggerHandler, SocCamera::tcCalibrationHandler, SocCamera::tcFrameIntervalHandler, SocCamera::tcROIHandler, SocCamera::tcExposureHandler, and SocCamera::tcStartStopHandler.
|
protected |
|
protected |
|
protected |