GEOS 3.11.1
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
26namespace geos {
27namespace geom {
28class Coordinate;
29}
30namespace geomgraph {
31class Node;
32}
33}
34
35namespace geos {
36namespace geomgraph { // geos.geomgraph
37
38class GEOS_DLL NodeFactory {
39public:
40 virtual Node* createNode(const geom::Coordinate& coord) const;
41 static const NodeFactory& instance();
42 virtual
43 ~NodeFactory() {}
44protected:
45 NodeFactory() {}
46};
47
48
49} // namespace geos.geomgraph
50} // namespace geos
51
Basic namespace for all GEOS functionalities.
Definition: geos.h:39