GEOS 3.9.1
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/export.h>
20#include <geos/inline.h>
21
22#include <string>
23#include <vector>
24#include <cassert>
25
26namespace geos {
27namespace geom { // geos::geom
28class Geometry;
29}
30}
31
32namespace geos {
33namespace geom { // geos::geom
34
35
47class GEOS_DLL GeometryFilter {
48public:
49 /*
50 * Performs an operation with or on <code>geom</code>.
51 *
52 * @param geom a <code>Geometry</code> to which the filter
53 * is applied.
54 *
55 * NOTE: this are not pure abstract to allow read-only
56 * or read-write-only filters to avoid defining a fake
57 * version of the not-implemented kind.
58 */
59 virtual void
60 filter_ro(const Geometry* /*geom*/)
61 {
62 assert(0);
63 }
64 virtual void
65 filter_rw(Geometry* /*geom*/)
66 {
67 assert(0);
68 }
69
70 virtual
72};
73
74} // namespace geos::geom
75} // namespace geos
76
77#endif // ndef GEOS_GEOM_GEOMETRYFILTER_H
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition GeometryFilter.h:47
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:188
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26