Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
MityViewerInterface.h
Go to the documentation of this file.
1 #ifndef MITYVIEWERINTERFACE_H
2 #define MITYVIEWERINTERFACE_H
3 
5 #include "MityViewerApp.h"
7 
8 namespace SocCamera
9 {
10 
12 {
13 public:
14  tcMityViewerInterface(tcIOChannel *apChannel, tcSensorBoard* apSensor);
15  tcMityViewerInterface(tcIOChannel *apChannel, tcSensorBoard* apSensor,
16  int32 anNum);
17 
18  virtual ~tcMityViewerInterface();
19 
20  virtual void getInput(std::string *apStringOutput)
21  {
22  }
23  virtual std::string parseInput(std::string &arStringToParse)
24  {
25  return arStringToParse;
26  }
27  virtual void respond(std::string anResponse)
28  {
29  }
30  virtual void finish(std::string &arOriginalBuffer)
31  {
32  }
33  virtual void* run();
34 
44  virtual void addTEC(tcPIDControl *apPID);
45 
51  virtual void updateStatus(teStatus aeStatus, const char *apMessage) override
52  {
53  if (mpApp)
54  mpApp->ReportError(apMessage);
55  }
56 
57 private:
58  void initApp();
59 
60  tcMityViewerApp* mpApp;
61 };
62 
63 }
64 
65 #endif // MITYVIEWERINTERFACE_H
SocCamera::tcMityViewerInterface::respond
virtual void respond(std::string anResponse)
Definition: MityViewerInterface.h:27
MityViewerApp.h
int32
int32_t int32
Definition: Types.h:8
tcStatusReporter::teStatus
teStatus
Definition: StatusReporter.h:32
SocCamera::tcMityViewerInterface::finish
virtual void finish(std::string &arOriginalBuffer)
Definition: MityViewerInterface.h:30
tcStatusReporter
Base Class for status reporting interface.
Definition: StatusReporter.h:16
SocCamera::tcMityViewerInterface::updateStatus
virtual void updateStatus(teStatus aeStatus, const char *apMessage) override
Definition: MityViewerInterface.h:51
SocCamera::tcPIDControl
Definition: PIDControl.h:27
SocCamera::tcMityViewerInterface::getInput
virtual void getInput(std::string *apStringOutput)
Definition: MityViewerInterface.h:20
SocCamera::tcMityViewerInterface
Definition: MityViewerInterface.h:11
tcIOChannel
Camera Output IO channel management class.
Definition: IOChannel.h:34
SocCamera::tcMityViewerInterface::tcMityViewerInterface
tcMityViewerInterface(tcIOChannel *apChannel, tcSensorBoard *apSensor)
Definition: MityViewerInterface.cpp:5
StatusReporter.h
CommandInterface.h
This file contains the tcCommandInterface class.
SocCamera
Definition: CameraTypes.h:7
SocCamera::tcMityViewerInterface::parseInput
virtual std::string parseInput(std::string &arStringToParse)
Definition: MityViewerInterface.h:23
tcMityViewerApp::ReportError
virtual void ReportError(const char *buffer)
Definition: MityViewerApp.cpp:960
SocCamera::tcSensorBoard
Definition: SensorBoard.h:40
SocCamera::tcCommandInterface
Definition: CommandInterface.h:25
SocCamera::tcMityViewerInterface::addTEC
virtual void addTEC(tcPIDControl *apPID)
Definition: MityViewerInterface.cpp:38
SocCamera::tcMityViewerInterface::~tcMityViewerInterface
virtual ~tcMityViewerInterface()
Definition: MityViewerInterface.cpp:19
tcMityViewerApp
Definition: MityViewerApp.h:41
SocCamera::tcMityViewerInterface::run
virtual void * run()
Definition: MityViewerInterface.cpp:24