CIpAddress Class Reference

#include <mw/ipaddr.h>

Link against: biut.lib

class CIpAddress : public CBase

Inherits from

Detailed Description

Utility class to hold an IP address as a string on the heap.

This can be useful for parsers that have IP address fields.

Constructor & Destructor Documentation

~CIpAddress ( )

IMPORT_C~CIpAddress()

Destructor.

Member Function Documentation

Addr ( )

IMPORT_C const TDesC &Addr()const

Gets the IP address.

Return Value
IP address string

NewL ( const TDesC & )

IMPORT_C CIpAddress *NewL(const TDesC &aAddr)[static]

Allocates and constructs a new IP address object with a specified address.

A buffer is allocated on the heap and aAddr copied into it.

Parameters
aAddrIP address string
Return Value
New IP address object

NewL ( )

CIpAddress *NewL()[static, inline]

Allocates and constructs a new empty IP address object.

Return Value
New IP address object

NewLC ( const TDesC & )

IMPORT_C CIpAddress *NewLC(const TDesC &aAddr)[static]

Allocates and constructs a new IP address object with a specified address, leaving the object on the cleanup stack.

A buffer is allocated on the heap and aAddr copied into it.

Parameters
aAddrIP address string
Return Value
New IP address object

NewLC ( )

CIpAddress *NewLC()[static, inline]

Allocates and constructs a new empty IP address object, leaving the object on the cleanup stack.

Return Value
New IP address object

SetAddrL ( const TDesC & )

IMPORT_C voidSetAddrL(const TDesC &aAddr)

Sets the IP address.

A buffer is allocated on the heap and aAddr copied into it.

Parameters
aAddrIP address string