API Reference | OSGeo FDO Provider for GDAL |
00001 /* 00002 * Copyright (C) 2004-2006 Autodesk, Inc. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of version 2.1 of the GNU Lesser 00006 * General Public License as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 */ 00018 /// <library>GRFPOverrides.lib</library> 00019 00020 #ifndef FDOGRFPPHYSICALSCHEMAMAPPING_H 00021 #define FDOGRFPPHYSICALSCHEMAMAPPING_H 00022 00023 #ifdef _WIN32 00024 #pragma once 00025 #endif //_WIN32 00026 00027 class FdoGrfpClassCollection; 00028 00029 /// <summary> 00030 /// The instance of class FdoGrfpPhysicalSchemaMapping is the root object of 00031 /// all instances of overrides classes. It holds a list of Class Definitions. 00032 /// </summary> 00033 class FdoGrfpPhysicalSchemaMapping : public FdoPhysicalSchemaMapping 00034 { 00035 typedef FdoPhysicalSchemaMapping BaseType; 00036 00037 public: 00038 /// <summary>Constructs a new physical schema mapping.</summary> 00039 /// <returns>Returns the newly created FdoGrfpPhysicalSchemaMapping instance.</returns> 00040 FDOGRFP_API static FdoGrfpPhysicalSchemaMapping* Create(); 00041 00042 /// <summary>Gets the name of the applicable FDO provider.</summary> 00043 /// <returns>Returns the name of FDO provider to which this Schema Override set 00044 /// applies. The provider name conforms to the format: 00045 /// "{Company}.{Provider}.{Version}".</returns> 00046 FDOGRFP_API virtual FdoString* GetProvider(); 00047 00048 /// <summary>Gets the collection of Class Definition.</summary> 00049 /// <returns>Returns the collection of Class Definition.</returns> 00050 FDOGRFP_API FdoGrfpClassCollection* GetClasses(); 00051 00052 //DOM-IGNORE-BEGIN 00053 00054 // XML Serialization functions, not part of supported API. 00055 FDOGRFP_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs); 00056 FDOGRFP_API virtual FdoXmlSaxHandler* XmlStartElement( 00057 FdoXmlSaxContext* context, 00058 FdoString* uri, 00059 FdoString* name, 00060 FdoString* qname, 00061 FdoXmlAttributeCollection* atts 00062 ); 00063 FDOGRFP_API virtual FdoBoolean XmlEndElement(FdoXmlSaxContext* context, FdoString* uri, FdoString* name, FdoString* qname); 00064 00065 protected: 00066 FDOGRFP_API FdoGrfpPhysicalSchemaMapping(void); 00067 FDOGRFP_API virtual ~FdoGrfpPhysicalSchemaMapping(void); 00068 FDOGRFP_API virtual void _writeXml( FdoXmlWriter* xmlWriter, const FdoXmlFlags* flags ); 00069 void Dispose(void); 00070 00071 private: 00072 FdoPtr<FdoGrfpClassCollection> m_ClassMappings; 00073 00074 //DOM-IGNORE-END 00075 }; 00076 00077 /// <summary> FdoGrfpPhysicalSchemaMappingP is a FdoPtr on FdoGrfpPhysicalSchemaMapping, provided for convenience. </summary> 00078 typedef FdoPtr<FdoGrfpPhysicalSchemaMapping> FdoGrfpPhysicalSchemaMappingP; 00079 00080 #endif
Comments? |