GEOS 3.4.2

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

- File List

GeometryFilter.h
1 /**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2001-2002 Vivid Solutions Inc.
7 * Copyright (C) 2005 2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16 #ifndef GEOS_GEOM_GEOMETRYFILTER_H
17 #define GEOS_GEOM_GEOMETRYFILTER_H
18
19 //#include <geos/platform.h>
20 #include <geos/export.h>
21 #include <geos/inline.h>
22
23 #include <string>
24 #include <vector>
25 #include <cassert>
26
27 namespace geos {
28 namespace geom { // geos::geom
29 class Geometry;
30 }
31 }
32
33 namespace geos {
34 namespace geom { // geos::geom
35
36
48 class GEOS_DLL GeometryFilter {
49 public:
50 /*
51 * Performs an operation with or on <code>geom</code>.
52 *
53 * @param geom a <code>Geometry</code> to which the filter
54 * is applied.
55 *
56 * NOTE: this are not pure abstract to allow read-only
57 * or read-write-only filters to avoid defining a fake
58 * version of the not-implemented kind.
59 */
60 virtual void filter_ro(const Geometry * /*geom*/) { assert(0); }
61 virtual void filter_rw(Geometry * /*geom*/) { assert(0); }
62
63 virtual ~GeometryFilter() {}
64 };
65
66 } // namespace geos::geom
67 } // namespace geos
68
69 #endif // ndef GEOS_GEOM_GEOMETRYFILTER_H