FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
bool StateMachineSmartFACT::CheckDataSize
(
const
EventImp
&
d
,
const char *
name
,
size_t
size
,
bool
min
=
false
)
inline
private
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
}
MessageImp::Warn
int Warn(const std::string &str)
Definition:
MessageImp.h:48
size
int size
Definition:
db_dim_server.c:17
EventImp::GetSize
virtual size_t GetSize() const
Definition:
EventImp.h:55
Here is the call graph for this function:
StateMachineSmartFACT
Generated on Sun Sep 18 2016 20:51:03 for FACT++ by
1.8.11