# CoordinateSequenceFactory.h

    00001 /**********************************************************************
    00002  * $Id: CoordinateSequenceFactory.h 1820 2006-09-06 16:54:23Z mloskot $
    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 #ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
    00017 #define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
    00018
    00019
    00020 #include <vector>
    00021
    00022 //#include <geos/geom/Coordinate.h>
    00023 #include <geos/inline.h>
    00024
    00025 // Forward declarations
    00026 namespace geos {
    00027         namespace geom {
    00028                 class CoordinateSequence;
    00029                 class Coordinate;
    00030         }
    00031 }
    00032
    00033 namespace geos {
    00034 namespace geom { // geos::geom
    00035
    00041 class CoordinateSequenceFactory {
    00042 public:
    00043
    00053         virtual CoordinateSequence *create(
    00054                         std::vector<Coordinate> *coordinates) const=0;
    00055
    00065         virtual CoordinateSequence *create(size_t size,
    00066                         size_t dimension) const=0;
    00067
    00068         virtual ~CoordinateSequenceFactory() {}
    00069 };
    00070
    00071 } // namespace geos::geom
    00072 } // namespace geos
    00073
    00074 //#ifdef GEOS_INLINE
    00075 //# include "geos/geom/CoordinateSequenceFactory.inl"
    00076 //#endif
    00077
    00078 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
    00079
    00080 /**********************************************************************
    00081  * $Log$
    00082  * Revision 1.4  2006/06/12 10:10:39  strk
    00083  * Fixed getGeometryN() to take size_t rather then int, changed unsigned int parameters to size_t.
    00084  *
    00085  * Revision 1.3  2006/06/08 11:20:24  strk
    00086  * Added missing virtual destructor to abstract classes.
    00087  *
    00088  * Revision 1.2  2006/03/24 09:52:41  strk
    00089  * USE_INLINE => GEOS_INLINE
    00090  *
    00091  * Revision 1.1  2006/03/09 16:46:49  strk
    00092  * geos::geom namespace definition, first pass at headers split
    00093  *
    00094  **********************************************************************/