#include <avbts_port.hpp>
PortIdentity interface Defined at IEEE 802.1AS Clause 8.5.2
PortIdentity::PortIdentity |
( |
| ) |
|
|
inline |
PortIdentity::PortIdentity |
( |
uint8_t * |
clock_id, |
|
|
uint16_t * |
portNumber |
|
) |
| |
|
inline |
Constructs PortIdentity interface.
- Parameters
-
clock_id | Clock ID value as defined at IEEE 802.1AS Clause 8.5.2.2 |
portNumber | Port Number |
Gets the clockIdentity value.
- Returns
- A copy of Clock identity value.
void PortIdentity::getClockIdentityString |
( |
uint8_t * |
id | ) |
|
|
inline |
Gets the ClockIdentity string.
- Parameters
-
id | [out] Pointer to an array of octets. |
- Returns
- void
void PortIdentity::getPortNumber |
( |
uint16_t * |
id | ) |
|
|
inline |
Gets the port number in the host byte order, which can be either Big-Endian or Little-Endian, depending on the processor where it is running.
- Parameters
-
- Returns
- void
void PortIdentity::getPortNumberNO |
( |
uint16_t * |
id | ) |
|
|
inline |
Gets the port number following the network byte order, i.e. Big-Endian.
- Parameters
-
- Returns
- void
bool PortIdentity::operator!= |
( |
const PortIdentity & |
cmp | ) |
const |
|
inline |
Implements the operator '!=' overloading method. Compares clock_id and portNumber.
- Parameters
-
- Returns
- TRUE if the comparison value differs from the object's PortIdentity value. FALSE otherwise.
bool PortIdentity::operator< |
( |
const PortIdentity & |
cmp | ) |
const |
|
inline |
Implements the operator '<' overloading method. Compares clock_id and portNumber.
- Parameters
-
- Returns
- TRUE if the comparison value is lower than the object's PortIdentity value. FALSE otherwise.
bool PortIdentity::operator== |
( |
const PortIdentity & |
cmp | ) |
const |
|
inline |
Implements the operator '==' overloading method. Compares clock_id and portNumber.
- Parameters
-
- Returns
- TRUE if the comparison value equals to the object's PortIdentity value. FALSE otherwise.
bool PortIdentity::operator> |
( |
const PortIdentity & |
cmp | ) |
const |
|
inline |
Implements the operator '>' overloading method. Compares clock_id and portNumber.
- Parameters
-
- Returns
- TRUE if the comparison value is greater than the object's PortIdentity value. FALSE otherwise.
Sets the ClockIdentity.
- Parameters
-
clock_id | Clock Identity to be set. |
- Returns
- void
void PortIdentity::setPortNumber |
( |
uint16_t * |
id | ) |
|
|
inline |
Sets the Port number.
- Parameters
-
- Returns
- void
The documentation for this class was generated from the following file: