FACT++  1.0
bool StateMachineRateScan::CheckEventSize ( const EventImp evt,
size_t  size 
)
inlineprivate

Definition at line 85 of file ratescan.cc.

References EventImp::GetName(), and EventImp::GetSize().

86  {
87  if (size_t(evt.GetSize())==size)
88  return true;
89 
90  if (evt.GetSize()==0)
91  return false;
92 
93  ostringstream msg;
94  msg << evt.GetName() << " - Received event has " << evt.GetSize() << " bytes, but expected " << size << ".";
95  Fatal(msg);
96  return false;
97  }
int size
Definition: db_dim_server.c:17
virtual std::string GetName() const
Definition: EventImp.h:51
int Fatal(const std::string &str)
Definition: MessageImp.h:51
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function: