OSGeo FDO Provider for WMS API Reference

OSGeo FDO API

API Reference OSGeo FDO Provider for WMS

FdoWmsOvStyleDefinition.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 #ifndef FdoWmsOvStyleDefinition_H
00019 #define FdoWmsOvStyleDefinition_H
00020 
00021 #ifdef _WIN32
00022 #pragma once
00023 #endif //_WIN32
00024 
00025 #include <WMS/FdoWmsOvProvider.h>
00026 
00027 /// \brief
00028 ///  
00029 /// The FdoWmsOvStyleDefinition class defines a WMS style that will be used to stylize a WMS layer.
00030 class FdoWmsOvStyleDefinition : public FdoPhysicalElementMapping
00031 {
00032     typedef FdoPhysicalElementMapping BaseType;
00033 
00034 public:
00035     /// \brief
00036     /// Constructs a new empty style definition.
00037     /// 
00038     /// \return
00039     /// Returns the newly created FdoWmsOvStyleDefinition instance.
00040     /// 
00041     FDOWMS_API static FdoWmsOvStyleDefinition* Create();
00042 
00043 /// \cond DOXYGEN-IGNORE
00044 
00045 public:
00046     /// XML Serialization functions, not part of supported API.
00047     FDOWMS_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs);
00048     FDOWMS_API virtual FdoXmlSaxHandler* XmlStartElement(
00049         FdoXmlSaxContext* context, 
00050         FdoString* uri, 
00051         FdoString* name, 
00052         FdoString* qname, 
00053         FdoXmlAttributeCollection* atts
00054     );
00055     FDOWMS_API virtual FdoBoolean XmlEndElement(FdoXmlSaxContext* context, FdoString* uri, FdoString* name, FdoString* qname);
00056     FDOWMS_API void _writeXml( FdoXmlWriter* xmlWriter, const FdoXmlFlags* flags );
00057 
00058 protected:
00059     FDOWMS_API FdoWmsOvStyleDefinition(void);
00060     FDOWMS_API virtual ~FdoWmsOvStyleDefinition(void);
00061     void Dispose(void);
00062 /// \endcond
00063 
00064 };
00065 
00066 /// \brief
00067 ///  FdoWmsOvStyleDefinitionP is a FdoPtr on FdoWmsOvStyleDefinition, provided for convenience. 
00068 typedef FdoPtr<FdoWmsOvStyleDefinition> FdoWmsOvStyleDefinitionP;
00069 
00070 #endif
00071 
00072 

Comments?