nis-util
1.0.D108
|
#include <netmasks.h>
Data Structures | |
class | record |
Public Types | |
typedef boost::shared_ptr < space_netmasks > | pointer |
Public Member Functions | |
virtual | ~space_netmasks () |
record::pointer | get (void) |
Static Public Member Functions | |
static pointer | create (const rcstring &filename) |
Protected Member Functions | |
space_netmasks (const rcstring &filename) | |
Private Member Functions | |
space_netmasks () | |
space_netmasks (const space_netmasks &) | |
space_netmasks & | operator= (const space_netmasks &) |
Private Attributes | |
unsigned long | last_number |
The space_networks class is used to represent the parse state of a netmasks file (see netmasks(5) for file format information).
Definition at line 30 of file netmasks.h.
typedef boost::shared_ptr<space_netmasks> space_netmasks::pointer |
Reimplemented in space_netmasks_slurp.
Definition at line 34 of file netmasks.h.
space_netmasks::~space_netmasks | ( | ) | [virtual] |
The destructor.
Definition at line 28 of file netmasks.cc.
space_netmasks::space_netmasks | ( | const rcstring & | filename | ) | [protected] |
The constructor. It is private on purpose, use the create class method instead.
filename | The name of the file to be read. |
Definition at line 33 of file netmasks.cc.
space_netmasks::space_netmasks | ( | ) | [private] |
The default constructor. Do not use.
space_netmasks::space_netmasks | ( | const space_netmasks & | ) | [private] |
The copy constructor. Do not use.
space_netmasks::pointer space_netmasks::create | ( | const rcstring & | filename | ) | [static] |
The create class method is used to create new dynamically allocated instance of this class.
filename | The name of the file to be read. |
Reimplemented in space_netmasks_slurp.
Definition at line 43 of file netmasks.cc.
The get method is used to get another record from the file. It returns false at end-of-file.
Input lines are validated for simple correctness. Invalid lines cause fatal errors (see the error method) and are not passed through.
Definition at line 50 of file netmasks.cc.
space_netmasks& space_netmasks::operator= | ( | const space_netmasks & | ) | [private] |
The assignment operator. Do not use.
unsigned long space_netmasks::last_number [private] |
The last_number instance variable is used by the get method to check record sequencing.
Definition at line 159 of file netmasks.h.