• Main Page
  • Namespaces
  • Classes
  • Files

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