00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00018 #define GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00019
00020 #include <geos/geom/prep/PreparedGeometry.h>
00021
00022 namespace geos {
00023 namespace geom {
00024 namespace prep {
00025 class PreparedGeometry;
00026 }
00027 }
00028 }
00029
00030
00031 namespace geos {
00032 namespace geom {
00033 namespace prep {
00034
00035
00048 class PreparedGeometryFactory
00049 {
00050 public:
00051
00058 static const PreparedGeometry * prepare(const geom::Geometry * geom)
00059 {
00060 PreparedGeometryFactory pf;
00061 return pf.create(geom);
00062 }
00063
00069 static void destroy(const PreparedGeometry* geom)
00070 {
00071 delete geom;
00072 }
00073
00080 const PreparedGeometry* create(const geom::Geometry* geom) const;
00081
00082 };
00083
00084 }
00085 }
00086 }
00087
00088 #endif // GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00089
00090
00091
00092