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 FDOGRFPCLASSDEFINITION_H 00021 #define FDOGRFPCLASSDEFINITION_H 00022 00023 #ifdef _WIN32 00024 #pragma once 00025 #endif //_WIN32 00026 00027 class FdoGrfpRasterDefinition; 00028 class FdoGrfpPhysicalSchemaMapping; 00029 00030 /// <summary> 00031 /// The FdoGrfpClassDefinition class defines overrides for a feature class that contains raster data. 00032 /// </summary> 00033 class FdoGrfpClassDefinition : public FdoPhysicalClassMapping 00034 { 00035 typedef FdoPhysicalClassMapping BaseType; 00036 00037 public: 00038 /// <summary>Constructs a new empty class definition.</summary> 00039 /// <returns>Returns the newly created FdoGrfpClassDefinition instance.</returns> 00040 FDOGRFP_API static FdoGrfpClassDefinition* Create(); 00041 00042 /// <summary>Gets the raster definition which contains a collection of raster locations.</summary> 00043 /// <returns>Returns the raster definition. </returns> 00044 FDOGRFP_API FdoGrfpRasterDefinition* GetRasterDefinition(); 00045 00046 /// <summary>Sets the raster definition.</summary> 00047 /// <param name="rasterDefinition">Input raster definition</param> 00048 /// <returns>Returns nothing</returns> 00049 FDOGRFP_API void SetRasterDefinition(FdoGrfpRasterDefinition* rasterDefinition); 00050 00051 //DOM-IGNORE-BEGIN 00052 00053 // XML Serialization functions, not part of supported API. 00054 FDOGRFP_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs); 00055 FDOGRFP_API virtual FdoXmlSaxHandler* XmlStartElement( 00056 FdoXmlSaxContext* context, 00057 FdoString* uri, 00058 FdoString* name, 00059 FdoString* qname, 00060 FdoXmlAttributeCollection* atts 00061 ); 00062 FDOGRFP_API virtual FdoBoolean XmlEndElement(FdoXmlSaxContext* context, FdoString* uri, FdoString* name, FdoString* qname); 00063 FDOGRFP_API void _writeXml( FdoXmlWriter* xmlWriter, const FdoXmlFlags* flags ); 00064 00065 protected: 00066 FDOGRFP_API FdoGrfpClassDefinition(void); 00067 FDOGRFP_API virtual ~FdoGrfpClassDefinition(void); 00068 void Dispose(void); 00069 00070 private: 00071 FdoPtr<FdoGrfpRasterDefinition> m_rasterDefinition; 00072 00073 //DOM-IGNORE-END 00074 }; 00075 00076 /// <summary> FdoGrfpClassDefinitionP is a FdoPtr on FdoGrfpClassDefinition, provided for convenience. </summary> 00077 typedef FdoPtr<FdoGrfpClassDefinition> FdoGrfpClassDefinitionP; 00078 00079 /// <summary> 00080 /// The FdoGrfpClassCollection holds a list of class definitions. 00081 /// </summary> 00082 class FdoGrfpClassCollection : public FdoPhysicalElementMappingCollection<FdoGrfpClassDefinition> 00083 { 00084 public: 00085 /// <summary>Constructs a new empty Class Definition collection.</summary> 00086 /// <param name="parent">Input parent object</param> 00087 /// <returns>Returns the newly created FdoGrfpClassCollection instance.</returns> 00088 FDOGRFP_API static FdoGrfpClassCollection* Create(FdoGrfpPhysicalSchemaMapping *parent); 00089 00090 //DOM-IGNORE-BEGIN 00091 00092 protected: 00093 FdoGrfpClassCollection(); 00094 FDOGRFP_API FdoGrfpClassCollection(FdoGrfpPhysicalSchemaMapping *parent); 00095 FDOGRFP_API virtual ~FdoGrfpClassCollection(void); 00096 void Dispose(); 00097 00098 //DOM-IGNORE-END 00099 }; 00100 00101 /// <summary> FdoGrfpClassesP is a FdoPtr on FdoGrfpClassCollection, provided for convenience. </summary> 00102 typedef FdoPtr<FdoGrfpClassCollection> FdoGrfpClassesP; 00103 00104 #endif
Comments? |