GEOS: CoordinateSequenceFactory.h Source File

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

- File List

# CoordinateSequenceFactory.h

    00001 /**********************************************************************
    00002  * $Id: CoordinateSequenceFactory.h 2998 2010-05-31 16:25:57Z warmerdam $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2006 Refractions Research Inc.
    00008  *
    00009  * This is free software; you can redistribute and/or modify it under
    00010  * the terms of the GNU Lesser General Public Licence as published
    00011  * by the Free Software Foundation.
    00012  * See the COPYING file for more information.
    00013  *
    00014  **********************************************************************
    00015  *
    00016  * Last port: geom/CoordinateSequenceFactory.java rev 1.14 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
    00021 #define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
    00022
    00023
    00024 #include <geos/export.h>
    00025 #include <vector>
    00026
    00027 //#include <geos/geom/Coordinate.h>
    00028 #include <geos/inline.h>
    00029
    00030 // Forward declarations
    00031 namespace geos {
    00032         namespace geom {
    00033                 class CoordinateSequence;
    00034                 class Coordinate;
    00035         }
    00036 }
    00037
    00038 namespace geos {
    00039 namespace geom { // geos::geom
    00040
    00048 class GEOS_DLL CoordinateSequenceFactory {
    00049 public:
    00050
    00066         virtual CoordinateSequence *create(
    00067             std::vector<Coordinate> *coordinates,
    00068             std::size_t dimension=0 ) const=0;
    00069
    00080         virtual CoordinateSequence *create(std::size_t size,
    00081                                            std::size_t dimension) const=0;
    00082
    00083         virtual ~CoordinateSequenceFactory();
    00084 };
    00085
    00086 } // namespace geos::geom
    00087 } // namespace geos
    00088
    00089 //#ifdef GEOS_INLINE
    00090 //# include "geos/geom/CoordinateSequenceFactory.inl"
    00091 //#endif
    00092
    00093 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
    00094
    00095 /**********************************************************************
    00096  * $Log$
    00097  * Revision 1.4  2006/06/12 10:10:39  strk
    00098  * Fixed getGeometryN() to take size_t rather then int, changed unsigned int parameters to size_t.
    00099  *
    00100  * Revision 1.3  2006/06/08 11:20:24  strk
    00101  * Added missing virtual destructor to abstract classes.
    00102  *
    00103  * Revision 1.2  2006/03/24 09:52:41  strk
    00104  * USE_INLINE => GEOS_INLINE
    00105  *
    00106  * Revision 1.1  2006/03/09 16:46:49  strk
    00107  * geos::geom namespace definition, first pass at headers split
    00108  *
    00109  **********************************************************************/