Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
logging
CategoryStream.hpp
Go to the documentation of this file.
1
#ifndef CATEGORY_STREAM_HPP
2
#define CATEGORY_STREAM_HPP 1
3
4
#include <
ocl/OCL.hpp
>
5
#include <
log4cpp/Priority.hh
>
6
#include <
rtt/rt_string.hpp
>
7
8
namespace
OCL
{
9
namespace
logging {
10
11
class
OCL_API
Category
;
12
19
class
OCL_API
CategoryStream
20
{
21
public
:
22
29
CategoryStream
(
Category
* rt_category,
log4cpp::Priority::Value
priority);
30
36
CategoryStream
(
const
CategoryStream
& rhs);
37
42
virtual
~
CategoryStream
();
43
48
void
flush();
49
55
template
<
typename
T>
CategoryStream
&
operator<<
(
const
T& t)
56
{
57
if
(_priority !=
log4cpp::Priority::NOTSET
)
58
{
59
(oss) << t;
60
}
61
return
*
this
;
62
}
63
64
private
:
65
66
Category
*
_category
;
67
log4cpp::Priority::Value
_priority
;
68
RTT::rt_ostringstream
oss
;
69
70
};
71
72
73
}
// namespace logging
74
}
// namespace OCL
75
76
#endif // CATEGORY_STREAM_HPP
OCL::logging::CategoryStream::_priority
log4cpp::Priority::Value _priority
Definition:
CategoryStream.hpp:67
RTT::rt_ostringstream
std::basic_ostringstream< char, std::char_traits< char >, RTT::os::rt_allocator< char > > rt_ostringstream
OCL::logging::CategoryStream::oss
RTT::rt_ostringstream oss
Definition:
CategoryStream.hpp:68
OCL::logging::CategoryStream
Definition:
CategoryStream.hpp:19
rt_string.hpp
OCL::logging::CategoryStream::_category
Category * _category
Definition:
CategoryStream.hpp:66
log4cpp::Priority::NOTSET
NOTSET
OCL::logging::CategoryStream::operator<<
CategoryStream & operator<<(const T &t)
Definition:
CategoryStream.hpp:55
OCL.hpp
OCL
Definition:
deployer-funcs.cpp:68
log4cpp::Priority::Value
int Value
OCL::logging::Category
Definition:
Category.hpp:25
Priority.hh
ocl
Author(s): OCL Development Team
autogenerated on Wed Jun 26 2019 19:26:27