#include <cs_AssetFiltering.h>
|
cs_ret_code_t | initInternal () |
| Initializes this class. More...
|
|
void | handleScannedDevice (const scanned_device_t &asset) |
| Dispatches a TrackedEvent for the given advertisement. More...
|
|
bool | checkIfFilterAccepts (uint8_t filterIndex, const scanned_device_t &device) |
| Check if the filter with given index accepts the device, call handleAcceptedAsset and. More...
|
|
void | handleAcceptedAsset (uint8_t filterIndex, AssetFilter filter, const scanned_device_t &asset) |
| splits out into subhandlers based on filter output type. More...
|
|
void | handleAcceptedAssetOutputMac (uint8_t filterId, AssetFilter filter, const scanned_device_t &asset) |
|
void | handleAcceptedAssetOutputAssetId (uint8_t filterId, AssetFilter filter, const scanned_device_t &asset) |
|
void | handleAcceptedAssetOutputAssetIdNearest (uint8_t filterId, AssetFilter filter, const scanned_device_t &asset) |
|
bool | isAssetRejected (const scanned_device_t &device) |
| Returns true if there is a filter that rejects this device. More...
|
|
◆ AssetFilteringState
Enumerator |
---|
NONE | |
INIT_FAILED | |
INIT_SUCCESS | |
◆ checkIfFilterAccepts()
bool AssetFiltering::checkIfFilterAccepts |
( |
uint8_t |
filterIndex, |
|
|
const scanned_device_t & |
device |
|
) |
| |
|
private |
Check if the filter with given index accepts the device, call handleAcceptedAsset and.
dispatches EVT_ASSET_ACCEPTED if so.
Returns true if the filter accepts the device and the exclude flag is false.
◆ getChildren()
virtual std::vector< Component * > AssetFiltering::getChildren |
( |
| ) |
|
|
overrideprotectedvirtual |
returns the following child-components in a vector of pointers: _filterStore, _filterSyncer, _assetForwarder, _assetStore _nearestCrownstoneTracker (if included in build)
Reimplemented from Component.
◆ handleAcceptedAsset()
splits out into subhandlers based on filter output type.
Performs desired actions for said output type.
◆ handleAcceptedAssetOutputAssetId()
◆ handleAcceptedAssetOutputAssetIdNearest()
◆ handleAcceptedAssetOutputMac()
◆ handleEvent()
void AssetFiltering::handleEvent |
( |
event_t & |
evt | ) |
|
|
virtual |
◆ handleScannedDevice()
Dispatches a TrackedEvent for the given advertisement.
◆ init()
Initialize this class.
Constructs and initializes member classes. Checks result of previous call to init.
Reimplemented from Component.
◆ initInternal()
Initializes this class.
Constructs and initializes member classes.
◆ isAssetRejected()
Returns true if there is a filter that rejects this device.
(Does not check if the filterstore is ready.)
◆ isInitialized()
bool AssetFiltering::isInitialized |
( |
| ) |
|
Returns true if init has been called successfully.
◆ _assetForwarder
◆ _assetStore
◆ _filterStore
◆ _filterSyncer
◆ _initState
The documentation for this class was generated from the following file: