#include <dbinfo.h>

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>() |
| 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
static map< string, string > dbinfo::hostmap = map<string,string>() [static] |
host or host_alias => ip_address
Referenced by dbinfo(), getAddress(), init(), and mapEmpty().
1.5.6