GEOS  3.3.6
PreparedGeometryFactory.h
00001 /**********************************************************************
00002  * $Id: PreparedGeometryFactory.h 3255 2011-03-01 17:56:10Z mloskot $
00003  *
00004  * GEOS - Geometry Engine Open Source
00005  * http://geos.refractions.net
00006  *
00007  * Copyright (C) 2006 Refractions Research 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  *
00017  * Last port: geom/prep/PreparedGeometryFactory.java rev. 1.4 (JTS-1.10)
00018  *
00019  **********************************************************************/
00020 
00021 #ifndef GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00022 #define GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00023 
00024 #include <geos/export.h>
00025 #include <geos/geom/prep/PreparedGeometry.h>
00026 
00027 namespace geos {
00028         namespace geom {
00029         namespace prep {
00030             class PreparedGeometry;
00031                 }
00032         }
00033 }
00034 
00035 
00036 namespace geos {
00037 namespace geom { // geos::geom
00038 namespace prep { // geos::geom::prep
00039 
00040 
00053 class GEOS_DLL PreparedGeometryFactory
00054 {
00055 public:
00056 
00063         static const PreparedGeometry * prepare(const geom::Geometry * geom) 
00064         {
00065                 PreparedGeometryFactory pf;
00066                 return pf.create(geom); 
00067         }
00068     
00074     static void destroy(const PreparedGeometry* geom)
00075     {
00076         delete geom;
00077     }
00078 
00085         const PreparedGeometry* create(const geom::Geometry* geom) const;
00086 
00087 };
00088 
00089 } // namespace geos::geom::prep
00090 } // namespace geos::geom
00091 } // namespace geos
00092 
00093 #endif // GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00094 /**********************************************************************
00095  * $Log$
00096  **********************************************************************/
00097