FACT++  1.0
void MStarguider::commandHandler ( )
virtual

Overwritten DimCommand::commandHandler.

Implements DimCommandHandler.

Definition at line 1323 of file MStarguider.cc.

References fDimScreenshot, fDimTPoint, fScreenshotColor, fScreenshotName, fTPointMode, DimCommandHandler::getCommand(), DimCommand::itsData, and DimCommand::itsSize.

1324 {
1325  DimCommand *cmd = getCommand();
1326  if (!cmd)
1327  return;
1328 
1329  if (cmd==&fDimTPoint)
1330  {
1331  fTPointMode = 2;
1332  fScreenshotName = "";
1333  cout << "DimCommand[TPOINT]: " << cmd->itsSize << " " << string((char*)cmd->itsData, cmd->itsSize) << endl;
1334  return;
1335  }
1336 
1337  if (cmd==&fDimScreenshot && fTPointMode==0)
1338  {
1339  if (cmd->itsSize<2)
1340  return;
1341 
1342  fTPointMode = 2;
1343  fScreenshotColor = ((uint8_t*)cmd->itsData)[0];
1344  fScreenshotName = string((char*)cmd->itsData+1, cmd->itsSize-1);
1345  cout << "DimCommand[SCREENSHOT]: " << fScreenshotName << endl;
1346  return;
1347  }
1348 
1349  cout << "DimCommand[UNKNOWN]: " << cmd->itsSize << " " << string((char*)cmd->itsData, cmd->itsSize) << endl;
1350 }
std::string fScreenshotName
Definition: MStarguider.h:66
void * itsData
Definition: dis.hxx:268
DimCommand * getCommand()
Definition: dis.hxx:41
bool fScreenshotColor
Definition: MStarguider.h:65
int fTPointMode
Definition: MStarguider.h:63
DimCommand fDimScreenshot
Definition: MStarguider.h:31
DimCommand fDimTPoint
Definition: MStarguider.h:30
int itsSize
Definition: dis.hxx:269

+ Here is the call graph for this function: