00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef ARCSDECLASSMAPPING_H
00020 #define ARCSDECLASSMAPPING_H
00021
00022 #ifdef _WIN32
00023 #pragma once
00024 #endif // _WIN32
00025
00026 class ArcSDEClassMapping;
00027
00028 #include <ArcSDE/Override/FdoArcSDEPropertyMapping.h>
00029 #include <ArcSDE/Override/FdoArcSDEIndexMapping.h>
00030
00031
00032
00033
00034 typedef enum ArcSDEGeometryStorageType
00035 {
00036 ArcSDEGeometryStorageType_Spatial,
00037 ArcSDEGeometryStorageType_SdeBinary,
00038 ArcSDEGeometryStorageType_LOB,
00039 ArcSDEGeometryStorageType_WKB,
00040 ArcSDEGeometryStorageType_SQL,
00041 ArcSDEGeometryStorageType_Normalized
00042 };
00043
00044
00045 class ArcSDEClassMapping : public FdoPhysicalClassMapping
00046 {
00047 protected:
00048
00049
00050
00051
00052
00053
00054 FDOSDE_API ArcSDEClassMapping(void);
00055
00056 public:
00057
00058
00059
00060
00061
00062
00063 FDOSDE_API virtual ~ArcSDEClassMapping(void);
00064
00065
00066
00067
00068
00069
00070
00071 static FDOSDE_API ArcSDEClassMapping* Create(void);
00072
00073
00074
00075
00076
00077
00078
00079 FDOSDE_API void Dispose(void) { delete this; }
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091 FDOSDE_API FdoString* GetTableName();
00092
00093
00094
00095
00096
00097
00098
00099 FDOSDE_API void SetTableName(FdoString*);
00100
00101
00102
00103
00104
00105
00106
00107 FDOSDE_API FdoString* GetOwnerName();
00108
00109
00110
00111
00112
00113
00114
00115 FDOSDE_API void SetOwnerName(FdoString*);
00116
00117
00118
00119
00120
00121
00122
00123 FDOSDE_API FdoString* GetDatabaseName();
00124
00125
00126
00127
00128
00129
00130
00131 FDOSDE_API void SetDatabaseName(FdoString*);
00132
00133
00134
00135
00136
00137
00138
00139 FDOSDE_API ArcSDEGeometryStorageType GetGeometryStorageType();
00140
00141
00142
00143
00144
00145
00146
00147 FDOSDE_API void SetGeometryStorageType(ArcSDEGeometryStorageType type);
00148
00149
00150
00151
00152
00153
00154
00155 FDOSDE_API ArcSDEPropertyMappingCollection* GetProperties();
00156
00157
00158
00159
00160
00161
00162
00163 FDOSDE_API ArcSDEIndexMappingCollection* GetIndexes();
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176 FDOSDE_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs);
00177
00178
00179
00180
00181
00182
00183
00184 FDOSDE_API virtual FdoXmlSaxHandler* XmlStartElement(
00185 FdoXmlSaxContext* context,
00186 FdoString* uri,
00187 FdoString* name,
00188 FdoString* qname,
00189 FdoXmlAttributeCollection* atts
00190 );
00191
00192
00193
00194
00195
00196
00197
00198 FDOSDE_API virtual FdoBoolean XmlEndElement(
00199 FdoXmlSaxContext* context,
00200 FdoString* uri,
00201 FdoString* name,
00202 FdoString* qname
00203 );
00204
00205 protected:
00206
00207
00208
00209 ArcSDEGeometryStorageType m_GeometryStorageType;
00210
00211
00212
00213
00214 FdoPtr<ArcSDEPropertyMappingCollection> m_PropertyMappings;
00215
00216
00217
00218
00219 FdoPtr<ArcSDEIndexMappingCollection> m_IndexMappings;
00220
00221
00222
00223
00224 FdoStringP m_TableName;
00225
00226
00227
00228
00229 FdoStringP m_OwnerName;
00230
00231
00232
00233
00234 FdoStringP m_DatabaseName;
00235 };
00236
00237
00238 class ArcSDEClassMappingCollection : public FdoPhysicalElementMappingCollection<ArcSDEClassMapping>
00239 {
00240 protected:
00241
00242 ArcSDEClassMappingCollection () { ArcSDEClassMappingCollection(NULL); }
00243
00244
00245
00246
00247
00248
00249
00250 FDOSDE_API ArcSDEClassMappingCollection(ArcSDESchemaMapping* parent) : FdoPhysicalElementMappingCollection<ArcSDEClassMapping>((FdoPhysicalElementMapping*)parent) {}
00251
00252 public:
00253
00254
00255
00256
00257
00258
00259 FDOSDE_API void Dispose(void) { delete this; }
00260
00261
00262
00263
00264
00265
00266
00267 static FDOSDE_API ArcSDEClassMappingCollection* Create(ArcSDESchemaMapping* parent);
00268 };
00269
00270
00271 #endif //ARCSDECLASSMAPPING_H
00272
00273