CIpAddress Class Reference

#include <mw/ipaddr.h>

Link against: biut.lib

class CIpAddress : public CBase

Inherits from

  • CIpAddress

    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.

    Returns: 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.

    ParameterDescription
    aAddrIP address string

    Returns: New IP address object

    NewL ( )

    CIpAddress *NewL()[static, inline]

    Allocates and constructs a new empty IP address object.

    Returns: 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.

    ParameterDescription
    aAddrIP address string

    Returns: 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.

    Returns: 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.

    ParameterDescription
    aAddrIP address string