A body class for trace event client implementations.
More...
#include <rw/trace/RWTraceEventClientImp.h>
RWTraceEventClientImp is a body class that provides an interface for trace event clients. Derived clients are required to implement this interface.
- See also
- RWTraceEventClient, RWTraceEventFilter, RWTraceManager
virtual RWTraceEventClientImp::~RWTraceEventClientImp |
( |
void |
| ) |
|
|
virtual |
RWTraceEventClientImp::RWTraceEventClientImp |
( |
void |
| ) |
|
|
protected |
void RWTraceEventClientImp::addReference |
( |
void |
| ) |
|
|
inline |
Increments the reference count.
void RWTraceEventClientImp::connectToManager |
( |
void |
| ) |
|
Connects the client with the global singleton trace event manager. The manager allows a single client connection at a time.
If the client is already connected, throws the exception RWTraceClientAlreadyConnected. If the manager already has a client connected, throws the exception RWTraceClientAlreadyAdded.
void RWTraceEventClientImp::disconnect |
( |
void |
| ) |
|
Disconnects the client from the filter it is currently attached to.
If the client is not connected, throws the exception RWTraceClientNotConnected.
virtual void RWTraceEventClientImp::doTrace |
( |
const RWTraceEvent & |
ev | ) |
|
|
protectedpure virtual |
RWMutex & RWTraceEventClientImp::getMutex |
( |
void |
| ) |
|
|
inlineprotected |
Returns the mutex used for thread safety. The mutex can be used by derived clients.
unsigned RWTraceEventClientImp::removeReference |
( |
void |
| ) |
|
|
inline |
Decrements the reference count.
void RWTraceEventClientImp::trace |
( |
const RWTraceEvent & |
ev | ) |
|
Forwards trace information to the doTrace() member.