GEOS 3.6.2
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
27namespace geos {
28 namespace geom { // geos::geom
29 class Geometry;
30 }
31}
32
33namespace geos {
34namespace geom { // geos::geom
35
36
48class GEOS_DLL GeometryFilter {
49public:
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
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition GeometryFilter.h:48
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25