• Main Page
  • Namespaces
  • Classes
  • Files

PropertyDefinition.h

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2007 Refractions Research, 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 #ifndef FDOPOSTGIS_PROPERTYDEFINITION_H_INCLUDED
00018 #define FDOPOSTGIS_PROPERTYDEFINITION_H_INCLUDED
00019 
00020 #include <Fdo.h>
00021 #include <PostGIS/Override/ColumnDefinition.h>
00022 
00023 namespace fdo { namespace postgis { namespace ov {
00024 
00025 /// \todo To be documented
00026 class PropertyDefinition : public FdoPhysicalPropertyMapping
00027 {
00028 public:
00029     
00030     typedef FdoPtr<PropertyDefinition> Ptr;
00031 
00032     //
00033     // FdoPhysicalPropertyMapping interface
00034     //
00035     FDOPOSTGIS_API static PropertyDefinition* Create();
00036 
00037     FDOPOSTGIS_API ColumnDefinition* GetColumn() const;
00038     
00039     FDOPOSTGIS_API void SetColumn(ColumnDefinition* columnDef);
00040 
00041     //
00042     // FdoPhysicalElementMapping interface
00043     //
00044 
00045     /// Initializes this class from its XML attributes.
00046     FDOPOSTGIS_API virtual void InitFromXml(FdoXmlSaxContext* xmlContext,
00047         FdoXmlAttributeCollection* xmlAttrs);
00048 
00049     /// Writes this class to XML.
00050     FDOPOSTGIS_API virtual void _writeXml(FdoXmlWriter* xmlWriter,
00051         FdoXmlFlags const* xmlFlags);
00052 
00053     //
00054     // FdoXmlSaxHandler interface
00055     //
00056 
00057     /// SAX callback called when the FdoXmlReader reads the start tag for
00058     /// an XML element in the document.
00059     FDOPOSTGIS_API virtual FdoXmlSaxHandler* XmlStartElement(FdoXmlSaxContext *saxContext,
00060         FdoString* uri, FdoString* name, FdoString* qname,
00061         FdoXmlAttributeCollection* xmlAtts);
00062 
00063     /// SAX callback called when the FdoXmlReader reads the end tag for
00064     /// an XML element in the document. 
00065     FDOPOSTGIS_API virtual FdoBoolean XmlEndElement(FdoXmlSaxContext* saxContext,
00066         FdoString* uri, FdoString* name, FdoString* qname);
00067 
00068 protected:
00069 
00070     PropertyDefinition();
00071     virtual ~PropertyDefinition();
00072 
00073     //
00074     // FdoIDisposable interface
00075     //
00076 
00077     virtual void Dispose();
00078 
00079 private:
00080 
00081     typedef FdoPhysicalElementMapping BaseType;
00082 };
00083 
00084 }}} // namespace fdo::postgis::ov
00085 
00086 #endif // FDOPOSTGIS_PROPERTYDEFINITION_H_INCLUDED
Please send us your comment about this page