[gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0

Etienne Tourigny etourigny.dev at gmail.com
Thu Mar 27 05:40:15 PDT 2014


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 <mateusz at loskot.net> wrote:

> On 27 March 2014 11:24, Even Rouault <even.rouault at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140327/0afb5804/attachment.html>


More information about the gdal-dev mailing list