[gdal-dev] Draft GDAL/OGR class hierarchy for GDAL 2.0
Mateusz Łoskot
mateusz at loskot.net
Thu Mar 27 06:05:29 PDT 2014
On 27 March 2014 13:40, Etienne Tourigny <etourigny.dev at gmail.com> wrote:
> 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?
I meant separate base class for mixed dataset, then use "has a"
relationship, like in
class MixedDataset
{
public:
//
private:
RasterDataset* pDtsR
VectorDataset* pDtsV;
}
Best regards,
--
Mateusz Łoskot, http://mateusz.loskot.net
More information about the gdal-dev
mailing list