nis-util
1.0.D108
|
#include <hosts.h>
Data Structures | |
class | record |
Public Types | |
typedef boost::shared_ptr < space_hosts > | pointer |
Public Member Functions | |
virtual | ~space_hosts () |
record::pointer | get (void) |
Static Public Member Functions | |
static pointer | create (const rcstring &filename) |
static bool | valid_ip_address (const rcstring &input, rcstring &output) |
static bool | valid_host_name (const rcstring &input, rcstring &output) |
Protected Member Functions | |
space_hosts (const rcstring &filename) | |
Private Member Functions | |
space_hosts () | |
space_hosts (const space_hosts &) | |
space_hosts & | operator= (const space_hosts &) |
Private Attributes | |
record::pointer | last_rp |
The space_hosts class is used to represent the parse state of a hosts file (see hosts(5) for file format information).
typedef boost::shared_ptr<space_hosts> space_hosts::pointer |
Reimplemented in space_hosts_slurp.
space_hosts::~space_hosts | ( | ) | [virtual] |
space_hosts::space_hosts | ( | const rcstring & | filename | ) | [protected] |
space_hosts::space_hosts | ( | ) | [private] |
The default constructor. Do not use.
space_hosts::space_hosts | ( | const space_hosts & | ) | [private] |
The copy constructor. Do not use.
space_hosts::pointer space_hosts::create | ( | const rcstring & | filename | ) | [static] |
The create class method is used to create new dynamically aloocated instances of this class.
filename | The name of the file to read. |
Reimplemented in space_hosts_slurp.
The get method is used to get another record from the file.
Input lines are validated for simple correctness. Invalid lines cause fatal errors (see the error method) and are not passed through.
space_hosts& space_hosts::operator= | ( | const space_hosts & | ) | [private] |
The assignment operator. Do not use.
bool space_hosts::valid_host_name | ( | const rcstring & | input, |
rcstring & | output | ||
) | [static] |
bool space_hosts::valid_ip_address | ( | const rcstring & | input, |
rcstring & | output | ||
) | [static] |
record::pointer space_hosts::last_rp [private] |