FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
bool StateMachineRateScan::CheckEventSize
(
const
EventImp
&
evt
,
size_t
size
)
inline
private
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
}
size
int size
Definition:
db_dim_server.c:17
EventImp::GetName
virtual std::string GetName() const
Definition:
EventImp.h:51
MessageImp::Fatal
int Fatal(const std::string &str)
Definition:
MessageImp.h:51
EventImp::GetSize
virtual size_t GetSize() const
Definition:
EventImp.h:55
Here is the call graph for this function:
StateMachineRateScan
Generated on Sun Sep 18 2016 20:51:02 for FACT++ by
1.8.11