00001 /********************************************************************** 00002 * $Id: CoordinateSequenceFactory.h 2745 2009-11-26 21:21:56Z strk $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2006 Refractions Research Inc. 00008 * 00009 * This is free software; you can redistribute and/or modify it under 00010 * the terms of the GNU Lesser General Public Licence as published 00011 * by the Free Software Foundation. 00012 * See the COPYING file for more information. 00013 * 00014 ********************************************************************** 00015 * 00016 * Last port: geom/CoordinateSequenceFactory.java rev 1.14 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H 00021 #define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H 00022 00023 00024 #include <geos/export.h> 00025 #include <vector> 00026 00027 //#include <geos/geom/Coordinate.h> 00028 #include <geos/inline.h> 00029 00030 // Forward declarations 00031 namespace geos { 00032 namespace geom { 00033 class CoordinateSequence; 00034 class Coordinate; 00035 } 00036 } 00037 00038 namespace geos { 00039 namespace geom { // geos::geom 00040 00048 class GEOS_DLL CoordinateSequenceFactory { 00049 public: 00050 00065 virtual CoordinateSequence *create( 00066 std::vector<Coordinate> *coordinates) const=0; 00067 00078 virtual CoordinateSequence *create(size_t size, 00079 size_t dimension) const=0; 00080 00081 virtual ~CoordinateSequenceFactory(); 00082 }; 00083 00084 } // namespace geos::geom 00085 } // namespace geos 00086 00087 //#ifdef GEOS_INLINE 00088 //# include "geos/geom/CoordinateSequenceFactory.inl" 00089 //#endif 00090 00091 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H 00092 00093 /********************************************************************** 00094 * $Log$ 00095 * Revision 1.4 2006/06/12 10:10:39 strk 00096 * Fixed getGeometryN() to take size_t rather then int, changed unsigned int parameters to size_t. 00097 * 00098 * Revision 1.3 2006/06/08 11:20:24 strk 00099 * Added missing virtual destructor to abstract classes. 00100 * 00101 * Revision 1.2 2006/03/24 09:52:41 strk 00102 * USE_INLINE => GEOS_INLINE 00103 * 00104 * Revision 1.1 2006/03/09 16:46:49 strk 00105 * geos::geom namespace definition, first pass at headers split 00106 * 00107 **********************************************************************/