SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWTraceOstreamClient Class Reference

A handle class for a trace event client that sends all events to an std::ostream. More...

#include <rw/trace/RWTraceOstreamClient.h>

Inheritance diagram for RWTraceOstreamClient:
RWTraceEventClient

Public Member Functions

 RWTraceOstreamClient ()
 
 RWTraceOstreamClient (std::ostream &ostr)
 
 RWTraceOstreamClient (RWTraceOstreamClientImp *bodyP)
 
 RWTraceOstreamClient (RWStaticCtor)
 
 RWTraceOstreamClient (const RWTraceOstreamClient &second)
 
 ~RWTraceOstreamClient (void)
 
- Public Member Functions inherited from RWTraceEventClient
 RWTraceEventClient ()
 
 RWTraceEventClient (RWTraceEventClientImp *bodyP)
 
 RWTraceEventClient (RWStaticCtor)
 
 RWTraceEventClient (const RWTraceEventClient &second)
 
virtual ~RWTraceEventClient (void)
 
void connect (RWTraceEventFilter &filter)
 
void connectToManager (void)
 
void disconnect (void)
 
bool isValid (void) const
 
bool operator!= (const RWTraceEventClient &second) const
 
RWTraceEventClientoperator= (const RWTraceEventClient &second)
 
RWTraceEventClientoperator= (RWTraceEventClientImp *ptr)
 
bool operator== (const RWTraceEventClient &second) const
 
void orphan (void)
 
void trace (const RWTraceEvent &ev)
 
void validate (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from RWTraceEventClient
RWTraceEventClientImpgetBody (void) const
 
void transfer (RWTraceEventClientImp *bodyP=0)
 

Detailed Description

RWTraceOstreamClient is a trace client that sends all events to an std::ostream. If no std::ostream is specified, uses std::cerr by default.

Example
#include <rw/trace/trace.h>
. . .
RWTraceOstreamClient myTraceClient(std::cerr);
See also
RWTraceOstreamClientImp

Constructor & Destructor Documentation

RWTraceOstreamClient::RWTraceOstreamClient ( )

Creates a client that outputs trace events to std::cerr.

RWTraceOstreamClient::RWTraceOstreamClient ( std::ostream &  ostr)

Creates a client that outputs trace events to the specified std::ostream.

RWTraceOstreamClient::RWTraceOstreamClient ( RWTraceOstreamClientImp bodyP)

Attaches to and increments the reference count on bodyP.

RWTraceOstreamClient::RWTraceOstreamClient ( RWStaticCtor  )

Constructs a global static handle instance (that may be used before being constructed).

RWTraceOstreamClient::RWTraceOstreamClient ( const RWTraceOstreamClient second)

Attaches to and increments the reference count on the body of second.

RWTraceOstreamClient::~RWTraceOstreamClient ( void  )

Destructor.

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