GEOS: GeometryFilter.h Source File

GEOS 3.3.8

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

- File List

GeometryFilter.h
1 /**********************************************************************
2 * $Id: GeometryFilter.h 2556 2009-06-06 22:22:28Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 * Copyright (C) 2005 2006 Refractions Research Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************/
16
17 #ifndef GEOS_GEOM_GEOMETRYFILTER_H
18 #define GEOS_GEOM_GEOMETRYFILTER_H
19
20 //#include <geos/platform.h>
21 #include <geos/export.h>
22 #include <geos/inline.h>
23
24 #include <string>
25 #include <vector>
26 #include <cassert>
27
28 namespace geos {
29 namespace geom { // geos::geom
30 class Geometry;
31 }
32 }
33
34 namespace geos {
35 namespace geom { // geos::geom
36
37
49 class GEOS_DLL GeometryFilter {
50 public:
51 /*
52 * Performs an operation with or on <code>geom</code>.
53 *
54 * @param geom a <code>Geometry</code> to which the filter
55 * is applied.
56 *
57 * NOTE: this are not pure abstract to allow read-only
58 * or read-write-only filters to avoid defining a fake
59 * version of the not-implemented kind.
60 */
61 virtual void filter_ro(const Geometry * /*geom*/) { assert(0); }
62 virtual void filter_rw(Geometry * /*geom*/) { assert(0); }
63
64 virtual ~GeometryFilter() {}
65 };
66
67 } // namespace geos::geom
68 } // namespace geos
69
70 //#ifdef GEOS_INLINE
71 //# include "geos/geom/GeometryFilter.inl"
72 //#endif
73
74 #endif // ndef GEOS_GEOM_GEOMETRYFILTER_H
75
76 /**********************************************************************
77 * $Log$
78 * Revision 1.4 2006/06/12 17:14:11 strk
79 * added assert(0) version of filter_ro() and filter_rw() to allow implementations to only defined the required one.
80 *
81 * Revision 1.3 2006/06/08 11:20:24 strk
82 * Added missing virtual destructor to abstract classes.
83 *
84 * Revision 1.2 2006/03/24 09:52:41 strk
85 * USE_INLINE => GEOS_INLINE
86 *
87 * Revision 1.1 2006/03/09 16:46:49 strk
88 * geos::geom namespace definition, first pass at headers split
89 *
90 **********************************************************************/