Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
log4cpp_null
include
log4cpp
CategoryStream.hh
Go to the documentation of this file.
1
#ifndef CATEGORY_STREAM_HH
2
#define CATEGORY_STREAM_HH
3
4
#include <ios>
5
#include "
log4cpp/Priority.hh
"
6
7
namespace
log4cpp
{
8
9
class
Category
;
10
class
CategoryStream
;
11
12
CategoryStream
&
eol
(
CategoryStream
&os);
13
15
class
CategoryStream
16
{
17
public
:
19
CategoryStream
(
Category
&category,
20
Priority::Value
priority);
21
22
virtual
~CategoryStream
();
23
25
inline
Category
&
getCategory
()
const
{
return
m_category; }
26
28
inline
Priority::Value
getPriority
() {
29
return
m_priority;
30
}
31
33
void
flush
();
34
36
template
<
typename
T>
37
CategoryStream
&
operator<<
(
const
T&) {
38
return
*
this
;
39
}
40
42
CategoryStream
&
operator<<
(
const
char
*) {
43
return
*
this
;
44
}
45
47
CategoryStream
&
operator<<
(
const
std::string &) {
48
return
*
this
;
49
}
50
52
std::streamsize
width
(std::streamsize wide);
53
54
private
:
55
56
Category
&m_category;
57
Priority::Value
m_priority;
58
};
59
}
60
61
#endif
// CATEGORY_STREAM_HH
Priority.hh
log4cpp::CategoryStream
Streaming of simple types and objects to a category.
Definition
CategoryStream.hh:16
log4cpp::CategoryStream::CategoryStream
CategoryStream(Category &category, Priority::Value priority)
Single constructor.
Definition
CategoryStream.cpp:6
log4cpp::CategoryStream::getCategory
Category & getCategory() const
Return useless value.
Definition
CategoryStream.hh:25
log4cpp::CategoryStream::~CategoryStream
virtual ~CategoryStream()
Definition
CategoryStream.cpp:12
log4cpp::CategoryStream::flush
void flush()
Noop.
log4cpp::CategoryStream::width
std::streamsize width(std::streamsize wide)
Noop method to get width.
log4cpp::CategoryStream::getPriority
Priority::Value getPriority()
Return useless value.
Definition
CategoryStream.hh:28
log4cpp::CategoryStream::operator<<
CategoryStream & operator<<(const T &)
Stream of arbitrary types and objects.
Definition
CategoryStream.hh:37
log4cpp::CategoryStream::operator<<
CategoryStream & operator<<(const char *)
Noop insertion method for character.
Definition
CategoryStream.hh:42
log4cpp::CategoryStream::operator<<
CategoryStream & operator<<(const std::string &)
Noop insertion method for string.
Definition
CategoryStream.hh:47
log4cpp::Category
Noop class that mimics class of the same name in log4cpp library.
Definition
Category.hh:15
log4cpp::Priority::Value
int Value
Priority level.
Definition
Priority.hh:24
log4cpp
Definition
Appender.hh:4
log4cpp::eol
CategoryStream & eol(CategoryStream &os)
Generated on
for Engauge Digitizer by
1.17.0