- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# NodeFactory.h

    00001 /**********************************************************************
    00002  * $Id: NodeFactory.h 1820 2006-09-06 16:54:23Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2005-2006 Refractions Research Inc.
    00008  * Copyright (C) 2001-2002 Vivid Solutions Inc.
    00009  *
    00010  * This is free software; you can redistribute and/or modify it under
    00011  * the terms of the GNU Lesser General Public Licence as published
    00012  * by the Free Software Foundation.
    00013  * See the COPYING file for more information.
    00014  *
    00015  **********************************************************************/
    00016
    00017
    00018 #ifndef GEOS_GEOMGRAPH_NODEFACTORY_H
    00019 #define GEOS_GEOMGRAPH_NODEFACTORY_H
    00020
    00021 #include <geos/inline.h>
    00022
    00023 // Forward declarations
    00024 namespace geos {
    00025         namespace geom {
    00026                 class Coordinate;
    00027         }
    00028         namespace geomgraph {
    00029                 class Node;
    00030         }
    00031 }
    00032
    00033 namespace geos {
    00034 namespace geomgraph { // geos.geomgraph
    00035
    00036 class NodeFactory {
    00037 public:
    00038         virtual Node* createNode(const geom::Coordinate &coord) const;
    00039         static const NodeFactory &instance();
    00040         virtual ~NodeFactory() {}
    00041 protected:
    00042         NodeFactory() {};
    00043 };
    00044
    00045
    00046 } // namespace geos.geomgraph
    00047 } // namespace geos
    00048
    00049 //#ifdef GEOS_INLINE
    00050 //# include "geos/geomgraph/NodeFactory.inl"
    00051 //#endif
    00052
    00053 #endif // ifndef GEOS_GEOMGRAPH_NODEFACTORY_H
    00054
    00055 /**********************************************************************
    00056  * $Log$
    00057  * Revision 1.3  2006/06/08 11:20:24  strk
    00058  * Added missing virtual destructor to abstract classes.
    00059  *
    00060  * Revision 1.2  2006/03/24 09:52:41  strk
    00061  * USE_INLINE => GEOS_INLINE
    00062  *
    00063  * Revision 1.1  2006/03/09 16:46:49  strk
    00064  * geos::geom namespace definition, first pass at headers split
    00065  *
    00066  **********************************************************************/
    00067