dbinfo Class Reference

#include <dbinfo.h>

Inheritance diagram for dbinfo:

acedbinfo acedbinfo pgdbinfo pgdbinfo

List of all members.

Public Member Functions

 dbinfo ()
string getAddress (const string &hn)
bool mapEmpty () const
 dbinfo ()
string getAddress (const string &hn)
bool mapEmpty () const

Static Public Member Functions

static void init ()
static void init ()

Static Public Attributes

static map< string, string > hostmap = map<string,string>()


Constructor & Destructor Documentation

dbinfo::dbinfo (  )  [inline]

References hostmap, and init().

dbinfo::dbinfo (  )  [inline]

References hostmap, and init().


Member Function Documentation

string dbinfo::getAddress ( const string &  hn  ) 

given a host name string hn returns the ip address as string

References hostmap.

Referenced by acedbinfo::acedbinfo(), and pgdbinfo::getHostAddress().

bool dbinfo::mapEmpty (  )  const [inline]

References hostmap.

void dbinfo::init (  )  [static]

read /etc/hosts file store host and alias => ipaddress into the hostmap data structure

References dissect(), hostmap, and ifstream().

Referenced by dbinfo().

string dbinfo::getAddress ( const string &  hn  ) 

given a host name string hn returns the ip address as string

bool dbinfo::mapEmpty (  )  const [inline]

References hostmap.

static void dbinfo::init (  )  [static]

read /etc/hosts file store host and alias => ipaddress into the hostmap data structure


Member Data Documentation

static map< string, string > dbinfo::hostmap = map<string,string>() [static]

host or host_alias => ip_address

Referenced by dbinfo(), getAddress(), init(), and mapEmpty().


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

Generated on Wed Aug 10 11:57:09 2011 for Softwares from Orpara by  doxygen 1.5.6