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

Reads a dictionary from stream s.

Definition at line 113 of file qintdict.h.

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

00114 {
00115     FXuint mysize;
00116     s >> mysize;
00117     i.clear();
00118     FXlong key;
00119     for(FXuint n=0; n<mysize; n++)
00120     {
00121         type *item;
00122         FXERRHM(item=new type);
00123         s >> key;
00124         s >> *item;
00125         i.insert((FXint) key, item);
00126     }
00127     return s;
00128 }


(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