CategoryStream.cpp
Go to the documentation of this file.
1 #include "CategoryStream.hpp"
2 #include "Category.hpp"
3 
4 namespace OCL {
5 namespace logging {
6 
8  _category(rt_category),
9  _priority(priority)
10 {
11 
12 }
13 
15 {
16  flush();
17 }
18 
20 {
21  _category->log(_priority, oss.str());
22  oss.flush();
23 }
24 
26 {
27  os.flush();
28 
29  return os;
30 }
31 
33  _category(rhs._category),
34  _priority(rhs._priority)
35 {
36  // Must copy the underlying buffer but not the output stream
37  (*this).oss.str(rhs.oss.str());
38 }
39 
40 } // namespace logging
41 } // namespace OCL
42 
virtual void log(log4cpp::Priority::Value priority, const RTT::rt_string &message)
Definition: Category.cpp:24
log4cpp::Priority::Value _priority
CategoryStream(Category *rt_category, log4cpp::Priority::Value priority)
RTT::rt_ostringstream oss
CategoryStream & eol(CategoryStream &os)


ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:19