39 for (; first != last; ++first) {
40 if( m(addr, name, *first) ) {
49 for (; first != last; ++first) {
50 if( m(addrSub, name, *first) ) {
59 for (; first != last; ++first) {
60 if( m(name, *first) ) {
75 if( EUI48Sub::scanEUI48Sub(addrOrNameSub, addr1, errmsg) ) {
77 if(
nullptr == sec ) {
83 if(
nullptr == sec ) {
97 const Entry& sec = *iter;
Implementation of a dynamic linear array storage, aka vector.
bool(* NameEntryMatchFunc)(const std::string &name, const Entry &e)
Function for user defined std::string name BTSecurityRegistry::Entry matching criteria and algorithm.
Entry * getOrCreate(const std::string &addrOrNameSub) noexcept
Determines whether the given addrOrNameSub is a EUI48Sub or just a name and retrieves an entry.
void clear() noexcept
Clears internal list.
bool(* AddressNameEntryMatchFunc)(const EUI48 &address, const std::string &name, const Entry &e)
Function for user defined EUI48 address and name BTSecurityRegistry::Entry matching criteria and algo...
bool(* AddressSubNameEntryMatchFunc)(const EUI48Sub &addressSub, const std::string &name, const Entry &e)
Function for user defined EUI48Sub addressSub and name BTSecurityRegistry::Entry matching criteria an...
Entry * get(const EUI48 &addr, const std::string &name, AddressNameEntryMatchFunc m) noexcept
Returns a matching BTSecurityRegistry::Entry with the given addr and/or name.
Entry * getEqual(const EUI48Sub &addrSub, const std::string &name) noexcept
Returns a matching Entry,.
std::string allToString() noexcept
jau::darray< Entry > & getEntries() noexcept
Returns the reference of the current list of Entry, not a copy.
Application toolkit providing BT security setup and its device association on a pattern matching basi...
static jau::darray< Entry > devicesSecDetails
std::string toString() const noexcept
A 48 bit EUI-48 sub-identifier, see EUI48.
A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Med...