SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWTraceOstreamClientImp Class Reference

A body class for clients that send all trace events to an std::ostream. More...

#include <rw/trace/RWTraceOstreamClientImp.h>

Inheritance diagram for RWTraceOstreamClientImp:
RWTraceEventClientImp

Public Member Functions

 ~RWTraceOstreamClientImp (void)
 
- Public Member Functions inherited from RWTraceEventClientImp
virtual ~RWTraceEventClientImp (void)
 
void addReference (void)
 
void connect (RWTraceEventFilter &filter)
 
void connectToManager (void)
 
void disconnect (void)
 
unsigned removeReference (void)
 
void trace (const RWTraceEvent &ev)
 

Static Public Member Functions

static RWTraceEventClient make (std::ostream &ostr=std::cerr)
 

Protected Member Functions

 RWTraceOstreamClientImp (std::ostream &ostr=std::cerr)
 
virtual void doTrace (const RWTraceEvent &ev)
 
std::ostream & getOstream () const
 
- Protected Member Functions inherited from RWTraceEventClientImp
 RWTraceEventClientImp (void)
 
RWMutex & getMutex (void)
 

Detailed Description

RWTraceOstreamClientImp is the implementation (body) for RWTraceOstreamClient.

See also
RWTraceOstreamClient

Constructor & Destructor Documentation

◆ ~RWTraceOstreamClientImp()

RWTraceOstreamClientImp::~RWTraceOstreamClientImp ( void )

Destructor.

◆ RWTraceOstreamClientImp()

RWTraceOstreamClientImp::RWTraceOstreamClientImp ( std::ostream & ostr = std::cerr)
protected

Constructor that takes an output stream. Default argument sets the output stream to std::cerr.

Member Function Documentation

◆ doTrace()

virtual void RWTraceOstreamClientImp::doTrace ( const RWTraceEvent & ev)
protectedvirtual

Sends trace events to the output stream.

Implements RWTraceEventClientImp.

◆ getOstream()

std::ostream & RWTraceOstreamClientImp::getOstream ( ) const
inlineprotected

Returns the output stream for trace events.

◆ make()

static RWTraceEventClient RWTraceOstreamClientImp::make ( std::ostream & ostr = std::cerr)
static

Creates a new RWTraceOstreamClientImp instance that outputs trace events to the specified std::ostream. If no std::ostream is specified, uses std::cerr by default.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.