API Reference OSGeo FDO Provider for GDAL

FdoGrfpRasterLocation.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 FDOGRFPRASTERLOCATION_H
00021 #define FDOGRFPRASTERLOCATION_H
00022 
00023 #ifdef _WIN32
00024 #pragma once
00025 #endif //_WIN32
00026 
00027 class FdoGrfpRasterFeatureCollection;
00028 class FdoGrfpRasterDefinition;
00029 
00030 /// <summary> 
00031 /// The FdoGrfpRasterLocation class defines a location that contains a collection of raster feature definitions. 
00032 /// </summary>
00033 class FdoGrfpRasterLocation : public FdoPhysicalElementMapping
00034 {
00035     typedef FdoPhysicalElementMapping BaseType;
00036 
00037 public:
00038     /// <summary> Constructs a new empty Raster Location. </summary>
00039     /// <returns> Returns the newly created FdoGrfpRasterLocation instance. </returns> 
00040     FDOGRFP_API static FdoGrfpRasterLocation* Create();
00041 
00042     /// <summary> Gets the collection of the raster feature definition contained in the location. </summary>
00043     /// <returns> Returns the collection of the raster feature definition contained in the location. </returns> 
00044     FDOGRFP_API FdoGrfpRasterFeatureCollection* GetFeatureCatalogue();
00045 
00046     /// <summary> Sets the collection of the raster feature definition. </summary>
00047     /// <param name="catalogue"> Input the collection of the raster feature definition</param>
00048     /// <returns>Returns nothing</returns> 
00049     FDOGRFP_API void SetFeatureCatalogue(FdoGrfpRasterFeatureCollection* catalogue);
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 FdoGrfpRasterLocation(void);
00067     FDOGRFP_API virtual ~FdoGrfpRasterLocation(void);
00068     void Dispose(void);
00069 
00070 private:
00071     FdoPtr<FdoGrfpRasterFeatureCollection> m_featureCatalogue;
00072 
00073 //DOM-IGNORE-END
00074 };
00075 
00076 /// <summary> FdoGrfpRasterLocationP is a FdoPtr on FdoGrfpRasterLocation, provided for convenience. </summary>
00077 typedef FdoPtr<FdoGrfpRasterLocation> FdoGrfpRasterLocationP;
00078 
00079 /// <summary> 
00080 /// The FdoGrfpRasterLocationCollection class contains a collection of Raster Locations.
00081 /// </summary>
00082 class FdoGrfpRasterLocationCollection : public FdoPhysicalElementMappingCollection<FdoGrfpRasterLocation>
00083 {
00084 public:
00085     /// <summary> Constructs a new empty collection of Raster Location. </summary>
00086     /// <param name="parent">Input parent object</param> 
00087     /// <returns> Returns the newly created FdoGrfpRasterLocationCollection instance. </returns> 
00088     FDOGRFP_API static FdoGrfpRasterLocationCollection* Create(FdoGrfpRasterDefinition *parent);
00089 
00090 //DOM-IGNORE-BEGIN
00091 
00092 protected:
00093     FdoGrfpRasterLocationCollection();
00094     FDOGRFP_API FdoGrfpRasterLocationCollection(FdoGrfpRasterDefinition *parent);
00095     FDOGRFP_API virtual ~FdoGrfpRasterLocationCollection(void);
00096     void Dispose();
00097 
00098 //DOM-IGNORE-END
00099 };
00100 
00101 /// <summary> FdoGrfpRasterLocationsP is a FdoPtr on FdoGrfpRasterLocationCollection, provided for convenience. </summary>
00102 typedef FdoPtr<FdoGrfpRasterLocationCollection> FdoGrfpRasterLocationsP;
00103 
00104 #endif

Comments?