63 Port(const std::
string& port);
67 void reset() noexcept;
111 bool operator==(const
Port& rhs) const noexcept;
120 bool operator!=(const
Port& rhs) const noexcept;
129 bool operator<(const
Port& rhs) const noexcept;
181 return _number == rhs._number;
186 return _number != rhs._number;
191 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:169
Port() noexcept
Constructor.
Definition Port.h:150
Number getNumber() const noexcept
Returns the port number.
Definition Port.h:174
bool operator==(const Port &rhs) const noexcept
Returns whether this port equals the provided one.
Definition Port.h:179
bool operator!=(const Port &rhs) const noexcept
Returns whether this port is different from the provided one.
Definition Port.h:184
void reset() noexcept
Resets the port number to 0.
Definition Port.h:164
bool operator<(const Port &rhs) const noexcept
Returns whether this port number is smaller than the provided one.
Definition Port.h:189
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 AlarmChannel.h:21