SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
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 (RWTraceEventSeverity level)
 
 RWTraceLevelFilterImp (void)
 
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::~RWTraceLevelFilterImp ( void )

Destructor.

◆ RWTraceLevelFilterImp() [1/2]

RWTraceLevelFilterImp::RWTraceLevelFilterImp ( void )
protected

Default constructor. Trace level is RW_TRACE_LEVEL_NONE.

◆ RWTraceLevelFilterImp() [2/2]

RWTraceLevelFilterImp::RWTraceLevelFilterImp ( RWTraceEventSeverity level)
protected

Constructor that takes a severity level.

Member Function Documentation

◆ doGetLevel()

virtual RWTraceEventSeverity RWTraceLevelFilterImp::doGetLevel ( ) const
protectedvirtual

Returns the filter's severity level.

◆ doSetLevel()

virtual void RWTraceLevelFilterImp::doSetLevel ( RWTraceEventSeverity level)
protectedvirtual

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

◆ doTrace()

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.

◆ getLevel()

RWTraceEventSeverity RWTraceLevelFilterImp::getLevel ( ) const
inline

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

◆ make()

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.

◆ setLevel()

void RWTraceLevelFilterImp::setLevel ( RWTraceEventSeverity level)
inline

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

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