[fdo-internals] Re: FDO connect by library
Greg Boone
greg.boone at autodesk.com
Mon Aug 9 11:35:52 EDT 2010
This would probably work.
-----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, August 06, 2010 7:20 PM
To: fdo-internals at lists.osgeo.org
Subject: [fdo-internals] Re: FDO connect by library
Would it make something like this possible?
void RegisterProviderByLibrary(FdoString* libPath)
{
FdoPtr<IProviderRegistry> prvReg =
FdoFeatureAccessManager::GetProviderRegistry();
FdoPtr<FdoIConnectionManager> connMgr =
FdoFeatureAccessManager::GetConnectionManager();
FdoPtr<FdoIConnection> conn = connMgr->CreateConnection(libPath);
FdoPtr<FdoIConnectionInfo> connInfo = conn->GetConnectionInfo();
prvReg->RegisterProvider(connInfo->GetProviderName(),
connInfo->GetDisplayName(),
connInfo->GetVersion(),
connInfo->GetFeatureDataObjectsVersion(),
libPath);
}
The ability to register new providers using information that already exists
in the provider library itself?
- Jackie
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/FDO-connect-by-library-tp5381684p5382571.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
More information about the fdo-internals
mailing list