OmniEvents
OmniEvents::FilterByRepositoryId Class Reference

Allows only events of a certain CORBA RepositoryId to pass. More...

#include <Filter.h>

Inheritance diagram for OmniEvents::FilterByRepositoryId:
Collaboration diagram for OmniEvents::FilterByRepositoryId:

Public Member Functions

 FilterByRepositoryId (const char *rid)
 
virtual ~FilterByRepositoryId ()
 
bool keep (const CORBA::Any &event) const
 Returns TRUE if the event passes the filter and FALSE if the event should be discarded.
 
void output (ostream &os) const
 
- Public Member Functions inherited from OmniEvents::Filter
 Filter ()
 
virtual ~Filter ()
 

Private Attributes

CORBA::RepositoryId_var _rid
 

Detailed Description

Allows only events of a certain CORBA RepositoryId to pass.

Only passes events whose type matches exactly.

Definition at line 84 of file Filter.h.

Constructor & Destructor Documentation

◆ FilterByRepositoryId()

OmniEvents::FilterByRepositoryId::FilterByRepositoryId ( const char rid)
inline

Definition at line 87 of file Filter.h.

◆ ~FilterByRepositoryId()

virtual OmniEvents::FilterByRepositoryId::~FilterByRepositoryId ( )
inlinevirtual

Definition at line 88 of file Filter.h.

Member Function Documentation

◆ keep()

bool OmniEvents::FilterByRepositoryId::keep ( const CORBA::Any &  event) const
virtual

Returns TRUE if the event passes the filter and FALSE if the event should be discarded.

Called by filter() once for each event.

Implements OmniEvents::Filter.

Definition at line 36 of file Filter.cc.

References _rid, and STR_MATCH.

◆ output()

void OmniEvents::FilterByRepositoryId::output ( ostream os) const
inlinevirtual

Implements OmniEvents::Filter.

Definition at line 90 of file Filter.h.

References _rid.

Member Data Documentation

◆ _rid

CORBA::RepositoryId_var OmniEvents::FilterByRepositoryId::_rid
private

Definition at line 92 of file Filter.h.

Referenced by keep(), and output().


The documentation for this class was generated from the following files: