Poco::OSP

class BundleFilter

Library: OSP
Package: Bundle
Header: Poco/OSP/BundleFilter.h

Description

A BundleFilter is used by BundleRepository to determine which bundles found in a repository should be loaded. For each bundle found in a repository, the BundleFilter's accept() method will be called, passing the Bundle as argument. Only if accept() returns true, the bundle will be loaded.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: accept

Inherited Functions: duplicate, referenceCount, release

Types

Ptr

typedef Poco::AutoPtr < BundleFilter > Ptr;

Destructor

~BundleFilter virtual

virtual ~BundleFilter();

Destroys the BundleFilter.

Member Functions

accept virtual

virtual bool accept(
    Bundle::Ptr pBundle
) = 0;

Check whether the given Bundle should be loaded. Must be overridden by subclasses.

Returns true if given Bundle should be loaded, or false otherwise.