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

Definition at line 84 of file ratecontrol.cc.

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

85  {
86  if (size_t(evt.GetSize())==size)
87  return true;
88 
89  if (evt.GetSize()==0)
90  return false;
91 
92  ostringstream msg;
93  msg << evt.GetName() << " - Received event has " << evt.GetSize() << " bytes, but expected " << size << ".";
94  Fatal(msg);
95  return false;
96  }
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: