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 | | |