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

Reads a dictionary from stream s.

Definition at line 202 of file qdict.h.

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

00203 {
00204     FXuint mysize;
00205     s >> mysize;
00206     i.clear();
00207     FXString key;
00208     for(FXuint n=0; n<mysize; n++)
00209     {
00210         type *item;
00211         FXERRHM(item=new type);
00212         s >> key;
00213         s >> *item;
00214         i.insert(key, item);
00215     }
00216     return s;
00217 }


(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