API Reference OSGeo FDO Provider for GDAL

FdoGrfpRasterFeatureDefinition.h

Go to the documentation of this file.
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 FDOGRFPRASTERFEATUREDEFINITION_H
00021 #define FDOGRFPRASTERFEATUREDEFINITION_H
00022 
00023 #ifdef _WIN32
00024 #pragma once
00025 #endif //_WIN32
00026 
00027 class FdoGrfpRasterExtents;
00028 class FdoGrfpRasterLocation;
00029 class FdoGrfpRasterBandCollection;
00030 class FdoGrfpRasterBandDefinition;
00031 
00032 /// <summary> 
00033 /// The FdoGrfpRasterFeatureDefinition class contains a collection of raster Features.
00034 /// </summary>
00035 class FdoGrfpRasterFeatureDefinition : public FdoPhysicalElementMapping
00036 {
00037     typedef FdoPhysicalElementMapping BaseType;
00038 
00039 public:
00040     /// <summary>Constructs a new Raster Feature Definition.</summary>
00041     /// <returns>Returns the newly created FdoGrfpRasterFeatureDefinition instance.</returns> 
00042     FDOGRFP_API static FdoGrfpRasterFeatureDefinition* Create();
00043 
00044     /// <summary>Gets the collection of raster band definitions.</summary>
00045     /// <returns>Returns the collection of raster bans.</returns> 
00046     FDOGRFP_API FdoGrfpRasterBandCollection* GetBands();
00047 
00048 //DOM-IGNORE-BEGIN
00049 
00050     // XML Serialization functions, not part of supported API.
00051     FDOGRFP_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs);
00052     FDOGRFP_API virtual FdoXmlSaxHandler* XmlStartElement(
00053         FdoXmlSaxContext* context, 
00054         FdoString* uri, 
00055         FdoString* name, 
00056         FdoString* qname, 
00057         FdoXmlAttributeCollection* atts
00058     );
00059     FDOGRFP_API virtual FdoBoolean XmlEndElement(FdoXmlSaxContext* context, FdoString* uri, FdoString* name, FdoString* qname);
00060     FDOGRFP_API void _writeXml( FdoXmlWriter* xmlWriter, const FdoXmlFlags* flags );
00061 
00062 protected:
00063     FDOGRFP_API FdoGrfpRasterFeatureDefinition(void);
00064     FDOGRFP_API virtual ~FdoGrfpRasterFeatureDefinition(void);
00065     void Dispose(void);
00066 
00067 private:
00068     FdoPtr<FdoGrfpRasterBandCollection> m_rasterBands;
00069     FdoStringP                         m_name;
00070 
00071 //DOM-IGNORE-END
00072 };
00073 
00074 /// <summary> FdoGrfpRasterFeatureDefinitionP is a FdoPtr on FdoGrfpRasterFeatureDefinition, provided for convenience. </summary>
00075 typedef FdoPtr<FdoGrfpRasterFeatureDefinition> FdoGrfpRasterFeatureDefinitionP;
00076 
00077 /// <summary> 
00078 /// The FdoGrfpRasterFeatureCollection class holds a list of Raster Feature Definition.
00079 /// </summary>
00080 class FdoGrfpRasterFeatureCollection : public FdoPhysicalElementMappingCollection<FdoGrfpRasterFeatureDefinition>
00081 {
00082 public:
00083     /// <summary>Constructs a new empty collection of Raster Feature Definition.</summary>
00084     /// <param name="parent">Input parent object</param> 
00085     /// <returns>Returns the newly created FdoGrfpRasterFeatureCollection instance.</returns> 
00086     FDOGRFP_API static FdoGrfpRasterFeatureCollection* Create(FdoGrfpRasterLocation *parent);
00087 
00088 //DOM-IGNORE-BEGIN
00089 
00090 protected:
00091     FdoGrfpRasterFeatureCollection();
00092     FDOGRFP_API FdoGrfpRasterFeatureCollection(FdoGrfpRasterLocation *parent);
00093     FDOGRFP_API virtual ~FdoGrfpRasterFeatureCollection(void);
00094     void Dispose();
00095 
00096 //DOM-IGNORE-END
00097 };
00098 
00099 /// <summary> FdoGrfpRasterFeaturesP is a FdoPtr on FdoGrfpRasterFeatureCollection, provided for convenience. </summary>
00100 typedef FdoPtr<FdoGrfpRasterFeatureCollection> FdoGrfpRasterFeaturesP;
00101 
00102 #endif
00103 

Comments?