GEOS
3.3.5
|
00001 /********************************************************************** 00002 * $Id: Writer.h 3255 2011-03-01 17:56:10Z mloskot $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2005-2006 Refractions Research Inc. 00008 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00009 * 00010 * This is free software; you can redistribute and/or modify it under 00011 * the terms of the GNU Lesser General Public Licence as published 00012 * by the Free Software Foundation. 00013 * See the COPYING file for more information. 00014 * 00015 ********************************************************************** 00016 * 00017 * Last port: ORIGINAL WORK to be used like java.io.Writer 00018 * 00019 **********************************************************************/ 00020 00021 #ifndef GEOS_IO_WRITER_H 00022 #define GEOS_IO_WRITER_H 00023 00024 #include <geos/export.h> 00025 00026 #include <string> 00027 00028 #ifdef _MSC_VER 00029 #pragma warning(push) 00030 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 00031 #endif 00032 00033 namespace geos { 00034 namespace io { 00035 00036 class GEOS_DLL Writer { 00037 public: 00038 Writer(); 00039 ~Writer(); 00040 void write(std::string txt); 00041 std::string toString(); 00042 private: 00043 std::string str; 00044 }; 00045 00046 } // namespace geos::io 00047 } // namespace geos 00048 00049 #ifdef _MSC_VER 00050 #pragma warning(pop) 00051 #endif 00052 00053 #endif // #ifndef GEOS_IO_WRITER_H 00054 00055 /********************************************************************** 00056 * $Log$ 00057 * Revision 1.1 2006/03/20 18:18:15 strk 00058 * io.h header split 00059 * 00060 **********************************************************************/