00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _LOG4CPP_OSTRINGSTREAM_HH
00011 #define _LOG4CPP_OSTRINGSTREAM_HH
00012
00013 #include <log4cpp/Portability.hh>
00014 #include <string>
00015 #include <stdarg.h>
00016
00017 #ifdef LOG4CPP_HAVE_SSTREAM
00018 # include <sstream>
00019 #else
00020 # include <strstream>
00021 #endif
00022
00023 namespace log4cpp {
00024
00030 #ifdef LOG4CPP_HAVE_SSTREAM
00031 class LOG4CPP_EXPORT OstringStream : public std::ostringstream
00032 #else
00033 class LOG4CPP_EXPORT OstringStream : public std::ostrstream
00034 #endif
00035 {
00036 public:
00037 #ifndef LOG4CPP_HAVE_SSTREAM
00038 std::string str();
00039 #endif
00040
00046 void vform(const char* format, va_list args);
00047 };
00048
00049 }
00050
00051 #endif // _LOG4CPP_HINTS_HH