GEOS: CoordinateSequenceFactory.h Source File

GEOS 3.3.8

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

- File List

CoordinateSequenceFactory.h
1 /**********************************************************************
2 * $Id: CoordinateSequenceFactory.h 2998 2010-05-31 16:25:57Z warmerdam $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 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 * Last port: geom/CoordinateSequenceFactory.java rev 1.14 (JTS-1.10)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
21 #define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
22
23
24 #include <geos/export.h>
25 #include <vector>
26
27 //#include <geos/geom/Coordinate.h>
28 #include <geos/inline.h>
29
30 // Forward declarations
31 namespace geos {
32 namespace geom {
33 class CoordinateSequence;
34 class Coordinate;
35 }
36 }
37
38 namespace geos {
39 namespace geom { // geos::geom
40
48 class GEOS_DLL CoordinateSequenceFactory {
49 public:
50
66 virtual CoordinateSequence *create(
67 std::vector<Coordinate> *coordinates,
68 std::size_t dimension=0 ) const=0;
69
80 virtual CoordinateSequence *create(std::size_t size,
81 std::size_t dimension) const=0;
82
83 virtual ~CoordinateSequenceFactory();
84 };
85
86 } // namespace geos::geom
87 } // namespace geos
88
89 //#ifdef GEOS_INLINE
90 //# include "geos/geom/CoordinateSequenceFactory.inl"
91 //#endif
92
93 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
94
95 /**********************************************************************
96 * $Log$
97 * Revision 1.4 2006/06/12 10:10:39 strk
98 * Fixed getGeometryN() to take size_t rather then int, changed unsigned int parameters to size_t.
99 *
100 * Revision 1.3 2006/06/08 11:20:24 strk
101 * Added missing virtual destructor to abstract classes.
102 *
103 * Revision 1.2 2006/03/24 09:52:41 strk
104 * USE_INLINE => GEOS_INLINE
105 *
106 * Revision 1.1 2006/03/09 16:46:49 strk
107 * geos::geom namespace definition, first pass at headers split
108 *
109 **********************************************************************/