GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 ********************************************************************** 00014 * 00015 * Last port: geom/CoordinateSequenceFactory.java r591 (JTS-1.12) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H 00020 #define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H 00021 00022 00023 #include <geos/export.h> 00024 #include <vector> 00025 00026 //#include <geos/geom/Coordinate.h> 00027 #include <geos/inline.h> 00028 00029 // Forward declarations 00030 namespace geos { 00031 namespace geom { 00032 class CoordinateSequence; 00033 class Coordinate; 00034 } 00035 } 00036 00037 namespace geos { 00038 namespace geom { // geos::geom 00039 00047 class GEOS_DLL CoordinateSequenceFactory { 00048 public: 00049 00054 virtual CoordinateSequence *create() const=0; 00055 00071 virtual CoordinateSequence *create( 00072 std::vector<Coordinate> *coordinates, 00073 std::size_t dimension=0 ) const=0; 00074 00085 virtual CoordinateSequence *create(std::size_t size, 00086 std::size_t dimension=0) const=0; 00087 00095 virtual CoordinateSequence *create(const CoordinateSequence &coordSeq) const=0; 00096 00097 virtual ~CoordinateSequenceFactory(); 00098 }; 00099 00100 } // namespace geos::geom 00101 } // namespace geos 00102 00103 //#ifdef GEOS_INLINE 00104 //# include "geos/geom/CoordinateSequenceFactory.inl" 00105 //#endif 00106 00107 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H