00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00022 #define GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00023
00024 #include <geos/geom/prep/PreparedGeometry.h>
00025
00026 namespace geos {
00027 namespace geom {
00028 namespace prep {
00029 class PreparedGeometry;
00030 }
00031 }
00032 }
00033
00034
00035 namespace geos {
00036 namespace geom {
00037 namespace prep {
00038
00039
00052 class PreparedGeometryFactory
00053 {
00054 public:
00055
00062 static const PreparedGeometry * prepare(const geom::Geometry * geom)
00063 {
00064 PreparedGeometryFactory pf;
00065 return pf.create(geom);
00066 }
00067
00073 static void destroy(const PreparedGeometry* geom)
00074 {
00075 delete geom;
00076 }
00077
00084 const PreparedGeometry* create(const geom::Geometry* geom) const;
00085
00086 };
00087
00088 }
00089 }
00090 }
00091
00092 #endif // GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00093
00094
00095
00096