6 operator<< (TAO_OutputCDR
& cdr
, ECM_Data
& x
)
8 // We are a little careless about error checking in this routine,
9 // because one the CDR gets the error bit on it is never disabled.
10 CORBA::ULong count
= x
.inventory
.current_size ();
11 if (cdr
<< x
.description
.in ()
14 for (ECM_Data::Inventory::ITERATOR i
= x
.inventory
.begin ();
15 i
!= x
.inventory
.end () && cdr
.good_bit ();
18 const ECM_Data::Inventory::ENTRY
& v
= *i
;
23 return cdr
.good_bit ();
27 operator>> (TAO_InputCDR
& cdr
, ECM_Data
& x
)
29 // We are a little careless about error checking in this routine,
30 // because one the CDR gets the error bit on it is never disabled.
32 if (cdr
>> x
.description
.out ()
35 // ACE_DEBUG ((LM_DEBUG, "Decoding <%d> elements\n", count));
37 for (CORBA::ULong i
= 0; i
< count
&& cdr
.good_bit (); ++i
)
44 x
.inventory
.bind (ext_id
, int_id
);
46 // ACE_DEBUG ((LM_DEBUG, "Boung <%d,%f>\n", ext_id, int_id));
49 return cdr
.good_bit ();