Poco::OSP

class BundleFilter

File Information

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 Aliases

Ptr

using Ptr = Poco::AutoPtr < BundleFilter >;

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.

Securely control IoT edge devices from anywhere   Connect a Device