Public Types | Public Member Functions | Public Attributes

CxUtils::IP6Address Class Reference

Simple IPv6 Network Address structure. More...

#include <ip6address.h>

Inheritance diagram for CxUtils::IP6Address:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::set< IP6AddressSet
typedef std::vector< IP6AddressList
typedef std::list< IP6AddressQueue

Public Member Functions

 IP6Address ()
 Constructor.
 IP6Address (const char *ipAddress)
 Creates from IPv4 Address string.
 IP6Address (const std::string &ipAddress)
 Creates from IPv6 Address string.
 IP6Address (const IP6Address &ipAddress)
 Copy Constructor.
 ~IP6Address ()
 Destructor.
bool SetAddress (const std::string &ipAddress)
 Sets the IP address string and octect data from an IP address string.
bool SetAddress (const unsigned char a, const unsigned char b, const unsigned char c, const unsigned char d, const unsigned char e, const unsigned char f)
 Sets the IP address values "a.b.c.d".
IP6Addressoperator= (const IP6Address &ipAddress)
 Sets equal to.
IP6Addressoperator= (const std::string &ipAddress)
 Sets equal to.
bool operator== (const IP6Address &ipAddress) const
 True if equal.
bool operator!= (const IP6Address &ipAddress) const
 True if not equal.
bool operator< (const IP6Address &ipAddress) const
 Compares the IP address for sorting.
bool operator<= (const IP6Address &ipAddress) const
 Compares the IP address for sorting.
virtual void Clear ()
 Clears data.

Public Attributes

std::string mString
unsigned char mData [6]

Detailed Description

Simple IPv6 Network Address structure.

Definition at line 54 of file ip6address.h.


Member Typedef Documentation

typedef std::vector<IP6Address> CxUtils::IP6Address::List

Definition at line 58 of file ip6address.h.

Definition at line 59 of file ip6address.h.

Definition at line 57 of file ip6address.h.


Constructor & Destructor Documentation

IP6Address::IP6Address (  )

Constructor.

Definition at line 52 of file ip6address.cpp.

IP6Address::IP6Address ( const char *  ipAddress )

Creates from IPv4 Address string.

Definition at line 64 of file ip6address.cpp.

IP6Address::IP6Address ( const std::string &  ipAddress )

Creates from IPv6 Address string.

Definition at line 75 of file ip6address.cpp.

IP6Address::IP6Address ( const IP6Address ipAddress )

Copy Constructor.

Definition at line 86 of file ip6address.cpp.

IP6Address::~IP6Address (  )

Destructor.

Definition at line 98 of file ip6address.cpp.


Member Function Documentation

void IP6Address::Clear (  ) [virtual]

Clears data.

Implements CxUtils::IPAddress.

Definition at line 252 of file ip6address.cpp.

bool IP6Address::operator!= ( const IP6Address ipAddress ) const

True if not equal.

Definition at line 236 of file ip6address.cpp.

bool IP6Address::operator< ( const IP6Address ipAddress ) const

Compares the IP address for sorting.

Definition at line 199 of file ip6address.cpp.

bool IP6Address::operator<= ( const IP6Address ipAddress ) const

Compares the IP address for sorting.

Definition at line 210 of file ip6address.cpp.

IP6Address & IP6Address::operator= ( const std::string &  ipAddress )

Sets equal to.

Definition at line 188 of file ip6address.cpp.

IP6Address & IP6Address::operator= ( const IP6Address ipAddress )

Sets equal to.

Definition at line 176 of file ip6address.cpp.

bool IP6Address::operator== ( const IP6Address ipAddress ) const

True if equal.

Definition at line 221 of file ip6address.cpp.

bool IP6Address::SetAddress ( const std::string &  ipAddress )

Sets the IP address string and octect data from an IP address string.

Parameters:
[in]ipAddressIP Address data "127.0.0.0.0.1", "1.1.132.170.190.86."
Returns:
True if set, otherwise false.

Definition at line 113 of file ip6address.cpp.

bool IP6Address::SetAddress ( const unsigned char  a,
const unsigned char  b,
const unsigned char  c,
const unsigned char  d,
const unsigned char  e,
const unsigned char  f 
)

Sets the IP address values "a.b.c.d".

Parameters:
[in]aPart of IP address.
[in]bPart of IP address.
[in]cPart of IP address.
[in]dPart of IP address.
[in]ePart of IP address.
[in]fPart of IP address.
Returns:
True on success, false on failure.

Definition at line 151 of file ip6address.cpp.


Member Data Documentation

unsigned char CxUtils::IP6Address::mData[6]

Definition at line 81 of file ip6address.h.

Definition at line 80 of file ip6address.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines