Weiterer Klassenentwurf
// File: IOFactry.cc #include <IOFactry.h> #include <GeoObj.h> // ... GeoObj* IOFactory::CreateGeoObj() { if(pIStream && (*pIStream)) { String TypeString; (*pIStream) >> TypeString; if(TypeString != "") return CreateGeoObj(TypeString); else return NULL; } else { cerr << "Have no istream; returning NULL" << endl; } return NULL; } // ...