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

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 <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

Generated on Thu Aug 15 00:00:20 2002 for log4cpp by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002