SourcePro® API Reference Guide

Product Documentation:
   SourcePro
Documentation Home
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
RWTraceLevelFilterImp Class Reference

A body class for trace level filter implementations. More...

#include <rw/trace/RWTraceLevelFilterImp.h>

Inheritance diagram for RWTraceLevelFilterImp:
RWTraceSingleClientFilterImp RWTraceEventFilterImp RWTraceEventClientImp

Public Member Functions

 ~RWTraceLevelFilterImp (void)
 
RWTraceEventSeverity getLevel () const
 
void setLevel (RWTraceEventSeverity level)
 
- Public Member Functions inherited from RWTraceSingleClientFilterImp
virtual ~RWTraceSingleClientFilterImp (void)
 
void disconnectClient (void)
 
- Public Member Functions inherited from RWTraceEventFilterImp
virtual ~RWTraceEventFilterImp (void)
 
void add (RWTraceEventClientImp *clientP)
 
void remove (RWTraceEventClientImp *clientP)
 
- Public Member Functions inherited from RWTraceEventClientImp
virtual ~RWTraceEventClientImp (void)
 
void addReference (void)
 
void connect (RWTraceEventFilter &filter)
 
void connectToManager (void)
 
void disconnect (void)
 
unsigned removeReference (void)
 
void trace (const RWTraceEvent &ev)
 

Static Public Member Functions

static RWTraceSingleClientFilter make (RWTraceEventSeverity level=RW_TRACE_LEVEL_NONE)
 
- Static Public Member Functions inherited from RWTraceSingleClientFilterImp
static RWTraceSingleClientFilter make (void)
 

Protected Member Functions

 RWTraceLevelFilterImp (void)
 
 RWTraceLevelFilterImp (RWTraceEventSeverity level)
 
virtual RWTraceEventSeverity doGetLevel () const
 
virtual void doSetLevel (RWTraceEventSeverity level)
 
virtual void doTrace (const RWTraceEvent &ev)
 
- Protected Member Functions inherited from RWTraceSingleClientFilterImp
 RWTraceSingleClientFilterImp (void)
 
virtual void doAdd (RWTraceEventClientImp *clientP)
 
virtual void doDisconnectClient ()
 
virtual void doRemove (RWTraceEventClientImp *clientP)
 
RWTraceEventClientImpgetClient ()
 
- Protected Member Functions inherited from RWTraceEventFilterImp
 RWTraceEventFilterImp (void)
 
- Protected Member Functions inherited from RWTraceEventClientImp
 RWTraceEventClientImp (void)
 
RWMutex & getMutex (void)
 

Detailed Description

RWTraceLevelFilterImp is the implementation (body) for RWTraceLevelFilter.

See also
RWTraceLevelFilter

Constructor & Destructor Documentation

RWTraceLevelFilterImp::~RWTraceLevelFilterImp ( void  )

Destructor.

RWTraceLevelFilterImp::RWTraceLevelFilterImp ( void  )
protected

Default constructor. Trace level is RW_TRACE_LEVEL_NONE.

RWTraceLevelFilterImp::RWTraceLevelFilterImp ( RWTraceEventSeverity  level)
protected

Constructor that takes a severity level.

Member Function Documentation

virtual RWTraceEventSeverity RWTraceLevelFilterImp::doGetLevel ( ) const
protectedvirtual

Returns the filter's severity level.

virtual void RWTraceLevelFilterImp::doSetLevel ( RWTraceEventSeverity  level)
protectedvirtual

Sets the severity level for the filter, overriding any existing level.

virtual void RWTraceLevelFilterImp::doTrace ( const RWTraceEvent &  ev)
protectedvirtual

Forwards the trace event to the attached client if the event's severity is greater or equal to the filter's severity level.

Reimplemented from RWTraceSingleClientFilterImp.

RWTraceEventSeverity RWTraceLevelFilterImp::getLevel ( ) const
inline

Public interface for getting the filter's severity level. Forwards to the internal protected doGetLevel() member.

static RWTraceSingleClientFilter RWTraceLevelFilterImp::make ( RWTraceEventSeverity  level = RW_TRACE_LEVEL_NONE)
static

Creates a new RWTraceLevelFilterImp instance that filters based on level. By default, all trace events are filtered out.

void RWTraceLevelFilterImp::setLevel ( RWTraceEventSeverity  level)
inline

Public interface for setting the filter's severity level. Forwards to the internal protected doSetLevel() member.

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