Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

OstringStream.hh

Go to the documentation of this file.
00001 /*
00002  * OstringStream.hh
00003  *
00004  * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
00005  * Copyright 2000, Bastiaan Bakker. All rights reserved.
00006  *
00007  * See the COPYING file for the terms of usage and distribution.
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

Generated at Mon Jan 28 01:40:21 2002 for log4cpp by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001