template<class type>
FXStream& FX::operator>> ( FXStream &  s,
QHostAddressDict< type > &  i 
)

Reads a dictionary from stream s.

Definition at line 235 of file QHostAddress.h.

References FX::QDictBase< keytype, type >::clear(), FXERRHM, and FX::QHostAddressDict< type >::insert().

00236 {
00237     FXuint mysize;
00238     s >> mysize;
00239     i.clear();
00240     QHostAddress key;
00241     for(FXuint n=0; n<mysize; n++)
00242     {
00243         type *item;
00244         FXERRHM(item=new type);
00245         s >> key;
00246         s >> *item;
00247         i.insert(key, item);
00248     }
00249     return s;
00250 }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:32:27 2009 for TnFOX by doxygen v1.4.7