|
NetSim 1.0.0
An educational network simulation software for students
|
Represents a Media Access Control (MAC) address. More...
#include <macaddress.h>
Public Member Functions | |
| MACAddress ()=default | |
| Default constructor initializing an empty MAC address. | |
| MACAddress (const QVector< quint8 > &address) | |
| Constructs a MACAddress from a given byte array. | |
| QString | toString () const |
| Converts the MAC address to a string format. | |
| QVector< quint8 > | toArray () const |
| Converts the MAC address to a byte array. | |
| quint64 | toInt () const |
| Converts the MAC address to an integer format. | |
| bool | operator< (const MACAddress &other) const |
| Overload of the less than operator. | |
| bool | operator== (const MACAddress &other) const |
| Overload of the equality operator. | |
Static Public Member Functions | |
| static MACAddress | getRandomAddress () |
| Generates a random MAC address. | |
Represents a Media Access Control (MAC) address.
This class provides functionalities to represent a MAC address, and offers various conversion utilities like converting to string, array or an integer format.
|
default |
|
explicit |
Constructs a MACAddress from a given byte array.
| address | A byte array representing the MAC address. |
|
static |
Generates a random MAC address.


| bool MACAddress::operator< | ( | const MACAddress & | other | ) | const |
| bool MACAddress::operator== | ( | const MACAddress & | other | ) | const |
| QVector< quint8 > MACAddress::toArray | ( | ) | const |
| quint64 MACAddress::toInt | ( | ) | const |
| QString MACAddress::toString | ( | ) | const |