| 37 | |
| 38 | {{{ |
| 39 | /// \brief |
| 40 | /// Contains one or more feature class definitions, which specify the structure |
| 41 | /// of feature data in a datastore. |
| 42 | class MgFeatureSchema: public MgNamedSerializable |
| 43 | { |
| 44 | PUBLISHED_API: |
| 45 | ...... |
| 46 | /// \brief |
| 47 | /// Marks the schema for deletion. |
| 48 | /// |
| 49 | /// \return |
| 50 | /// Returns nothing. |
| 51 | void Delete(); |
| 52 | }; |
| 53 | |
| 54 | /// \brief |
| 55 | /// Defines a feature class belonging to a schema. |
| 56 | class MgClassDefinition: public MgNamedSerializable |
| 57 | { |
| 58 | PUBLISHED_API: |
| 59 | ...... |
| 60 | /// \brief |
| 61 | /// Marks the class for deletion. |
| 62 | /// |
| 63 | /// \return |
| 64 | /// Returns nothing. |
| 65 | void Delete(); |
| 66 | }; |
| 67 | |
| 68 | /// \brief |
| 69 | /// Defines the base class for the concreate property definition classes which |
| 70 | /// are used to create data, geometric, object, and raster property definitions. |
| 71 | class MgPropertyDefinition: public MgProperty |
| 72 | { |
| 73 | PUBLISHED_API: |
| 74 | ...... |
| 75 | /// \brief |
| 76 | /// Marks the property for deletion. |
| 77 | /// |
| 78 | /// \return |
| 79 | /// Returns nothing. |
| 80 | void Delete(); |
| 81 | }; |
| 82 | }}} |
| 83 | |
| 84 | === Changes to Feature Service === |
| 85 | |
| 86 | Feature Service will be extended to add one method to apply a schema. |
| 87 | |
| 88 | {{{ |
| 89 | class MgFeatureService : public MgService |
| 90 | { |
| 91 | PUBLISHED_API: |
| 92 | /// \brief |
| 93 | /// Creates or updates a feature schema within the DataStore. |
| 94 | /// |
| 95 | /// \param resource (MgResourceIdentifier) |
| 96 | /// A resource identifier referring to a feature source. |
| 97 | /// \param schema |
| 98 | /// Input schema to be created or updated. |
| 99 | /// |
| 100 | /// \return |
| 101 | /// Returns nothing. |
| 102 | /// |
| 103 | virtual void ApplySchema( |
| 104 | MgResourceIdentifier* resource, |
| 105 | MgFeatureSchema* schema) = 0; |
| 106 | }; |
| 107 | }}} |