Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Application toolkit providing BT security setup and its device association on a pattern matching basis, i.e. More...
Classes | |
struct | Entry |
Typedefs | |
typedef 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 algorithm. More... | |
typedef bool(* | AddressSubNameEntryMatchFunc) (const EUI48Sub &addressSub, const std::string &name, const Entry &e) |
Function for user defined EUI48Sub addressSub and name BTSecurityRegistry::Entry matching criteria and algorithm. More... | |
typedef bool(* | NameEntryMatchFunc) (const std::string &name, const Entry &e) |
Function for user defined std::string name BTSecurityRegistry::Entry matching criteria and algorithm. More... | |
Functions | |
Entry * | get (const EUI48 &addr, const std::string &name, AddressNameEntryMatchFunc m) noexcept |
Returns a matching BTSecurityRegistry::Entry with the given. More... | |
Entry * | get (const EUI48Sub &addrSub, const std::string &name, AddressSubNameEntryMatchFunc m) noexcept |
Returns a matching BTSecurityRegistry::Entry with the given. More... | |
Entry * | get (const std::string &name, NameEntryMatchFunc m) noexcept |
Returns a matching BTSecurityRegistry::Entry with the given. More... | |
Entry * | getStartOf (const EUI48 &addr, const std::string &name) noexcept |
Returns a matching Entry,. More... | |
Entry * | getStartOf (const EUI48Sub &addrSub, const std::string &name) noexcept |
Returns a matching Entry,. More... | |
Entry * | getStartOf (const std::string &name) noexcept |
Returns a matching Entry, which Entry::nameSub is set and the given. More... | |
Entry * | getEqual (const EUI48Sub &addrSub, const std::string &name) noexcept |
Returns a matching Entry,. More... | |
Entry * | getEqual (const std::string &name) noexcept |
Returns a matching Entry, which Entry::nameSub is set and the given. More... | |
jau::darray< Entry > & | getEntries () noexcept |
Returns the reference of the current list of Entry, not a copy. More... | |
Entry * | getOrCreate (const std::string &addrOrNameSub) noexcept |
Determines whether the given. More... | |
void | clear () noexcept |
Clears internal list. More... | |
std::string | allToString () noexcept |
Variables | |
static jau::darray< Entry > | devicesSecDetails |
Application toolkit providing BT security setup and its device association on a pattern matching basis, i.e.
EUI48Sub or name-sub.
typedef bool(* direct_bt::BTSecurityRegistry::AddressNameEntryMatchFunc) (const EUI48 &address, const std::string &name, const Entry &e) |
Function for user defined EUI48 address and name BTSecurityRegistry::Entry matching criteria and algorithm.
Return
if the given
or
matches with the BTSecurityRegistry::Entry.
Definition at line 95 of file BTSecurityRegistry.hpp.
typedef bool(* direct_bt::BTSecurityRegistry::AddressSubNameEntryMatchFunc) (const EUI48Sub &addressSub, const std::string &name, const Entry &e) |
Function for user defined EUI48Sub addressSub and name BTSecurityRegistry::Entry matching criteria and algorithm.
Return
if the given
or
matches with the BTSecurityRegistry::Entry.
Definition at line 108 of file BTSecurityRegistry.hpp.
typedef bool(* direct_bt::BTSecurityRegistry::NameEntryMatchFunc) (const std::string &name, const Entry &e) |
Function for user defined std::string name BTSecurityRegistry::Entry matching criteria and algorithm.
Return
if the given
matches with the BTSecurityRegistry::Entry.
name | |
e | Entry entry |
Definition at line 120 of file BTSecurityRegistry.hpp.
|
noexcept |
Definition at line 93 of file BTSecurityRegistry.cpp.
|
noexcept |
Clears internal list.
Definition at line 90 of file BTSecurityRegistry.cpp.
|
noexcept |
Returns a matching BTSecurityRegistry::Entry with the given.
and/or
.
Matching criteria and algorithm is defined by the given AddressNameEntryMatchFunc.
Definition at line 36 of file BTSecurityRegistry.cpp.
|
noexcept |
Returns a matching BTSecurityRegistry::Entry with the given.
and/or
.
Matching criteria and algorithm is defined by the given AddressSubNameEntryMatchFunc.
Definition at line 46 of file BTSecurityRegistry.cpp.
|
noexcept |
Returns a matching BTSecurityRegistry::Entry with the given.
.
Matching criteria and algorithm is defined by the given NameEntryMatchFunc.
Definition at line 56 of file BTSecurityRegistry.cpp.
|
noexcept |
Returns the reference of the current list of Entry, not a copy.
Definition at line 67 of file BTSecurityRegistry.cpp.
|
inlinenoexcept |
Returns a matching Entry,.
Otherwise
is returned.
Definition at line 191 of file BTSecurityRegistry.hpp.
|
inlinenoexcept |
Returns a matching Entry, which Entry::nameSub is set and the given.
starts with Entry::nameSub.
Otherwise
is returned.
Definition at line 203 of file BTSecurityRegistry.hpp.
|
noexcept |
Determines whether the given.
is a EUI48Sub or just a
and retrieves an entry. If no entry exists, creates a new entry.
Implementation uses getEqual() to find a pre-existing entry.
addrOrNameSub | either a EUI48Sub or just a name |
Definition at line 71 of file BTSecurityRegistry.cpp.
|
inlinenoexcept |
Returns a matching Entry,.
Otherwise
is returned.
Definition at line 153 of file BTSecurityRegistry.hpp.
|
inlinenoexcept |
Returns a matching Entry,.
Otherwise
is returned.
Definition at line 166 of file BTSecurityRegistry.hpp.
|
inlinenoexcept |
Returns a matching Entry, which Entry::nameSub is set and the given.
starts with Entry::nameSub.
Otherwise
is returned.
Definition at line 178 of file BTSecurityRegistry.hpp.
|
static |
Definition at line 34 of file BTSecurityRegistry.cpp.