00001 /* 00002 * Copyright (C) 2004-2007 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 class FdoWmsIGetFeatureClassCRSNames; 00022 00023 BEGIN_NAMESPACE_OSGEO_FDO_PROVIDERS_WMS 00024 00025 ///<summary> 00026 /// This command gets the list of CRS names supported by specified FeatureClass 00027 /// returned from the WMS service. 00028 ///</summary> 00029 public __gc class GetFeatureClassCRSNamesCommand : public NAMESPACE_OSGEO_FDO_COMMANDS::ICommandImp, public NAMESPACE_OSGEO_FDO_PROVIDERS_WMS::IGetFeatureClassCRSNames 00030 { 00031 public: 00032 /// <summary> 00033 /// Constructs a WMS GetFeatureClassCRSNames command using the result 00034 /// returned from IConnection::CreateCommand(). This constructor is provided 00035 /// in order that clients are provided a mechanism to downcast from the FDO 00036 /// ICommand interface to an FDO Provider specific interface that derives from ICommand. 00037 /// This constructor is the only mechanism provided by the FDO Managed API that will 00038 /// allow the client to correctly construct a provider specific ICommand instance. 00039 /// </summary> 00040 GetFeatureClassCRSNamesCommand(NAMESPACE_OSGEO_FDO_COMMANDS::ICommand* command, System::Boolean autoDelete); 00041 00042 /// <summary> 00043 /// Executes the command. An exception is thrown if the feature class is NULL. 00044 /// </summary> 00045 /// <returns> 00046 /// Returns a list of CRS names supportted by specific featureclass. 00047 /// </returns> 00048 NAMESPACE_OSGEO_COMMON::StringCollection* Execute(); 00049 00050 /// <summary> 00051 /// Sets the name of the FeatureClass to get all supported CRS names. 00052 /// This function is mandatory; if not specified, 00053 /// execution of the command will throw exception. 00054 /// </summary> 00055 /// <param name="name"> 00056 /// Input the FeatureClass name. 00057 /// </param> 00058 /// <returns> 00059 /// Returns nothing. 00060 /// </returns> 00061 System::Void set_FeatureClassName(System::String* value); 00062 00063 /// <summary> 00064 /// Gets the name of the FeatureClass to get all supported CRS names. 00065 /// </summary> 00066 /// <returns> 00067 /// Returns the FeatureClass name. 00068 /// </returns> 00069 System::String* get_FeatureClassName(); 00070 00071 public private: 00072 GetFeatureClassCRSNamesCommand(System::IntPtr unmanaged, System::Boolean autoDelete); 00073 00074 inline FdoWmsIGetFeatureClassCRSNames* GetImpObj(); 00075 }; 00076 00077 END_NAMESPACE_OSGEO_FDO_PROVIDERS_WMS