7 operator<< (TAO_OutputCDR
& cdr
, ECM_Data
& x
)
9 // We are a little careless about error checking in this routine,
10 // because one the CDR gets the error bit on it is never disabled.
11 CORBA::ULong count
= x
.inventory
.current_size ();
12 if (cdr
<< x
.description
.in ()
15 for (ECM_Data::Inventory::ITERATOR i
= x
.inventory
.begin ();
16 i
!= x
.inventory
.end () && cdr
.good_bit ();
19 const ECM_Data::Inventory::ENTRY
& v
= *i
;
24 return cdr
.good_bit ();
28 operator>> (TAO_InputCDR
& cdr
, ECM_Data
& x
)
30 // We are a little careless about error checking in this routine,
31 // because one the CDR gets the error bit on it is never disabled.
33 if (cdr
>> x
.description
.out ()
36 // ACE_DEBUG ((LM_DEBUG, "Decoding <%d> elements\n", count));
38 for (CORBA::ULong i
= 0; i
< count
&& cdr
.good_bit (); ++i
)
45 x
.inventory
.bind (ext_id
, int_id
);
47 // ACE_DEBUG ((LM_DEBUG, "Boung <%d,%f>\n", ext_id, int_id));
50 return cdr
.good_bit ();