How about multiple inheritance for mixed class? Say you have a class for rasters and a class for vectors, and a dataset that would support both types would inherit from these two base classes. Is that what you mean by composite?
Etienne On Thu, Mar 27, 2014 at 9:32 AM, Mateusz Łoskot <mate...@loskot.net> wrote: > On 27 March 2014 11:24, Even Rouault <even.roua...@mines-paris.org> wrote: > >> > >> Is it possible to put it as a member in classes ? > > > > That could have been a way of doing it, yes. Always the debate > composition vs > > inheritance. > > The base classes for raster and vector datasets could have common base > class. > The mixed raster/vector dataset could be defined as a composite of the > former two. > > Best regards, > -- > Mateusz Łoskot, http://mateusz.loskot.net > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev