| 133 | == Desktop API additions to base platform APIs == |
| 134 | |
| 135 | In addition to implementing the core abstract classes provided by the MgPlatformBase library, the implementations are extended with additional APIs exclusive to this particular implementation: |
| 136 | |
| 137 | {{{ |
| 138 | |
| 139 | class MgdFeatureService : public MgFeatureService |
| 140 | { |
| 141 | ... |
| 142 | |
| 143 | PUBLISHED_API: |
| 144 | // Registers a new FDO provider given its library path |
| 145 | void RegisterProvider(CREFSTRING providerLibraryPath); |
| 146 | |
| 147 | // Un-registers a given FDO provider from the provider registry |
| 148 | void UnregisterProvider(CREFSTRING providerName); |
| 149 | |
| 150 | // Inserts a new feature into the specified feature class of the specified feature source |
| 151 | MgFeatureReader* InsertFeatures(MgResourceIdentifier* resource, CREFSTRING className, MgPropertyCollection* propertyValues); |
| 152 | |
| 153 | // Updates features of the specified feature class of the specified feature source with the specified filter |
| 154 | int UpdateFeatures(MgResourceIdentifier* resource, CREFSTRING className, MgPropertyCollection* propertyValues, CREFSTRING filter); |
| 155 | |
| 156 | // Deletes features from the specified feature class of the specified feature source with the specified filter |
| 157 | int DeleteFeatures(MgResourceIdentifier* resource, CREFSTRING className, CREFSTRING filter); |
| 158 | |
| 159 | // Inserts a new feature into the specified feature class of the specified feature source using the specified transaction |
| 160 | MgFeatureReader* InsertFeatures(MgResourceIdentifier* resource, CREFSTRING className, MgPropertyCollection* propertyValues, MgTransaction* trans); |
| 161 | |
| 162 | // Updates features of the specified feature class of the specified feature source with the specified filter using the specified transaction |
| 163 | int UpdateFeatures(MgResourceIdentifier* resource, CREFSTRING className, MgPropertyCollection* propertyValues, CREFSTRING filter, MgTransaction* trans); |
| 164 | |
| 165 | // Deletes features from the specified feature class of the specified feature source with the specified filter using the specified transaction |
| 166 | int DeleteFeatures(MgResourceIdentifier* resource, CREFSTRING className, CREFSTRING filter, MgTransaction* trans); |
| 167 | }; |
| 168 | |
| 169 | }}} |
| 170 | |