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/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 {
00038 namespace 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 }
00090 }
00091 }
00092
00093 #endif // GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
00094
00095
00096
00097