J
jan.loucka
Hi,
We're building a mapping application and inside we're using open
source dll called MapServer. This dll uses object model that has quite
a few classes. In our app we however need to little bit modify come of
the classes so they match our purpose better - mostly add a few
methods etc.
Example: Open source lib has classes Map and Layer defined. The
relationship between them is one to many.
We created our own versions (inherited) of Map called OurMap and our
version of Layer called OurLayer. The only difference between them is
that they have some extra methods (because we need them to do little
bit extra).
Is there any way how can I convert the base class (either Map or
Layer) to our inherited one (OurMap or OurLayer)?
I know that implicit or explicit conversion operators don't work
between inherited and base class but I was just wondering if there is
another way how to do this or if there's something wrong with our
object design?
Thanks for any help
We're building a mapping application and inside we're using open
source dll called MapServer. This dll uses object model that has quite
a few classes. In our app we however need to little bit modify come of
the classes so they match our purpose better - mostly add a few
methods etc.
Example: Open source lib has classes Map and Layer defined. The
relationship between them is one to many.
We created our own versions (inherited) of Map called OurMap and our
version of Layer called OurLayer. The only difference between them is
that they have some extra methods (because we need them to do little
bit extra).
Is there any way how can I convert the base class (either Map or
Layer) to our inherited one (OurMap or OurLayer)?
I know that implicit or explicit conversion operators don't work
between inherited and base class but I was just wondering if there is
another way how to do this or if there's something wrong with our
object design?
Thanks for any help