31 class PStream :
public _IO_istream_withassign
34 typedef map<String,T *,less<String> > mapa_claves;
38 PStream(
void) : _IO_istream_withassign() {}
41 _IO_istream_withassign::operator=(is);
44 void Registra(
const String &str,
const T *p)
45 { mapa[str]= p->getCopy(); }
49 (_IO_istream_withassign &)(*
this) >> str;
50 mapa_claves::const_iterator i= mapa.find(str);
53 cerr <<
"La clase " << str <<
" no est'a registrada." << endl;
58 void Save(ostream &os)
const 60 mapa_claves::const_iterator i;
61 for(i= mapa.begin();i!=mapa.end();i++)
62 os <<
' ' << (*i).first;