FACT++  1.0
template<class T>
bool StateMachineFAD< T >::Check ( const uint32_t *  dat,
uint32_t  maxaddr,
uint32_t  maxval 
)
inlineprivate

Definition at line 634 of file fadctrl.cc.

References Error().

635  {
636  if (dat[0]>maxaddr)
637  {
638  ostringstream msg;
639  msg << hex << "Address " << dat[0] << " out of range, max=" << maxaddr << ".";
640  T::Error(msg);
641  return false;
642  }
643 
644  if (dat[1]>maxval)
645  {
646  ostringstream msg;
647  msg << hex << "Value " << dat[1] << " out of range, max=" << maxval << ".";
648  T::Error(msg);
649  return false;
650  }
651 
652  return true;
653  }
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function: