[fdo-internals] Please review RFC 66
Greg Boone
greg.boone at autodesk.com
Fri Apr 26 07:36:22 PDT 2013
Thanks Dave. I was thinking along these lines as well. We can implement such a wrapper solution within the FDO Implementation.
Greg
-----Original Message-----
From: fdo-internals-bounces at lists.osgeo.org [mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of David Wilbur
Sent: Friday, April 26, 2013 10:15 AM
To: FDO Internals Mail List
Subject: Re: [fdo-internals] Please review RFC 66
Below is the rough pattern for allowing managed implementations of unmanaged interfaces, it requires an UnmanagedWrapper implementation:
----- Unmanaged
class IUnmanagedInterface
{
virtual SomeMethod()
}
class UnmanagedInterfaceManager
{
RegisterInterface(IUnmanagedInterface interface)
{
// actually register somehow, add to list, use the interface, etc.
}
}
----- Mixed wrapper implementation of the interface, simply forwards to the managed reference
class UnmanagedWrapper : IUnmanagedInterface {
UnmanagedWrapper(managedInterface) { _managedInterface = managedInterface }
SomeMethod() { _managedInterface.SomeMethod() } // forward to the managed implementation }
----- Managed API
interface IManagedInterface
{
SomeMethod()
}
class ManagedInterfaceManager
{
RegisterInterface(IManagedInterface interface)
{
UnmanagedWrapper wrapper = new UnmanagedWrapper(plugin);
UnmanagedInterfaceManager.RegisterInterface(wrapper);
}
}
-----Original Message-----
From: fdo-internals-bounces at lists.osgeo.org [mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Christine Bao
Sent: Thursday, April 25, 2013 11:53 PM
To: FDO Internals Mail List
Subject: Re: [fdo-internals] Please review RFC 66
Hi Jackie,
No, the .NET mgFdoCoordinateSystemTransform is not possible to be override and take effect. I agree with you that this API should not be exposed in .NET side.
The detail of why .NET API cannot be override can refer to previous discussion.
Thanks & regards,
Christine
-----Original Message-----
From: fdo-internals-bounces at lists.osgeo.org [mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Friday, April 26, 2013 12:50 PM
To: fdo-internals at lists.osgeo.org
Subject: Re: [fdo-internals] Please review RFC 66
Is it even possible to override .net FDO classes?
Because that's the only way I could see us taking advantage of such APIs in the .net side. If we can't plug in a custom fully managed implementation of FdoCoordinateSystemTransform into this API, then there isn't much value in exposing this API to the .net side.
- Jackie
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Please-review-RFC-66-tp5048641p5049792.html
Sent from the FDO Internals mailing list archive at Nabble.com.
_______________________________________________
fdo-internals mailing list
fdo-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-internals
_______________________________________________
fdo-internals mailing list
fdo-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-internals
_______________________________________________
fdo-internals mailing list
fdo-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-internals
More information about the fdo-internals
mailing list