class BundleFilter

File Information

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


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.


Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: accept

Inherited Functions: duplicate, referenceCount, release

Types Aliases


using Ptr = Poco::AutoPtr < BundleFilter >;


~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.