log4cplus
2.0.0
|
00001 // -*- C++ -*- 00002 // Module: Log4CPLUS 00003 // File: streams.h 00004 // Created: 4/2003 00005 // Author: Tad E. Smith 00006 // 00007 // 00008 // Copyright 2003-2015 Tad E. Smith 00009 // 00010 // Licensed under the Apache License, Version 2.0 (the "License"); 00011 // you may not use this file except in compliance with the License. 00012 // You may obtain a copy of the License at 00013 // 00014 // http://www.apache.org/licenses/LICENSE-2.0 00015 // 00016 // Unless required by applicable law or agreed to in writing, software 00017 // distributed under the License is distributed on an "AS IS" BASIS, 00018 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00019 // See the License for the specific language governing permissions and 00020 // limitations under the License. 00021 00024 #ifndef LOG4CPLUS_STREAMS_HEADER_ 00025 #define LOG4CPLUS_STREAMS_HEADER_ 00026 00027 #include <log4cplus/config.hxx> 00028 00029 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 00030 #pragma once 00031 #endif 00032 00033 #include <log4cplus/tchar.h> 00034 00035 #include <iosfwd> 00036 00037 00038 namespace log4cplus 00039 { 00040 typedef std::basic_ostream<tchar> tostream; 00041 typedef std::basic_istream<tchar> tistream; 00042 typedef std::basic_ostringstream<tchar> tostringstream; 00043 typedef std::basic_istringstream<tchar> tistringstream; 00044 extern LOG4CPLUS_EXPORT tostream & tcout; 00045 extern LOG4CPLUS_EXPORT tostream & tcerr; 00046 } 00047 00048 #if defined (UNICODE) && defined (LOG4CPLUS_ENABLE_GLOBAL_C_STRING_STREAM_INSERTER) 00049 00050 LOG4CPLUS_EXPORT log4cplus::tostream& operator <<(log4cplus::tostream&, const char* psz ); 00051 00052 #endif 00053 00054 #endif // LOG4CPLUS_STREAMS_HEADER_ 00055