EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
EPCDNS::DiameterHost Class Reference

Represents a diameter host. More...

#include <epcdns.h>

Public Member Functions

 DiameterHost ()
 Default constructor. More...
 
 DiameterHost (const char *name)
 Class constructor. More...
 
 DiameterHost (const std::string &name)
 Class constructor. More...
 
const EStringgetName () const
 Retrieves the Diameter host name. More...
 
const EStringsetName (const char *name)
 Assigns the Diameter host name. More...
 
const EStringsetName (const std::string &name)
 Assigns the Diameter host name. More...
 
StringVectorgetIPv4Addresses ()
 Retrieves the list of IPv4 addresses for this Diameter host. More...
 
StringVectorgetIPv6Addresses ()
 Retrieves the list of IPv6 addresses for this Diameter host. More...
 
Void addIPv4Address (const std::string &addr)
 Adds an IPv4 address for this Diameter host. More...
 
Void addIPv6Address (const std::string &addr)
 Adds an IPv6 address for this Diameter host. More...
 
Void dump (const char *prefix)
 Prints the contents of this object. More...
 

Detailed Description

Represents a diameter host.

Constructor & Destructor Documentation

◆ DiameterHost() [1/3]

EPCDNS::DiameterHost::DiameterHost ( )
inline

Default constructor.

◆ DiameterHost() [2/3]

EPCDNS::DiameterHost::DiameterHost ( const char *  name)
inline

Class constructor.

Parameters
namethe Diameter host name.

◆ DiameterHost() [3/3]

EPCDNS::DiameterHost::DiameterHost ( const std::string &  name)
inline

Class constructor.

Parameters
namethe Diameter host name.

Member Function Documentation

◆ addIPv4Address()

Void EPCDNS::DiameterHost::addIPv4Address ( const std::string &  addr)
inline

Adds an IPv4 address for this Diameter host.

Parameters
addran IPv4 address for this Diameter host.

◆ addIPv6Address()

Void EPCDNS::DiameterHost::addIPv6Address ( const std::string &  addr)
inline

Adds an IPv6 address for this Diameter host.

Parameters
addran IPv6 address for this Diameter host.

◆ dump()

Void EPCDNS::DiameterHost::dump ( const char *  prefix)
inline

Prints the contents of this object.

Parameters
prefixa value to prepend to each line.

◆ getIPv4Addresses()

StringVector& EPCDNS::DiameterHost::getIPv4Addresses ( )
inline

Retrieves the list of IPv4 addresses for this Diameter host.

Returns
the list of IPv4 addresses for this diameter host.

◆ getIPv6Addresses()

StringVector& EPCDNS::DiameterHost::getIPv6Addresses ( )
inline

Retrieves the list of IPv6 addresses for this Diameter host.

Returns
the list of IPv6 addresses for this Diameter host.

◆ getName()

const EString& EPCDNS::DiameterHost::getName ( ) const
inline

Retrieves the Diameter host name.

Returns
the Diameter host name.

◆ setName() [1/2]

const EString& EPCDNS::DiameterHost::setName ( const char *  name)
inline

Assigns the Diameter host name.

Parameters
namethe Diameter host name.
Returns
the Diameter host name.

◆ setName() [2/2]

const EString& EPCDNS::DiameterHost::setName ( const std::string &  name)
inline

Assigns the Diameter host name.

Parameters
namethe Diameter host name.
Returns
the Diameter host name.

The documentation for this class was generated from the following file: