MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / validate

Function validate

tests/DCPS/TimeBasedFilter/main.cpp:224–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222};
223
224void validate(const float expected_x, const float actual_x,
225 const float expected_y, const float actual_y,
226 const int key, bool& valid)
227{
228 if (expected_x != actual_x || expected_y != actual_y) {
229 valid = false;
230 ACE_ERROR((LM_ERROR,
231 ACE_TEXT("%N:%l validate()")
232 ACE_TEXT(" ERROR: for key %d received sample x=%f y=%f")
233 ACE_TEXT(" but expected x=%f y=%f!\n"),
234 key, actual_x, actual_y, expected_x, expected_y));
235 }
236 else {
237 ACE_DEBUG((LM_DEBUG, ACE_TEXT("%N:%l validate() - ")
238 ACE_TEXT("received message with key %d received sample x=%f y=%f\n"),
239 key, actual_x, actual_y));
240 }
241}
242
243bool verify_unreliable(const size_t expected_samples, SampleMap& rcvd_samples)
244{

Callers 2

verify_unreliableFunction · 0.70
verify_reliableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected