This class is for internal use only. Never use it directly.
More...
#include <DomainSelector.hpp>
This class is for internal use only. Never use it directly.
This class is only part of the SDK, because it serves as member of template class DualDomain. The intention of this class is to hide as much as possible code of class DualDomain, so that inlining is avoided as much as possible.
◆ DomainSelector()
Arp::Plc::Domain::Commons::DomainSelector::DomainSelector |
( |
DomainBase & |
domain1, |
|
|
DomainBase & |
domain2 |
|
) |
| |
Constructs a DualDomainBase instance.
- Parameters
-
domain1 | The adapted foreground domain. |
domain2 | The adapted background domain. |
◆ Get() [1/2]
DomainBase & Arp::Plc::Domain::Commons::DomainSelector::Get |
( |
bool |
backgroundDomain | ) |
|
Gets one of the domain instances depending on the backgroundDomain .
- Parameters
-
backgroundDomain | If true , the background domain is returned, otherwise the foreground domain. |
- Returns
- One of the domain instances.
◆ Get() [2/2]
const DomainBase & Arp::Plc::Domain::Commons::DomainSelector::Get |
( |
bool |
backgroundDomain | ) |
const |
Gets one of the domain instances depending on the backgroundDomain .
- Parameters
-
backgroundDomain | If true , the background domain is returned, otherwise the foreground domain. |
- Returns
- One of the domain instances.
◆ SwapDomains()
void Arp::Plc::Domain::Commons::DomainSelector::SwapDomains |
( |
bool |
simulate | ) |
|
Swaps the domain states during download-changes operation.
- Parameters
-
simulate | If true the swap is just simulated to measure the duration. |
The documentation for this class was generated from the following files: