FACT++  1.0
bool StateMachineFeedback::CheckEventSize ( size_t  has,
const char *  name,
size_t  size 
)
inlineprivate

Definition at line 103 of file feedback.cc.

104  {
105  if (has==size)
106  return true;
107 
108  // Disconnected
109  if (has==0)
110  return false;
111 
112  ostringstream msg;
113  msg << name << " - Received event has " << has << " bytes, but expected " << size << ".";
114  Fatal(msg);
115  return false;
116  }
int size
Definition: db_dim_server.c:17
int Fatal(const std::string &str)
Definition: MessageImp.h:51