|
WSF
|
#include <WsfExternalLinks.hpp>

Classes | |
| struct | CommPairHash |
| struct | CommandHash |
Public Types | |
| using | AddressSet = std::unordered_set<Address> |
| using | WsfStringSet = std::unordered_set<WsfStringId> |
| using | CommandSet = std::unordered_set<CommandChainTarget, CommandHash> |
| using | CommSet = std::unordered_set<CommPair, CommPairHash> |
Public Member Functions | |
| ExternalLink ()=default | |
| virtual | ~ExternalLink ()=default |
Add/Remove methods | |
| WsfStringId | mXmtrName {} |
| AddressSet | mAddressRecipients {} |
| WsfStringSet | mGroups {} |
| CommandSet | mCommandRecipients {} |
| CommSet | mCommRecipients {} |
| ExternalLinks * | mParentPtr {nullptr} |
| bool | AddAddressRecipient (const Address &aAddress) |
| bool | AddGroupRecipient (WsfStringId aGroupName) |
| bool | AddCommandRecipient (const CommandChainTarget &aCommandChainTarget) |
| bool | AddCommRecipient (const CommPair &aCommPair) |
| bool | RemoveAddressRecipient (const Address &aAddress) |
| bool | RemoveGroupRecipient (WsfStringId aGroupName) |
| bool | RemoveCommandRecipient (const CommandChainTarget &aCommandChainTarget) |
| bool | RemoveCommRecipient (const CommPair &aCommPair) |
| void | DeleteAllRecipients () |
| AddressVec | GetRecipients (bool aNotify=false) const |
| comm::Comm * | GetXmtr () const |
| size_t | GetRecipientCount () const |
| WsfStringId | GetXmtrName () const |
| void | SetXmtrName (WsfStringId aXmtrName) |
| void | SetParent (ExternalLinks *aParentPtr) |
| using wsf::ExternalLinks::ExternalLink::AddressSet = std::unordered_set<Address> |
| using wsf::ExternalLinks::ExternalLink::CommandSet = std::unordered_set<CommandChainTarget, CommandHash> |
| using wsf::ExternalLinks::ExternalLink::CommSet = std::unordered_set<CommPair, CommPairHash> |
| using wsf::ExternalLinks::ExternalLink::WsfStringSet = std::unordered_set<WsfStringId> |
|
default |
|
virtualdefault |
| bool wsf::ExternalLinks::ExternalLink::AddAddressRecipient | ( | const Address & | aAddress | ) |
References mAddressRecipients.
Referenced by wsf::ExternalLinks::AddRecipient(), and ~ExternalLink().
| bool wsf::ExternalLinks::ExternalLink::AddCommandRecipient | ( | const CommandChainTarget & | aCommandChainTarget | ) |
References mCommandRecipients.
Referenced by wsf::ExternalLinks::AddRecipient(), and ~ExternalLink().
| bool wsf::ExternalLinks::ExternalLink::AddCommRecipient | ( | const CommPair & | aCommPair | ) |
References mCommRecipients.
Referenced by wsf::ExternalLinks::AddRecipient(), and ~ExternalLink().
| bool wsf::ExternalLinks::ExternalLink::AddGroupRecipient | ( | WsfStringId | aGroupName | ) |
References mGroups.
Referenced by wsf::ExternalLinks::AddRecipient(), and ~ExternalLink().
| void wsf::ExternalLinks::ExternalLink::DeleteAllRecipients | ( | ) |
References mAddressRecipients, mCommandRecipients, mCommRecipients, and mGroups.
Referenced by ~ExternalLink().
| size_t wsf::ExternalLinks::ExternalLink::GetRecipientCount | ( | ) | const |
References wsf::ExternalLinks::cCOMMANDER, wsf::ExternalLinks::cPEERS, wsf::ExternalLinks::cSUBORDINATES, groupPtr, mAddressRecipients, mCommandRecipients, mCommRecipients, mGroups, and mParentPtr.
Referenced by ~ExternalLink().
| ExternalLinks::AddressVec wsf::ExternalLinks::ExternalLink::GetRecipients | ( | bool | aNotify = false | ) | const |
Add recipients identified by an address.
Validate addresses with network manager. Exclude any addresses that are not resolved. Allow any address that is an interface, broadcast, or multicast.
Add recipients identified by a group.
We only allow platform parts, specifically comms.
Add recipients identified by command chains
Add recipients identified by platform-name comm-name pair
References wsf::ExternalLinks::cCOMMANDER, wsf::ExternalLinks::cPEERS, wsf::ExternalLinks::cSUBORDINATES, groupPtr, mAddressRecipients, mCommandRecipients, mCommRecipients, mGroups, mParentPtr, and platformPtr.
Referenced by getLinkedAndReachablePlatformParts(), and ~ExternalLink().
| comm::Comm * wsf::ExternalLinks::ExternalLink::GetXmtr | ( | ) | const |
References GetXmtrName(), mParentPtr, and platformPtr.
Referenced by getLinkedAndReachablePlatformParts(), and ~ExternalLink().
|
inline |
References mXmtrName.
Referenced by wsf::ExternalLinks::FindLink(), and GetXmtr().
| bool wsf::ExternalLinks::ExternalLink::RemoveAddressRecipient | ( | const Address & | aAddress | ) |
References mAddressRecipients.
Referenced by ~ExternalLink().
| bool wsf::ExternalLinks::ExternalLink::RemoveCommandRecipient | ( | const CommandChainTarget & | aCommandChainTarget | ) |
References mCommandRecipients.
Referenced by ~ExternalLink().
| bool wsf::ExternalLinks::ExternalLink::RemoveCommRecipient | ( | const CommPair & | aCommPair | ) |
References mCommRecipients.
Referenced by ~ExternalLink().
| bool wsf::ExternalLinks::ExternalLink::RemoveGroupRecipient | ( | WsfStringId | aGroupName | ) |
References mGroups.
Referenced by ~ExternalLink().
|
inline |
References wsf::ExternalLinks::ExternalLinks(), and mParentPtr.
|
inline |
References mXmtrName.
Referenced by wsf::ExternalLinks::AddRecipient(), wsf::ExternalLinks::AddRecipient(), wsf::ExternalLinks::AddRecipient(), and wsf::ExternalLinks::AddRecipient().
|
protected |
Referenced by AddAddressRecipient(), DeleteAllRecipients(), GetRecipientCount(), GetRecipients(), and RemoveAddressRecipient().
|
protected |
Referenced by AddCommandRecipient(), DeleteAllRecipients(), GetRecipientCount(), GetRecipients(), and RemoveCommandRecipient().
|
protected |
Referenced by AddCommRecipient(), DeleteAllRecipients(), GetRecipientCount(), GetRecipients(), and RemoveCommRecipient().
|
protected |
Referenced by AddGroupRecipient(), DeleteAllRecipients(), GetRecipientCount(), GetRecipients(), and RemoveGroupRecipient().
|
protected |
Referenced by GetRecipientCount(), GetRecipients(), GetXmtr(), and SetParent().
|
protected |
Referenced by GetXmtrName(), and SetXmtrName().