RWTraceEventClientImp RWReference
addReference() connect() |
connectToManager() disconnect() |
doTrace() getMutex() |
removeReference() trace() |
#include <rw/trace/RWTraceEventClientImp.h>
TraceEventClientImp is a body class for trace event clients. This class provides the interface for clients.
virtual ~RWTraceEventClientImp(void);
Destructor.
void addReference();
Increments reference count. Uses a mutex for thread-safety.
void connect(RWTraceEventFilter& filter);
Connects the client with the filter passed as an argument. If the client is already connected, throws the exception RWTraceEventClientImp::TraceClientAlreadyConnected.
void connectToManager(void);
Connects the client with the global singleton trace event manager. If the client is already connected, throws the exception RWTraceEventClientImp::TraceClientAlreadyConnected. If the manager already has a client connected (there can be only one), it throws the exception RWTraceSingleClientFilterImp::TraceClientAlreadyAdded.
void disconnect(void);
Disconnects the client from the filter to which it is currently attached. If the client is not connected, throws the exception RWTraceEventClientImp::TraceClientNotConnected.
unsigned removeReference();
Decrements the reference count. Uses a mutex for thread-safety.
void trace(const RWTraceEvent& ev);
Forwards trace information to the doTrace() member.
virtual void doTrace(const RWTraceEvent& ev) = 0;
Processes a trace event. Derived clients must define this method.
RWMutex& getMutex();
Returns the mutex used for thread-safety. The mutex can be used by derived clients.
RWTraceEventClient, RWTraceEventFilter, RWTraceManagerImp
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.