PLCnext API Documentation 23.6.0.37
|
Unified representation for ip address schemes. More...
#include <IpAddress.hpp>
Public Types | |
using | IpV4Value = uint32 |
Value-type-definition for ip addresses using version 4 scheme. | |
Public Member Functions | |
IpAddress (void)=default | |
Constructs an IpAddress instance. | |
IpAddress (uint32 ip4address) | |
Constructs a new representation based on an encoded ip v4 address. More... | |
IpAddress (const IpAddress &arg)=default | |
Copy constructor. | |
IpAddress & | operator= (const IpAddress &arg)=default |
Assignment operator. | |
~IpAddress (void)=default | |
Destructs this instance and frees all resources. | |
void | operator= (Arp::uint32 ip4Address) |
Assigns a new ip v4 address value. More... | |
bool | IsEmpty (void) const |
Determines if this instance is empty, e.g. the address value is zero. More... | |
IpV4Value | GetIpv4Value (void) const |
Returns the ip address in ip v4 address scheme. More... | |
String | ToString (void) const |
Static Public Member Functions | |
static IpAddress | Parse (const String &input) |
Parses an ip address from string bases representation, e.g. "127.0.0.1". More... | |
static bool | TryParse (const String &input, IpAddress &result) |
Tries to parse an address from string based representation. More... | |
Static Public Attributes | |
static IpAddress | Empty |
Unified representation for ip address schemes.
|
inline |
Constructs a new representation based on an encoded ip v4 address.
ip4address | The encoded ip v4 address value. |
|
inline |
Returns the ip address in ip v4 address scheme.
|
inline |
Determines if this instance is empty, e.g. the address value is zero.
true
if this instance is zero, otherwise false
.
|
inline |
Assigns a new ip v4 address value.
ip4Address | New ip v4 value. |
Parses an ip address from string bases representation, e.g. "127.0.0.1".
input | The string based representation of the ip address. |
Arp::System::Commons::ArgumentException | if the string does not fit any known representation. |
|
static |
Tries to parse an address from string based representation.
input | The string based representation of the ip address. |
result | The container for the parsed ip address. |