Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
SocCamera::tcStartStopHandler Class Reference

#include <StartStopHandler.h>

Inheritance diagram for SocCamera::tcStartStopHandler:
Collaboration diagram for SocCamera::tcStartStopHandler:

Public Types

enum  teStartStop { eeStartCapture, eeStopCapture }
 

Public Member Functions

 tcStartStopHandler (tcSensorBoard *apSensor, tcAbstractHandler *apNextHandler=NULL, std::map< std::string, tcAbstractHandler * > *apMap=NULL)
 
void update (tsUpdate asMessage)
 
virtual void SetIOChannel (tcIOChannel *apChannel)
 
virtual std::string execute (std::string &arCommandString, std::string &arParameters)
 
teNackCode execute (teStartStop aeType, int32 anNumFrames, tcIOChannel *apChannel)
 
- Public Member Functions inherited from SocCamera::tcAbstractHandler
 tcAbstractHandler (tcSensorBoard *apSensor, tcAbstractHandler *apNextHandler=NULL)
 
virtual ~tcAbstractHandler ()
 
void appendHandler (tcAbstractHandler *apNextHandler)
 
tcAbstractHandlerprependHandler (tcAbstractHandler *apFirstHandler)
 
void unregisterFromFile ()
 
const std::string & name () const
 return the handler name More...
 
- Public Member Functions inherited from tcObserver
 tcObserver ()
 
virtual ~tcObserver ()
 

Protected Attributes

tcIOChannelmpChannel
 
- Protected Attributes inherited from SocCamera::tcAbstractHandler
std::string m_name
 
tcAbstractHandlermpNextHandler
 
tcSensorBoardmpSensor
 

Additional Inherited Members

- Protected Member Functions inherited from SocCamera::tcAbstractHandler
void Report (const char *fmt,...)
 
void ReportError (const char *fmt,...)
 
- Static Protected Member Functions inherited from SocCamera::tcAbstractHandler
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)
 

Member Enumeration Documentation

◆ teStartStop

Enumerator
eeStartCapture 
eeStopCapture 

Constructor & Destructor Documentation

◆ tcStartStopHandler()

tcStartStopHandler::tcStartStopHandler ( tcSensorBoard apSensor,
tcAbstractHandler apNextHandler = NULL,
std::map< std::string, tcAbstractHandler * > *  apMap = NULL 
)

Member Function Documentation

◆ execute() [1/2]

std::string tcStartStopHandler::execute ( std::string &  arCommandString,
std::string &  arParameters 
)
virtual

Call this to launch the chain. Iterates over the handlers until one succeeds or runs out of handlers.

Parameters
arCommandString- the command that was found.
arParameters- the string of parameters that must be processed.
Returns
the response to write out the command interface

Reimplemented from SocCamera::tcAbstractHandler.

◆ execute() [2/2]

teNackCode tcStartStopHandler::execute ( tcStartStopHandler::teStartStop  aeType,
int32  anNumFrames,
tcIOChannel apChannel 
)

Start/Stop capture for the IO channels.

Parameters
anNumFrames- the number of frames to capture
apChannel- the channel that should be routing data
Returns
a nack code appropriate for the response

◆ SetIOChannel()

void tcStartStopHandler::SetIOChannel ( tcIOChannel apChannel)
virtual

Reimplemented from SocCamera::tcAbstractHandler.

◆ update()

void tcStartStopHandler::update ( tsUpdate  asMessage)
virtual

Observers are updated of a change by an observable.

Parameters
asMessage- the message sent by the observable.

Reimplemented from SocCamera::tcAbstractHandler.

Member Data Documentation

◆ mpChannel

tcIOChannel* SocCamera::tcStartStopHandler::mpChannel
protected

The documentation for this class was generated from the following files: