GEOS  3.4.2
CoordinateSequenceFactory.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2006 Refractions Research Inc.
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************
14  *
15  * Last port: geom/CoordinateSequenceFactory.java r591 (JTS-1.12)
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
20 #define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
21 
22 
23 #include <geos/export.h>
24 #include <vector>
25 
26 //#include <geos/geom/Coordinate.h>
27 #include <geos/inline.h>
28 
29 // Forward declarations
30 namespace geos {
31  namespace geom {
32  class CoordinateSequence;
33  class Coordinate;
34  }
35 }
36 
37 namespace geos {
38 namespace geom { // geos::geom
39 
47 class GEOS_DLL CoordinateSequenceFactory {
48 public:
49 
65  virtual CoordinateSequence *create(
66  std::vector<Coordinate> *coordinates,
67  std::size_t dimension=0 ) const=0;
68 
79  virtual CoordinateSequence *create(std::size_t size,
80  std::size_t dimension) const=0;
81 
89  virtual CoordinateSequence *create(const CoordinateSequence &coordSeq) const=0;
90 
91  virtual ~CoordinateSequenceFactory();
92 };
93 
94 } // namespace geos::geom
95 } // namespace geos
96 
97 //#ifdef GEOS_INLINE
98 //# include "geos/geom/CoordinateSequenceFactory.inl"
99 //#endif
100 
101 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
A factory to create concrete instances of CoordinateSequences.
Definition: CoordinateSequenceFactory.h:47
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59