LoggingEvent.hpp
Go to the documentation of this file.
1 #ifndef _LOGGINGEVENT_HPP
2 #define _LOGGINGEVENT_HPP 1
3 
4 #include <rtt/rt_string.hpp>
6 
7 namespace OCL {
8 namespace logging {
9 
11 struct LoggingEvent
12 {
13 public:
15  LoggingEvent(const RTT::rt_string& category,
16  const RTT::rt_string& message,
22  LoggingEvent(const std::string& category,
23  const RTT::rt_string& message,
24  log4cpp::Priority::Value priority);
26  LoggingEvent();
27  // copy constructor
28  LoggingEvent(const LoggingEvent& toCopy);
29  // assignment operator
30  const LoggingEvent& operator=(const LoggingEvent& rhs);
31  ~LoggingEvent();
32 
34 
36 
37  /* NB "ndc" is not used in the real-time logging framework as it is
38  * inherently non-real-time safe in log4cpp itself. Instead an empty string
39  * is passed through. To prevent the repetitive use of an empty string,
40  * just don't use this at all and pass the empty string explicitly back
41  * to log4cpp when converting to log4cpp in toLog4cpp().
42  */
43  /*const RTT::rt_string ndc;*/
44 
46 
49  static const size_t THREADNAME_SIZE=16;
50 
52 
54 
58 };
59 
60 // namespaces
61 }
62 }
63 
64 #endif
65 
A mirror of log4cpp::LoggingEvent, except using real-time capable strings.
log4cpp::Priority::Value priority
log4cpp::TimeStamp timeStamp
std::basic_string< char, std::char_traits< char >, RTT::os::rt_allocator< char > > rt_string
static const size_t THREADNAME_SIZE
const LoggingEvent & operator=(const LoggingEvent &rhs)
char threadName[THREADNAME_SIZE]
LoggingEvent()
Create with empty values.
log4cpp::LoggingEvent toLog4cpp()


ocl
Author(s): OCL Development Team
autogenerated on Wed Jun 26 2019 19:26:27