Endpoint (source or destination) definition class.
More...
Endpoint (source or destination) definition class.
CPNS::Endpoint::Endpoint |
( |
| ) |
|
CPNS::Endpoint::Endpoint |
( |
CPNS::uint16 const |
wBrandID, |
|
|
CPNS::uint16 const |
wModelID, |
|
|
CPNS::uint32 const |
dwDuplicateNumber, |
|
|
CPNS::uint16 const |
wModuleID, |
|
|
CPNS::uint16 const |
wInOutID |
|
) |
| |
Constructor.
- Parameters
-
[in] | wBrandID | Device's Manufacturer ID |
[in] | wModelID | Device's Model ID |
[in] | dwDuplicateNumber | Device's Duplicate Number |
[in] | wModuleID | Device's Module ID |
[in] | wInOutID | Input or Output ID depending on the endpoint side. |
CPNS::Endpoint::Endpoint |
( |
DeviceID const & |
devID, |
|
|
CPNS::uint16 const |
wInOutID |
|
) |
| |
Constructor.
- Parameters
-
[in] | devID | Device's ID |
[in] | wInOutID | Input or Output ID depending on the endpoint side. |
CPNS::Endpoint::Endpoint |
( |
Endpoint const & |
data | ) |
|
void CPNS::Endpoint::Clear |
( |
| ) |
|
Clear the endpoint content.
static CPNS::int8 CPNS::Endpoint::Compare |
( |
Endpoint const & |
endpt1, |
|
|
Endpoint const & |
endpt2 |
|
) |
| |
|
static |
Compare method.
- Returns
- -1 if endpt1<endpt2 +1 if endpt1>endpt2 0 if endpt1==endpt2
CPNS::uint32 CPNS::Endpoint::GetIdentity |
( |
| ) |
const |
Identity getter.
- Returns
- Identity (combined BrandID/ModelID value, excluding duplicate and moduleID)
CPNS::boolean CPNS::Endpoint::IsEmpty |
( |
| ) |
const |
Empty check.
- Returns
- TRUE if all fields are empty
CPNS::boolean CPNS::Endpoint::operator!= |
( |
Endpoint const & |
a | ) |
const |
Difference check operator.
CPNS::boolean CPNS::Endpoint::operator< |
( |
Endpoint const & |
a | ) |
const |
Less than check operator.
CPNS::boolean CPNS::Endpoint::operator== |
( |
Endpoint const & |
a | ) |
const |
CPNS::boolean CPNS::Endpoint::operator> |
( |
Endpoint const & |
a | ) |
const |
Greater than check operator.
String representation.
- Returns
- an hexadecimal view of the endpoint
CPNS::boolean CPNS::Endpoint::m_fDisabledDestination |
TRUE if the endpoint correspond to a disabled destination.
A destination is going to disabled status when it is unreachable. This value is set by the CHAI and must be considered as a read-only member of CEndPoint.
CPNS::uint16 CPNS::Endpoint::m_wInOutID |
Input or Output ID depending on the endpoint side.