FACT++  1.0
int StateMachineRateScan::SetReferencePatch ( const EventImp evt)
inlineprivate

Definition at line 363 of file ratescan.cc.

References Error(), and EventImp::GetUInt().

Referenced by StateMachineRateScan().

364  {
365  if (!CheckEventSize(evt, 4))
366  return kSM_FatalError;
367 
368  if (evt.GetUInt()>159)
369  {
370  Error("SetReferencePatch - Patch index out of range [0;159]");
371  return GetCurrentState();
372  }
373 
374  fReference = kPatch;
375  fReferenceIdx = evt.GetUInt();
376 
377  return GetCurrentState();
378  }
int GetCurrentState() const
return the current state of the machine
Fatal error: stop program.
reference_t fReference
Definition: ratescan.cc:74
int Error(const std::string &str)
Definition: MessageImp.h:49
uint32_t GetUInt() const
Definition: EventImp.h:94
uint16_t fReferenceIdx
Definition: ratescan.cc:75
bool CheckEventSize(const EventImp &evt, size_t size)
Definition: ratescan.cc:85

+ Here is the call graph for this function:

+ Here is the caller graph for this function: