Changes between Version 11 and Version 12 of MapGuideRfc70


Ignore:
Timestamp:
Jul 3, 2009, 3:18:59 AM (15 years ago)
Author:
leaf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc70

    v11 v12  
    8282}}}
    8383
    84 ==== !MgDecimalProperty ====
    85 
    86 Many FDO data sources support decimal type property. So users can create a decimal property in those datasources. However, MapGuide Web API doesn't have a decimal property class. Decimal value is returned as double value.
    87 
    88 {{{
    89 /// \brief
    90 /// Stores decimal data with an associated key name. An instance of this class
    91 /// can be stored in an MgPropertyCollection object. The key name can be used
    92 /// to retrieve the instance from the property collection.
    93 /// Currently
    94 class MgDecimalProperty: public MgNullableProperty
    95 {
    96 PUBLISHED_API:
    97     /// \brief
    98     /// Constructor.
    99     ///
    100     /// \param name
    101     /// Input the property name.
    102     /// \param value
    103     /// Input the property value.
    104     ///
    105     /// \return
    106     /// Returns nothing.
    107     MgDecimalProperty (CREFSTRING name, double value);
    108 
    109     /// \brief
    110     /// Gets the property value.
    111     ///
    112     /// \return
    113     /// Returns the property value.
    114     double GetValue ();
    115  
    116     /// \brief
    117     /// Sets the property value.
    118     ///
    119     /// \param value
    120     /// Input the property value.
    121     ///
    122     /// \return
    123     /// Returns nothing.
    124     void  SetValue (double value)
    125 };
    126 }}}
    127 
    12884==== Changes to Feature Service ====
    12985
     
    151107}}}
    152108
     109==== Changes to !MgPropertyType ====
     110
     111Many FDO data sources support decimal type property. Users can add a decimal property in a feature class in those datasources. However, class MgPropertyType doesn't define a decimal property type. So we will extend class MgPropertyType to add a new type name 'Decimal' so that method MgFeatureService::ApplySchema(...) can handle the decimal property.
     112
     113{{{
     114class MgPropertyType
     115{
     116PUBLISHED_API:
     117    ......
     118    ///////////////////////////////////////////////////
     119    /// \brief
     120    /// Type name for a decimal property.
     121    ///
     122    /// \remarks
     123    /// This property type name is currently used to
     124    /// apply schema only.
     125    static const int Decimal     =  15;
     126};
     127}}}
     128
    153129== Implications ==
    154130