Fix documentation typos.
[geos.git] / src / io / Writer.cpp
blob57530362ca57d523051574896280d869e45327c0
1 /**********************************************************************
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
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.
14 **********************************************************************
16 * Last port: ORIGINAL WORK to be used like java.io.Writer
18 **********************************************************************/
20 #include <geos/io/Writer.h>
21 #include <string>
23 using namespace std;
25 namespace geos {
26 namespace io { // geos.io
28 Writer::Writer()
32 void
33 Writer::reserve(std::size_t capacity)
35 str.reserve(capacity);
38 Writer::~Writer()
42 void
43 Writer::write(const std::string& txt)
45 str.append(txt);
48 const std::string&
49 Writer::toString()
51 return str;
54 } // namespace geos.io
55 } // namespace geos