GEOS  3.13.0dev
NodeFactory.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2005-2006 Refractions Research Inc.
7  * Copyright (C) 2001-2002 Vivid Solutions Inc.
8  *
9  * This is free software; you can redistribute and/or modify it under
10  * the terms of the GNU Lesser General Public Licence as published
11  * by the Free Software Foundation.
12  * See the COPYING file for more information.
13  *
14  **********************************************************************
15  *
16  * Last port: geomgraph/NodeFactory.java rev. 1.3 (JTS-1.10)
17  *
18  **********************************************************************/
19 
20 
21 #pragma once
22 
23 #include <geos/export.h>
24 
25 // Forward declarations
26 namespace geos {
27 namespace geom {
28 class Coordinate;
29 }
30 namespace geomgraph {
31 class Node;
32 }
33 }
34 
35 namespace geos {
36 namespace geomgraph { // geos.geomgraph
37 
38 class GEOS_DLL NodeFactory {
39 public:
40  virtual Node* createNode(const geom::Coordinate& coord) const;
41  static const NodeFactory& instance();
42  virtual
43  ~NodeFactory() {}
44 protected:
45  NodeFactory() {}
46 };
47 
48 
49 } // namespace geos.geomgraph
50 } // namespace geos
51 
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25