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