Module: Threads Package: Execution Tracing
RWTraceEventClientImp RWReference
addReference() connect() connectToManager() |
disconnect() doTrace() getMutex() |
removeReference() RWTraceEventClientImp() trace() |
~RWTraceEventClientImp() |
#include <rw/trace/RWTraceEventClientImp.h>
TraceEventClientImp is a body class for trace event clients. This class provides the interface for clients.
virtual ~RWTraceEventClientImp();
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 RWTraceClientAlreadyConnected.
void connectToManager();
Connects the client with the global singleton trace event manager. If the client is already connected, throws the exception RWTraceClientAlreadyConnected. If the manager already has a client connected (there can be only one), it throws the exception RWTraceClientAlreadyAdded.
void disconnect();
Disconnects the client from the filter to which it is currently attached. If the client is not connected, throws the exception RWTraceClientNotConnected.
unsigned removeReference();
Decrements the reference count. Uses a mutex for thread-safety.
void trace(const RWTraceEvent& ev);
Forwards trace information to the doTrace() member.
RWTraceEventClientImp();
Default constructor.
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 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.