FDO .NET API Reference Feature Data Objects

mgIConnectionManager.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (C) 2004-2006  Autodesk, Inc.
00003 * 
00004 * This library is free software; you can redistribute it and/or
00005 * modify it under the terms of version 2.1 of the GNU Lesser
00006 * General Public License as published by the Free Software Foundation.
00007 * 
00008 * This library is distributed in the hope that it will be useful,
00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 * Lesser General Public License for more details.
00012 * 
00013 * You should have received a copy of the GNU Lesser General Public
00014 * License along with this library; if not, write to the Free Software
00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016 *
00017 */
00018 
00019 #pragma once
00020 
00021 BEGIN_NAMESPACE_OSGEO_FDO_CONNECTIONS
00022 public __gc __interface IConnection;
00023 END_NAMESPACE_OSGEO_FDO_CONNECTIONS
00024 
00025 BEGIN_NAMESPACE_OSGEO_FDO
00026 
00027 /// \ingroup (OSGeoFDO)
00028 /// \interface OSGeo::FDO::IConnectionManager
00029 /// \brief
00030 /// The IConnectionManager interface supports dynamic creation of connection objects 
00031 /// given a provider name.
00032 ///
00033 /// \remarks
00034 /// In order for dynamic creation to work, each dynamic link library, shared library, 
00035 /// or assembly that implements a provider must supply a well-defined entry point function that 
00036 /// takes as input a provider name and returns an FdoIConnection instance. The definition of the 
00037 /// entry point function is language- and platform-dependent. For this release of FDO, the 
00038 /// windows libraries supporting FDO providers will be expected to support the following well-known 
00039 /// entry point function, which will create and return an unitialized connection object:
00040 ///
00041 ///        FdoIConnection * CreateConnection();
00042 ///
00043 public __gc __interface IConnectionManager : public System::IDisposable
00044 {
00045 public:
00046     /// \brief
00047     /// Creates an unitialized connection object given the provider name.
00048     /// 
00049     /// \param providerName 
00050     /// The unique name of the feature provider. This name should be of the form 
00051     /// [Company].[Provider].[Version].
00052     /// 
00053     /// \return
00054     /// Returns an instance of an IConnection object. Throws an instance of Exception if an error occurs.
00055     /// 
00056     NAMESPACE_OSGEO_FDO_CONNECTIONS::IConnection* CreateConnection(String* providerName);
00057 
00058     /// \brief
00059     /// Frees a connection library reference given the provider name.
00060     /// 
00061     /// \param providerName 
00062     /// The unique name of the feature provider. This name should be of the form 
00063     /// [Company].[Provider].[Version].
00064     /// 
00065     /// \return
00066     /// Returns nothing. Throws an instance of Exception if an error occurs.
00067     /// 
00068     System::Void FreeLibrary(String* providerName);
00069 };
00070 
00071 END_NAMESPACE_OSGEO_FDO
00072 
00073 

Comments or suggestions? Send us feedback.