log4cplus
2.0.5
include
log4cplus
streams.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
// Module: Log4CPLUS
3
// File: streams.h
4
// Created: 4/2003
5
// Author: Tad E. Smith
6
//
7
//
8
// Copyright 2003-2017 Tad E. Smith
9
//
10
// Licensed under the Apache License, Version 2.0 (the "License");
11
// you may not use this file except in compliance with the License.
12
// You may obtain a copy of the License at
13
//
14
// http://www.apache.org/licenses/LICENSE-2.0
15
//
16
// Unless required by applicable law or agreed to in writing, software
17
// distributed under the License is distributed on an "AS IS" BASIS,
18
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
// See the License for the specific language governing permissions and
20
// limitations under the License.
21
24
#ifndef LOG4CPLUS_STREAMS_HEADER_
25
#define LOG4CPLUS_STREAMS_HEADER_
26
27
#include <
log4cplus/config.hxx
>
28
29
#if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
30
#pragma once
31
#endif
32
33
#include <
log4cplus/tchar.h
>
34
35
#include <iosfwd>
36
37
38
namespace
log4cplus
39
{
40
typedef
std::basic_ostream<tchar>
tostream
;
41
typedef
std::basic_istream<tchar>
tistream
;
42
typedef
std::basic_ostringstream<tchar>
tostringstream
;
43
typedef
std::basic_istringstream<tchar>
tistringstream
;
44
extern
LOG4CPLUS_EXPORT
tostream
&
tcout
;
45
extern
LOG4CPLUS_EXPORT
tostream
&
tcerr
;
46
}
47
48
#if defined (UNICODE) && defined (LOG4CPLUS_ENABLE_GLOBAL_C_STRING_STREAM_INSERTER)
49
50
LOG4CPLUS_EXPORT
log4cplus::tostream
& operator <<(
log4cplus::tostream
&,
const
char
* psz );
51
52
#endif
53
54
#endif // LOG4CPLUS_STREAMS_HEADER_
55
log4cplus::tistringstream
std::basic_istringstream< tchar > tistringstream
Definition:
streams.h:43
log4cplus
Definition:
appender.h:46
tchar.h
log4cplus::tcout
LOG4CPLUS_EXPORT tostream & tcout
config.hxx
log4cplus::tostream
std::basic_ostream< tchar > tostream
Definition:
streams.h:40
log4cplus::tistream
std::basic_istream< tchar > tistream
Definition:
streams.h:41
log4cplus::tcerr
LOG4CPLUS_EXPORT tostream & tcerr
LOG4CPLUS_EXPORT
#define LOG4CPLUS_EXPORT
Definition:
win32.h:141
log4cplus::tostringstream
std::basic_ostringstream< tchar > tostringstream
Definition:
streams.h:42
Generated on Tue Nov 3 2020 17:38:12 for log4cplus by
1.8.18