| 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 | /// \return |
| 101 | /// Returns nothing. |
| 102 | MgDecimalProperty (CREFSTRING name, double value); |
| 103 | |
| 104 | /// \brief |
| 105 | /// Gets the property value. |
| 106 | /// |
| 107 | /// \return |
| 108 | /// Returns the property value. |
| 109 | double GetValue (); |
| 110 | |
| 111 | /// \brief |
| 112 | /// Sets the property value. |
| 113 | /// |
| 114 | /// \return |
| 115 | /// Returns nothing. |
| 116 | void SetValue (double value) |
| 117 | }; |
| 118 | }}} |
| 119 | |