- A filter for ECS events
#include <ECS/EventFilter.hh>
class ECS_EventFilter
{
public:
_ECSAIO_PRIVAPI ECS_EventFilter();
_ECSAIO_PRIVAPI ECS_EventFilter(const char* encodingType);
_ECSAIO_PRIVAPI ECS_EventFilter
(
const char* encodingType,
const char* eventSyntax
);
_ECSAIO_PRIVAPI ECS_EventFilter(ECS_EventFilter const& other);
ECS_EventFilter const& operator=(ECS_EventFilter const& other);
_ECSAIO_PRIVAPI virtual ~ECS_EventFilter();
virtual ostream& print(ostream& os) const;
_ECSAIO_PRIVAPI const char* getEncodingTypePattern() const;
_ECSAIO_PRIVAPI const char* getSyntaxPattern() const;
_ECSAIO_PRIVAPI void setEncodingTypePattern(const char* pattern);
_ECSAIO_PRIVAPI void clearEncodingTypePattern();
_ECSAIO_PRIVAPI void setSyntaxPattern(const char* pattern);
_ECSAIO_PRIVAPI void clearSyntaxPattern();
_ECSAIO_PRIVAPI void clear();
};
Concrete
ECS Application Developers
This class is used to specify the filtering which is to be applied to events output by the engine before they are passed to an ECS_EventReceiver.
Note: Although this class refers to filter components as patterns, the underlying implementation currently only supports an exact match. This means that filtering is limited to a specific encoding type and/or specific event syntax.
_ECSAIO_PRIVAPI ECS_EventFilter();
The default filter will match all events.
_ECSAIO_PRIVAPI ECS_EventFilter(const char* encodingType);
_ECSAIO_PRIVAPI ECS_EventFilter(
const char* encodingType,
const char* eventSyntax
);
_ECSAIO_PRIVAPI ECS_EventFilter(ECS_EventFilter const& other);
ECS_EventFilter const& operator=(ECS_EventFilter const& other);
_ECSAIO_PRIVAPI virtual ~ECS_EventFilter();
virtual ostream& print(ostream& os) const;
os.
_ECSAIO_PRIVAPI const char* getEncodingTypePattern() const;
_ECSAIO_PRIVAPI const char* getSyntaxPattern() const;
_ECSAIO_PRIVAPI void setEncodingTypePattern(const char* pattern);
_ECSAIO_PRIVAPI void clearEncodingTypePattern();
_ECSAIO_PRIVAPI void setSyntaxPattern(const char* pattern);
_ECSAIO_PRIVAPI void clearSyntaxPattern();
_ECSAIO_PRIVAPI void clear();
None
ECS_EventReceiver
ECS
1.5
1998/02/25
Hewlett-Packard Company
Copyright (c) 1997 Hewlett-Packard Company. All Rights Reserved.