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 #include "FDO\Expression\mgDataValue.h" 00022 00023 class FdoDateTimeValue; 00024 00025 BEGIN_NAMESPACE_OSGEO_FDO_SCHEMA 00026 public __value enum DataType; 00027 END_NAMESPACE_OSGEO_FDO_SCHEMA 00028 00029 BEGIN_NAMESPACE_OSGEO_FDO_EXPRESSION 00030 00031 public __gc __interface IExpressionProcessor; 00032 00033 /// \ingroup (OSGeoFDOExpression) 00034 /// \brief 00035 /// The DateTimeValue class derives from DataValue and represents a date or time. 00036 public __gc class DateTimeValue : public NAMESPACE_OSGEO_FDO_EXPRESSION::DataValue 00037 { 00038 public: 00039 /// \brief 00040 /// A cast operator to get the date time value. 00041 /// 00042 /// \return 00043 /// Returns a DateTime 00044 /// 00045 static System::DateTime op_Explicit(NAMESPACE_OSGEO_FDO_EXPRESSION::DateTimeValue* value); 00046 00047 /// \brief 00048 /// Constructs a default instance of an DateTimeValue with a value of null. 00049 /// 00050 /// \return 00051 /// Returns the created DateTimeValue 00052 /// 00053 DateTimeValue(); 00054 00055 /// \brief 00056 /// Constructs a default instance of an DateTimeValue using the specified arguments. 00057 /// 00058 /// \param value 00059 /// Input a DateTime 00060 /// 00061 /// \return 00062 /// Returns the created DateTimeValue 00063 /// 00064 DateTimeValue(System::DateTime value); 00065 00066 /// \brief 00067 /// Gets the data type of the DateTimeValue. 00068 /// 00069 /// \return 00070 /// Returns an DataType 00071 /// 00072 __property NAMESPACE_OSGEO_FDO_SCHEMA::DataType get_DataType(); 00073 00074 /// \brief 00075 /// Gets the date time value. 00076 /// 00077 /// \return 00078 /// Returns a DateTime 00079 /// 00080 __property System::DateTime get_DateTime(); 00081 00082 /// \brief 00083 /// Sets the date time value. 00084 /// 00085 /// \param value 00086 /// Input a DateTime 00087 /// 00088 /// \return 00089 /// Returns nothing 00090 /// 00091 __property System::Void set_DateTime(System::DateTime value); 00092 00093 /// \brief 00094 /// Overrides Expression.Process to pass the DateTimeValue to the appropriate 00095 /// expression processor operation. 00096 /// 00097 /// \param processor 00098 /// Input an IExpressionProcessor 00099 /// 00100 /// \return 00101 /// Returns nothing 00102 /// 00103 System::Void Process(NAMESPACE_OSGEO_FDO_EXPRESSION::IExpressionProcessor* processor); 00104 00105 /// \brief 00106 /// Returns the well defined text representation of this expression. 00107 /// 00108 /// \return 00109 /// Returns a character string 00110 /// 00111 System::String* ToString(); 00112 00113 /// \brief 00114 /// Constructs a DateTimeValue object based on an unmanaged instance of the object 00115 /// 00116 /// \param unmanaged 00117 /// Input A Pointer to the unmanaged object. 00118 /// 00119 /// \param autoDelete 00120 /// Input Indicates if the constructed object should be automatically deleted 00121 /// once it no longer referenced. 00122 /// 00123 DateTimeValue(System::IntPtr unmanaged, System::Boolean autoDelete); 00124 00125 public private: 00126 inline FdoDateTimeValue* GetImpObj(); 00127 }; 00128 END_NAMESPACE_OSGEO_FDO_EXPRESSION 00129 00130
Comments or suggestions? Send us feedback. |