FACT++  1.0
bool StateMachineSmartFACT::CheckDataSize ( const EventImp d,
const char *  name,
size_t  size,
bool  min = false 
)
inlineprivate

Definition at line 669 of file smartfact.cc.

References EventImp::GetSize(), and size.

670  {
671  if (d.GetSize()==0)
672  return false;
673 
674  if ((!min && d.GetSize()==size) || (min && d.GetSize()>size))
675  return true;
676 
677  ostringstream msg;
678  msg << name << " - Received service has " << d.GetSize() << " bytes, but expected ";
679  if (min)
680  msg << "more than ";
681  msg << size << ".";
682  Warn(msg);
683  return false;
684  }
int Warn(const std::string &str)
Definition: MessageImp.h:48
int size
Definition: db_dim_server.c:17
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function: