OrocosComponentLibrary  2.9.0
LoggingEvent.hpp
1 #ifndef _LOGGINGEVENT_HPP
2 #define _LOGGINGEVENT_HPP 1
3 
4 #include <rtt/rt_string.hpp>
5 #include <log4cpp/LoggingEvent.hh>
6 
7 namespace OCL {
8 namespace logging {
9 
11 struct LoggingEvent
12 {
13 public:
14  LoggingEvent(const RTT::rt_string& category,
15  const RTT::rt_string& message,
16  const RTT::rt_string& ndc,
17  log4cpp::Priority::Value priority);
19  LoggingEvent();
20  // copy constructor
21  LoggingEvent(const LoggingEvent& toCopy);
22  // assignment operator
23  const LoggingEvent& operator=(const LoggingEvent& rhs);
24  ~LoggingEvent();
25 
26  /*const */RTT::rt_string categoryName;
27 
28  /*const */RTT::rt_string message;
29 
30  /*const */RTT::rt_string ndc;
31 
32  log4cpp::Priority::Value priority;
33 
34  /*const */RTT::rt_string threadName;
35 
36  log4cpp::TimeStamp timeStamp;
37 
40  log4cpp::LoggingEvent toLog4cpp();
41 };
42 
43 // namespaces
44 }
45 }
46 
47 #endif
48 
A mirror of log4cpp::LoggingEvent, except using real-time capable strings.
The Orocos Component Library.
Definition: Component.hpp:43
log4cpp::LoggingEvent toLog4cpp()
Convert to log4cpp class.
LoggingEvent()
Create with empty values.