blob: 9912b6f1eeeb4e5a342e0d9c5466a3abcfb235fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//$Id$
#include "octet_seq.h"
OctetSequence::OctetSequence ()
{
}
bool
OctetSequence::check (const ::DDS_OctetSeq & dds_seq,
const ::DDS::OctetSeq & seq,
const char * test)
{
if (static_cast < ::CORBA::ULong> (dds_seq.length ()) !=
seq.length ())
{
ACE_ERROR ((LM_ERROR, "ERROR %C : "
"Length group_data is not equal to original length.\n",
test));
return false;
}
for (::DDS_Long i = 0; i < dds_seq.length (); ++i)
{
if (seq[i] != dds_seq[i])
{
ACE_ERROR ((LM_ERROR, "ERROR %C : "
"Item %d of group_data is not equal to original.\n",
test, i));
return false;
}
}
return true;
}
|