$search

OCL::logging::CategoryStream Class Reference

#include <CategoryStream.hpp>

List of all members.

Public Member Functions

 CategoryStream (const CategoryStream &rhs)
 CategoryStream (Category *rt_category, log4cpp::Priority::Value priority)
void flush ()
template<typename T >
CategoryStreamoperator<< (const T &t)
virtual ~CategoryStream ()

Private Attributes

Category_category
log4cpp::Priority::Value _priority
RTT::rt_ostringstream oss

Detailed Description

Definition at line 13 of file CategoryStream.hpp.


Constructor & Destructor Documentation

OCL::logging::CategoryStream::CategoryStream ( Category rt_category,
log4cpp::Priority::Value  priority 
)

Construct a CategoryStream for given Category with given priority.

Parameters:
category The category this stream will send log messages to.
priority The priority the log messages will get or Priority::NOTSET to silently discard any streamed in messages.

Definition at line 5 of file CategoryStream.cpp.

OCL::logging::CategoryStream::CategoryStream ( const CategoryStream rhs  ) 

Copy-constructor needed because the output string stream can't be copied. We rater have to copy the underlying (real-time) string.

Parameters:
rhs The CategoryStream to copy from

Definition at line 30 of file CategoryStream.cpp.

OCL::logging::CategoryStream::~CategoryStream (  )  [virtual]

Destructor for CategoryStream

Definition at line 12 of file CategoryStream.cpp.


Member Function Documentation

void OCL::logging::CategoryStream::flush (  ) 

Flush the contents of the stream buffer to the Category and empties the buffer.

Definition at line 17 of file CategoryStream.cpp.

template<typename T >
CategoryStream& OCL::logging::CategoryStream::operator<< ( const T &  t  )  [inline]

Stream in arbitrary types and objects.

Parameters:
t The value or object to stream in.
Returns:
A reference to itself.

Definition at line 48 of file CategoryStream.hpp.


Member Data Documentation

Definition at line 59 of file CategoryStream.hpp.

Definition at line 60 of file CategoryStream.hpp.

Definition at line 61 of file CategoryStream.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


ocl
Author(s): OCL Development Team
autogenerated on Fri Mar 1 16:28:36 2013