00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GEOS_IO_WRITER_H
00021 #define GEOS_IO_WRITER_H
00022
00023 #include <geos/export.h>
00024
00025 #include <string>
00026
00027 #ifdef _MSC_VER
00028 #pragma warning(push)
00029 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
00030 #endif
00031
00032 namespace geos {
00033 namespace io {
00034
00035 class GEOS_DLL Writer {
00036 public:
00037 Writer();
00038 void reserve(std::size_t capacity);
00039 ~Writer();
00040 void write(const std::string& txt);
00041 const std::string& toString();
00042 private:
00043 std::string str;
00044 };
00045
00046 }
00047 }
00048
00049 #ifdef _MSC_VER
00050 #pragma warning(pop)
00051 #endif
00052
00053 #endif // #ifndef GEOS_IO_WRITER_H