Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_AssetFilterPacketAccessors.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: May 5, 2021
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7#pragma once
8
13
24public:
25 uint8_t* _data; // byte representation of this object.
26 AssetFilterInput(uint8_t* data) : _data(data) {}
27
32
39
46
50 bool isValid();
51
55 size_t length();
56};
57
62public:
63 uint8_t* _data;
64 AssetFilterOutput(uint8_t* data) : _data(data) {}
65
70
77
82
86 bool isValid();
87
91 size_t length();
92};
93
103public:
104 uint8_t* _data; // byte representation of this object.
105 AssetFilterMetadata(uint8_t* data) : _data(data) {}
106
111
116
120 uint8_t* profileId();
121
126
131
135 bool isValid();
136
140 size_t length();
141};
142
149public:
150 uint8_t* _data; // byte representation of this object.
151 AssetFilterData(uint8_t* data) : _data(data) {}
152
157
164
171
175 bool isValid();
176
180 size_t length();
181};
Class that contains all persisted data required for an asset filter:
Definition: cs_AssetFilterPacketAccessors.h:148
AssetFilterMetadata metadata()
Get the metadata.
AssetFilterData(uint8_t *data)
Definition: cs_AssetFilterPacketAccessors.h:151
size_t length()
Get the expected length of this class.
uint8_t * _data
Definition: cs_AssetFilterPacketAccessors.h:150
bool isValid()
Checks if the data has valid values.
CuckooFilter cuckooFilter()
Get the cuckoo filter.
ExactMatchFilter exactMatchFilter()
Get the cuckoo filter.
This file defines several accessor classes for structures that relate to the trackable parser.
Definition: cs_AssetFilterPacketAccessors.h:23
size_t length()
Get the expected length of this class, depends on type.
AssetFilterInput(uint8_t *data)
Definition: cs_AssetFilterPacketAccessors.h:26
masked_ad_data_type_selector_t * AdTypeMasked()
Get the payload for type MaskedAdDataType.
uint8_t * _data
Definition: cs_AssetFilterPacketAccessors.h:25
bool isValid()
Checks if the data has valid values.
ad_data_type_selector_t * AdTypeField()
Get the payload for type AdDataType.
AssetFilterInputType * type()
Get the type of input.
Class that contains all persisted metadata required for an asset filter:
Definition: cs_AssetFilterPacketAccessors.h:102
asset_filter_flags_t * flags()
Get the flags.
AssetFilterOutput outputType()
Get the output class.
bool isValid()
Checks if the data has valid values.
AssetFilterType * filterType()
Get the type of filter.
uint8_t * profileId()
Get the associated profile ID.
AssetFilterMetadata(uint8_t *data)
Definition: cs_AssetFilterPacketAccessors.h:105
uint8_t * _data
Definition: cs_AssetFilterPacketAccessors.h:104
AssetFilterInput inputType()
Get the input class.
size_t length()
Get the expected length of this class.
Class that determines the output method and data of an asset that passed the filter.
Definition: cs_AssetFilterPacketAccessors.h:61
AssetFilterInput inFormat()
Get the input format.
bool hasInFormat()
Returns true if inFormat() is safe to use.
size_t length()
Get the expected length of this class, depends on type.
bool isValid()
Checks if the data has valid values.
uint8_t * _data
Definition: cs_AssetFilterPacketAccessors.h:63
AssetFilterOutput(uint8_t *data)
Definition: cs_AssetFilterPacketAccessors.h:64
AssetFilterOutputFormat * outFormat()
Get the type of output.
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: 02 Apr....
Definition: cs_CuckooFilter.h:69
Definition: cs_ExactMatchFilter.h:12
AssetFilterOutputFormat
Definition: cs_AssetFilterPackets.h:68
AssetFilterType
Definition: cs_AssetFilterPackets.h:57
AssetFilterInputType
Definition: cs_AssetFilterPackets.h:62
Definition: cs_AssetFilterPackets.h:84
Definition: cs_AssetFilterPackets.h:88
Definition: cs_AssetFilterPackets.h:77