FDO .NET API Reference | Feature Data Objects |
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 class FdoPropertyValue; 00022 00023 BEGIN_NAMESPACE_OSGEO_COMMON 00024 public __gc __interface IStreamReader; 00025 END_NAMESPACE_OSGEO_COMMON 00026 00027 BEGIN_NAMESPACE_OSGEO_FDO_EXPRESSION 00028 public __gc class Identifier; 00029 public __gc class ValueExpression; 00030 END_NAMESPACE_OSGEO_FDO_EXPRESSION 00031 00032 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS 00033 00034 /// \ingroup (OSGeoFDOCommands) 00035 /// \brief 00036 /// The PropertyValue class represents a property name/value pair. Instances of 00037 /// this class are used to specify or hold onto a reference to a property name 00038 /// and the properties value. 00039 public __gc class PropertyValue : public NAMESPACE_OSGEO_RUNTIME::Disposable 00040 { 00041 public: 00042 /// \brief 00043 /// Constructs a default instance of an PropertyValue. 00044 /// 00045 PropertyValue(); 00046 00047 /// \brief 00048 /// Constructs an instance of an PropertyValue using the specified arguments. 00049 /// 00050 /// \param name 00051 /// Input property name as identifier 00052 /// \param value 00053 /// Input the value of property as an expression 00054 /// 00055 PropertyValue(NAMESPACE_OSGEO_FDO_EXPRESSION::Identifier* name, NAMESPACE_OSGEO_FDO_EXPRESSION::ValueExpression* value); 00056 00057 /// \brief 00058 /// Constructs an instance of an PropertyValue using the specified arguments. 00059 /// 00060 /// \param name 00061 /// Input property name as a string 00062 /// \param value 00063 /// Input the value of property as an expression 00064 /// 00065 /// \return 00066 /// Returns PropertyValue 00067 /// 00068 PropertyValue(System::String* name, NAMESPACE_OSGEO_FDO_EXPRESSION::ValueExpression* value); 00069 00070 /// \brief 00071 /// Gets the property name as an identifier. 00072 /// 00073 /// \return 00074 /// Returns the PropertyValue Identifier 00075 /// 00076 __property NAMESPACE_OSGEO_FDO_EXPRESSION::Identifier* get_Name(); 00077 00078 /// \brief 00079 /// Sets the property name as an identifier. 00080 /// 00081 /// \param value 00082 /// Input the PropertyValue Identifier 00083 /// 00084 /// \return 00085 /// Returns nothing 00086 /// 00087 __property System::Void set_Name(NAMESPACE_OSGEO_FDO_EXPRESSION::Identifier* value); 00088 00089 /// \brief 00090 /// Sets the property name as a string. 00091 /// 00092 /// \param value 00093 /// Input property name as a string 00094 /// 00095 /// \return 00096 /// Returns nothing 00097 /// 00098 System::Void SetName(System::String* value); 00099 00100 /// \brief 00101 /// Gets the value of the property as an ValueExpression. 00102 /// 00103 /// \return 00104 /// Returns the Property value as a ValueExpression 00105 /// 00106 __property NAMESPACE_OSGEO_FDO_EXPRESSION::ValueExpression* get_Value(); 00107 00108 /// \brief 00109 /// Sets the value of the property as an ValueExpression. 00110 /// 00111 /// \param value 00112 /// Input the Property value as a ValueExpression 00113 /// 00114 /// \return 00115 /// Returns nothing 00116 /// 00117 __property System::Void set_Value(NAMESPACE_OSGEO_FDO_EXPRESSION::ValueExpression* value); 00118 00119 /// \brief 00120 /// Sets the value of the property as a string. The string content 00121 /// will be parsed to produce the required ValueExpression. 00122 /// 00123 /// \param value 00124 /// Input the Property value as a String 00125 /// 00126 /// \return 00127 /// Returns nothing 00128 /// 00129 System::Void SetValue(System::String* value); 00130 00131 /// \brief 00132 /// Provides a Reader on a external data source to allow reading 00133 /// in blocks of data. 00134 /// 00135 /// \param stream 00136 /// Input reference to a stream reader 00137 /// 00138 /// \return 00139 /// Returns nothing 00140 /// 00141 __property System::Void set_StreamReader(NAMESPACE_OSGEO_COMMON::IStreamReader* stream); 00142 00143 /// \brief 00144 /// Gets the value of the property as an Stream Reader. 00145 /// 00146 /// \return 00147 /// Returns the value of the propery as an IStreamReader 00148 /// 00149 __property NAMESPACE_OSGEO_COMMON::IStreamReader* get_StreamReader(); 00150 00151 /// \cond DOXYGEN-IGNORE 00152 protected: 00153 System::Void ReleaseUnmanagedObject(); 00154 /// \endcond 00155 00156 public private: 00157 PropertyValue(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_RUNTIME::Disposable(unmanaged, autoDelete) 00158 { 00159 00160 } 00161 00162 inline FdoPropertyValue* GetImpObj(); 00163 }; 00164 00165 END_NAMESPACE_OSGEO_FDO_COMMANDS 00166 00167
Comments or suggestions? Send us feedback. |