GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2005-2006 Refractions Research Inc. 00007 * Copyright (C) 2001-2002 Vivid Solutions 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: geomgraph/NodeFactory.java rev. 1.3 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 00021 #ifndef GEOS_GEOMGRAPH_NODEFACTORY_H 00022 #define GEOS_GEOMGRAPH_NODEFACTORY_H 00023 00024 #include <geos/export.h> 00025 #include <geos/inline.h> 00026 00027 // Forward declarations 00028 namespace geos { 00029 namespace geom { 00030 class Coordinate; 00031 } 00032 namespace geomgraph { 00033 class Node; 00034 } 00035 } 00036 00037 namespace geos { 00038 namespace geomgraph { // geos.geomgraph 00039 00040 class GEOS_DLL NodeFactory { 00041 public: 00042 virtual Node* createNode(const geom::Coordinate &coord) const; 00043 static const NodeFactory &instance(); 00044 virtual ~NodeFactory() {} 00045 protected: 00046 NodeFactory() {} 00047 }; 00048 00049 00050 } // namespace geos.geomgraph 00051 } // namespace geos 00052 00053 #endif // ifndef GEOS_GEOMGRAPH_NODEFACTORY_H