FACT++  1.0
bool factofits::VerifyCalibrationSize ( uint32_t  size)
inlineprivate

Checks if the size of the input calibration is ok.

Definition at line 347 of file factofits.h.

References ___err___, gLog, size, and str.

Referenced by SetDrsCalibration().

348  {
349  if (size == 1440*1024)
350  return true;
351 
352  std::ostringstream str;
353  str << "Cannot load calibration with anything else than 1440 pixels and 1024 samples per pixel. Got a total size of " << size;
354 #ifdef __EXCEPTIONS
355  throw std::runtime_error(str.str());
356 #else
357  gLog << ___err___ << "ERROR - " << str.str() << std::endl;
358  return false;
359 #endif
360  }
char str[80]
Definition: test_client.c:7
#define gLog
Definition: fits.h:36
#define ___err___
Definition: fits.h:37
int size
Definition: db_dim_server.c:17

+ Here is the caller graph for this function: