Public Member Functions | Public Attributes | Static Public Attributes | List of all members
OCL::logging::LoggingEvent Struct Reference

A mirror of log4cpp::LoggingEvent, except using real-time capable strings. More...

#include <LoggingEvent.hpp>

Public Member Functions

 LoggingEvent (const RTT::rt_string &category, const RTT::rt_string &message, log4cpp::Priority::Value priority)
 Construct from RT strings. More...
 
 LoggingEvent (const std::string &category, const RTT::rt_string &message, log4cpp::Priority::Value priority)
 
 LoggingEvent ()
 Create with empty values. More...
 
 LoggingEvent (const LoggingEvent &toCopy)
 
const LoggingEventoperator= (const LoggingEvent &rhs)
 
log4cpp::LoggingEvent toLog4cpp ()
 
 ~LoggingEvent ()
 

Public Attributes

RTT::rt_string categoryName
 
RTT::rt_string message
 
log4cpp::Priority::Value priority
 
char threadName [THREADNAME_SIZE]
 
log4cpp::TimeStamp timeStamp
 

Static Public Attributes

static const size_t THREADNAME_SIZE =16
 

Detailed Description

A mirror of log4cpp::LoggingEvent, except using real-time capable strings.

Definition at line 11 of file LoggingEvent.hpp.

Constructor & Destructor Documentation

OCL::logging::LoggingEvent::LoggingEvent ( const RTT::rt_string category,
const RTT::rt_string message,
log4cpp::Priority::Value  priority 
)

Construct from RT strings.

See also log4cpp/src/PThreads.cppgetThreadId()

Definition at line 29 of file LoggingEvent.cpp.

OCL::logging::LoggingEvent::LoggingEvent ( const std::string &  category,
const RTT::rt_string message,
log4cpp::Priority::Value  priority 
)

Construct from a mix of types This is an optimization for use by Category::_logUnconditionally2(), which constructs from "std::string&, rt_string&".

See also log4cpp/src/PThreads.cppgetThreadId()

Definition at line 41 of file LoggingEvent.cpp.

OCL::logging::LoggingEvent::LoggingEvent ( )

Create with empty values.

Definition at line 11 of file LoggingEvent.cpp.

OCL::logging::LoggingEvent::LoggingEvent ( const LoggingEvent toCopy)

Definition at line 20 of file LoggingEvent.cpp.

OCL::logging::LoggingEvent::~LoggingEvent ( )

Definition at line 69 of file LoggingEvent.cpp.

Member Function Documentation

const LoggingEvent & OCL::logging::LoggingEvent::operator= ( const LoggingEvent rhs)

Definition at line 56 of file LoggingEvent.cpp.

log4cpp::LoggingEvent OCL::logging::LoggingEvent::toLog4cpp ( )

Convert to log4cpp class

Warning
not realtime

Definition at line 73 of file LoggingEvent.cpp.

Member Data Documentation

RTT::rt_string OCL::logging::LoggingEvent::categoryName

Definition at line 33 of file LoggingEvent.hpp.

RTT::rt_string OCL::logging::LoggingEvent::message

Definition at line 35 of file LoggingEvent.hpp.

log4cpp::Priority::Value OCL::logging::LoggingEvent::priority

Definition at line 45 of file LoggingEvent.hpp.

char OCL::logging::LoggingEvent::threadName[THREADNAME_SIZE]

Definition at line 51 of file LoggingEvent.hpp.

const size_t OCL::logging::LoggingEvent::THREADNAME_SIZE =16
static

The maximum size of threadname (bascially - pthread_self() as "%ld") See also log4cpp/src/PThreads.cppgetThreadId()

Definition at line 49 of file LoggingEvent.hpp.

log4cpp::TimeStamp OCL::logging::LoggingEvent::timeStamp

Definition at line 53 of file LoggingEvent.hpp.


The documentation for this struct was generated from the following files:


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