71 OTC_SDK_API MacAddress(std::uint8_t a, std::uint8_t b, std::uint8_t c, std::uint8_t d, std::uint8_t e, std::uint8_t f) noexcept;
132 bool operator==(const
MacAddress& rhs) const noexcept;
134 bool operator==(const std::uint64_t& rhs) const;
136 bool operator!=(const
MacAddress& rhs) const noexcept;
141 std::array<std::uint8_t, 6> _bytes;
159 return _bytes == rhs._bytes;
169 return !(_bytes == rhs._bytes);
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Contains the exceptions raised by the SDK.
Encapsulates a media access control address (MAC address).
Definition MacAddress.h:34
OTC_SDK_API void reset() noexcept
Resets all the bytes of the MAC address to 0 (0:0:0:0:0:0).
bool operator==(const MacAddress &rhs) const noexcept
Equality operator.
Definition MacAddress.h:157
OTC_SDK_API std::uint64_t toUInt64() const noexcept
Returns the MAC address as an unsigned 64 bit integer.
OTC_SDK_API void setFromUInt64(std::uint64_t mac)
Sets the MAC address from an unsigned 64 bit integer.
bool operator!=(const MacAddress &rhs) const noexcept
Unequality operator.
Definition MacAddress.h:167
OTC_SDK_API void setFromString(const std::string &mac)
Sets the MAC address from the given string.
OTC_SDK_API std::string toString() const noexcept
Returns the MAC address as a string in colon notation (a:b:c:d:e:f).
OTC_SDK_API std::uint8_t getByte(int index) const
Returns the value of the byte with the given index.
OTC_SDK_API MacAddress() noexcept
Constructor.
OTC_SDK_API void setByte(int index, std::uint8_t value)
Sets the value of the byte with the given index.
Main SDK namespace.
Definition DeviceInfo.h:24