PLCnext API Documentation
21.0.0.35466
|
Unified representation for ip address schemes. More...
#include <IpAddress.hpp>
Public Types | |
typedef uint32 | IpV4Value |
Value-type-definition for ip addresses using version 4 scheme. More... | |
Public Member Functions | |
IpAddress (void)=default | |
Constructs an IpAddress instance. More... | |
IpAddress (uint32 ip4address) | |
Constructs a new representation based on an encoded ip v4 address. More... | |
IpAddress (const IpAddress &arg)=default | |
Copy constructor. More... | |
IpAddress & | operator= (const IpAddress &arg)=default |
Assignment operator. More... | |
~IpAddress (void)=default | |
Destructs this instance and frees all resources. More... | |
void | operator= (Arp::uint32 ip4Address) |
Assigns a new ip v4 address value. 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... | |
Unified representation for ip address schemes.
Value-type-definition for ip addresses using version 4 scheme.
|
default |
Constructs an IpAddress instance.
|
inline |
Constructs a new representation based on an encoded ip v4 address.
ip4address | The encoded ip v4 address value. |
|
default |
Copy constructor.
|
default |
Destructs this instance and frees all resources.
|
inline |
Returns the ip address in ip v4 address scheme.
Assignment operator.
|
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. |