GEOS 3.3.8

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

- File List

Writer.h
1 /**********************************************************************
2 * $Id: Writer.h 3255 2011-03-01 17:56:10Z mloskot $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: ORIGINAL WORK to be used like java.io.Writer
18 *
19 **********************************************************************/
20
21 #ifndef GEOS_IO_WRITER_H
22 #define GEOS_IO_WRITER_H
23
24 #include <geos/export.h>
25
26 #include <string>
27
28 #ifdef _MSC_VER
29 #pragma warning(push)
30 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
31 #endif
32
33 namespace geos {
34 namespace io {
35
36 class GEOS_DLL Writer {
37 public:
38 Writer();
39 ~Writer();
40 void write(std::string txt);
41 std::string toString();
42 private:
43 std::string str;
44 };
45
46 } // namespace geos::io
47 } // namespace geos
48
49 #ifdef _MSC_VER
50 #pragma warning(pop)
51 #endif
52
53 #endif // #ifndef GEOS_IO_WRITER_H
54
55 /**********************************************************************
56 * $Log$
57 * Revision 1.1 2006/03/20 18:18:15 strk
58 * io.h header split
59 *
60 **********************************************************************/