[fdo-internals] Re: FDO connect by library

Jackie Ng jumpinjackie at gmail.com
Fri Aug 6 19:20:27 EDT 2010


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.


More information about the fdo-internals mailing list