63 Port(const std::
string& port);
67 void reset() noexcept;
105 bool operator==(const
Port& rhs) const noexcept;
107 bool operator!=(const
Port& rhs) const noexcept;
109 bool operator<(const
Port& rhs) const noexcept;
160 return _number == rhs._number;
165 return _number != rhs._number;
170 return _number < rhs._number;
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 network port number.
Definition Port.h:34
OTC_SDK_API std::string toString() const noexcept
Returns the port number as a string.
void setNumber(Number number) noexcept
Sets the port number to the given value.
Definition Port.h:148
Port() noexcept
Constructor.
Definition Port.h:130
Number getNumber() const noexcept
Returns the port number.
Definition Port.h:153
bool operator==(const Port &rhs) const noexcept
Equality operator.
Definition Port.h:158
bool operator!=(const Port &rhs) const noexcept
Unequality operator.
Definition Port.h:163
void reset() noexcept
Resets the port number to 0.
Definition Port.h:143
bool operator<(const Port &rhs) const noexcept
Less than operator.
Definition Port.h:168
OTC_SDK_API void setFromString(const std::string &port) noexcept(false)
Sets the port number from the given string.
std::uint16_t Number
Type used to store the port number.
Definition Port.h:37
Main SDK namespace.
Definition DeviceInfo.h:23