SourcePro® 2024.1 |
SourcePro® API Reference Guide |
A handle class for a trace event filter that accepts multiple clients. More...
#include <rw/trace/RWTraceMultiClientFilter.h>
Additional Inherited Members | |
Protected Member Functions inherited from RWTraceEventClient | |
RWTraceEventClientImp * | getBody (void) const |
void | transfer (RWTraceEventClientImp *bodyP=0) |
RWTraceMultiClientFilter is a filter that accepts multiple clients to which it forwards trace events.
This example creates two clients; one displays messages on the screen, and the other saves them to a file. This example can be found in examples/trace/MultiClient.cpp
.
//1
Declares the function as traceable, so you can use trace event generation macros in this function.
//2
Instantiates the multi-client filter.
//3
First connects the two clients to the filter.
//4
Then connects the filter to the manager to ensure that no trace messages are lost.
//5
Generates some trace messages.
RWTraceMultiClientFilter::RWTraceMultiClientFilter | ( | void | ) |
Constructs an RWTraceMultiClientFilter (handle) and its body.
RWTraceMultiClientFilter::RWTraceMultiClientFilter | ( | RWTraceMultiClientFilterImp * | bodyP | ) |
Attaches to and increments the reference count on bodyP.
RWTraceMultiClientFilter::RWTraceMultiClientFilter | ( | RWStaticCtor | ) |
Constructs a global static handle instance (that may be used before being constructed).
RWTraceMultiClientFilter::RWTraceMultiClientFilter | ( | const RWTraceMultiClientFilter & | second | ) |
Attaches to and increments the reference count on the body of second.
RWTraceMultiClientFilter::~RWTraceMultiClientFilter | ( | void | ) |
Destructor.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |