#include <MityViewerInterface.h>
|
enum | teStatus {
eeCapturingStart,
eeCapturingEnd,
eeGood,
eeWarning,
eeError,
eeClear,
eeInfo
} |
|
Static Public Member Functions inherited from SocCamera::tcCommandInterface |
static std::string | registerName (uint32_t anReg) |
|
static void | UpdateStatus (teStatus aeStatus, const char *apMessage) |
|
static void | DisableIndicators (bool abDisable) |
|
static const int | HIGHEST_PRIORITY = -2 |
|
static const int | HIGH_PRIORITY = -1 |
|
static const int | NORMAL_PRIORITY = 0 |
|
static const int | LOW_PRIORITY = 1 |
|
static const int | LOWEST_PRIORITY = 2 |
|
Protected Member Functions inherited from SocCamera::tcCommandInterface |
void | Report (const char *fmt,...) |
| This method routes text to stderr. More...
|
|
void | ReportError (const char *fmt,...) |
|
void | setPriority (int anRelativePriority) |
|
const char * | statusToString (teStatus aeStatus) |
|
Protected Attributes inherited from SocCamera::tcCommandInterface |
std::string | m_ifacename |
|
tcSensorBoard * | mpSensor |
|
tcIOChannel * | mpChannel |
|
bool | mbKillThread |
|
Static Protected Attributes inherited from SocCamera::tcCommandInterface |
static tcAbstractHandler * | gpChainHead = NULL |
|
static tcAbstractHandler * | gpChainTail = NULL |
|
static std::map< std::string, tcAbstractHandler * > | mcStringMap |
|
static tcMutex | chain_initializer = tcMutex() |
|
static std::list< tcStatusReporter * > | mcReporters |
|
◆ tcMityViewerInterface() [1/2]
◆ tcMityViewerInterface() [2/2]
◆ ~tcMityViewerInterface()
tcMityViewerInterface::~tcMityViewerInterface |
( |
| ) |
|
|
virtual |
◆ addTEC()
void SocCamera::tcMityViewerInterface::addTEC |
( |
tcPIDControl * |
apPID | ) |
|
|
virtual |
When a TEC cooler is present to control, call this function to add control into the chain.
Function is virtual because some interfaces (like MityViewer) don't use the chain and would like to have more direct control over the result.
- Parameters
-
apPID | - pointer to the PID controller object |
Reimplemented from SocCamera::tcCommandInterface.
◆ finish()
virtual void SocCamera::tcMityViewerInterface::finish |
( |
std::string & |
arOriginalBuffer | ) |
|
|
inlinevirtual |
Perform cleanup tasks. (eg: reboot, signal thread to die, etc).
- Parameters
-
arOriginalBuffer | - the original buffer that was gotten |
Implements SocCamera::tcCommandInterface.
◆ getInput()
virtual void SocCamera::tcMityViewerInterface::getInput |
( |
std::string * |
apStringOutput | ) |
|
|
inlinevirtual |
Gets the input from whatever means it has to and stores it in the std::string pointed to by the parameter.
- Parameters
-
apStringOutput | - pointer to the location to store the input |
Implements SocCamera::tcCommandInterface.
◆ parseInput()
virtual std::string SocCamera::tcMityViewerInterface::parseInput |
( |
std::string & |
arStringOutput | ) |
|
|
inlinevirtual |
Process the input string and call whatever functions are appropriate. Returns a value which will be passed to respond().
- Parameters
-
arStringOutput | - the input string to process. |
- Returns
- an int32 code corresponding to the success of processing.
Implements SocCamera::tcCommandInterface.
◆ respond()
virtual void SocCamera::tcMityViewerInterface::respond |
( |
std::string |
ahResponse | ) |
|
|
inlinevirtual |
Send the <ACK>, <NACK> or whatever other response.
- Parameters
-
ahResponse | - the string to output back over the source |
Implements SocCamera::tcCommandInterface.
◆ run()
void * tcMityViewerInterface::run |
( |
| ) |
|
|
virtual |
◆ updateStatus()
virtual void SocCamera::tcMityViewerInterface::updateStatus |
( |
teStatus |
aeStatus, |
|
|
const char * |
apMessage |
|
) |
| |
|
inlineoverridevirtual |
Signifies that the StatusReporter object should update.
- Parameters
-
aeStatus | - the status to report. |
Implements tcStatusReporter.
The documentation for this class was generated from the following files: