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

Reads a dictionary from stream s.

Definition at line 122 of file qptrdict.h.

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

00123 {
00124     FXuint mysize;
00125     s >> mysize;
00126     i.clear();
00127     FXulong key;
00128     for(FXuint n=0; n<mysize; n++)
00129     {
00130         type *item;
00131         FXERRHM(item=new type);
00132         s >> key;
00133         s >> *item;
00134         i.insert((void *)(FXuval) key, item);
00135     }
00136     return s;
00137 }


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