nis-util
1.0.D108
|
#include <netmasks.h>
Public Types | |
typedef boost::shared_ptr< record > | pointer |
Public Member Functions | |
~record () | |
rcstring | representation (void) const |
const source_location & | get_source_location (void) const |
rcstring | get_number (void) const |
unsigned long | get_number_binary (void) const |
rcstring | get_mask (void) const |
unsigned long | get_mask_binary (void) const |
Static Public Member Functions | |
static pointer | create (const source_location &locn, const rcstring &number, const rcstring &mask) |
Private Member Functions | |
record (const source_location &locn, const rcstring &number, const rcstring &mask) | |
record () | |
record (const record &rhs) | |
record & | operator= (const record &rhs) |
Private Attributes | |
source_location | locn |
rcstring | number |
rcstring | mask |
The record class is used to represent one record from the netmasks file. Values of this type are returned by the get method.
Definition at line 54 of file netmasks.h.
typedef boost::shared_ptr<record> space_netmasks::record::pointer |
Definition at line 57 of file netmasks.h.
The destructor.
Definition at line 299 of file netmasks.cc.
space_netmasks::record::record | ( | const source_location & | locn, |
const rcstring & | number, | ||
const rcstring & | mask | ||
) | [private] |
The constructor. It is private on purpose, use the create class method instead.
locn | The source location of this record |
number | The network number of this record. Assumed to be a valid network address, in valid format. |
mask | The mask number of this record. Assumed to be a valid network address, in valid format. |
Definition at line 304 of file netmasks.cc.
space_netmasks::record::record | ( | ) | [private] |
The default constructor. Do not use.
space_netmasks::record::record | ( | const record & | rhs | ) | [private] |
The copy constructor. Do not use.
space_netmasks::record::pointer space_netmasks::record::create | ( | const source_location & | locn, |
const rcstring & | number, | ||
const rcstring & | mask | ||
) | [static] |
The create class method is used to create new dynamically allocated instance of this class.
locn | The source location of this record |
number | The network number of this record. Assumed to be a valid network address, in valid format. |
mask | The mask number of this record. Assumed to be a valid network address, in valid format. |
Definition at line 317 of file netmasks.cc.
rcstring space_netmasks::record::get_mask | ( | void | ) | const [inline] |
Definition at line 91 of file netmasks.h.
unsigned long space_netmasks::record::get_mask_binary | ( | void | ) | const |
Definition at line 333 of file netmasks.cc.
rcstring space_netmasks::record::get_number | ( | void | ) | const [inline] |
Definition at line 89 of file netmasks.h.
unsigned long space_netmasks::record::get_number_binary | ( | void | ) | const |
Definition at line 325 of file netmasks.cc.
const source_location& space_netmasks::record::get_source_location | ( | void | ) | const [inline] |
Definition at line 88 of file netmasks.h.
The assignment operator. Do not use.
rcstring space_netmasks::record::representation | ( | void | ) | const |
The representation method is used to generate a string which represents the netmasks entry, suitable for inserting into an netmasks file or netmasks map. (There is no newline on the end.)
Definition at line 341 of file netmasks.cc.
source_location space_netmasks::record::locn [private] |
Definition at line 111 of file netmasks.h.
rcstring space_netmasks::record::mask [private] |
Definition at line 113 of file netmasks.h.
rcstring space_netmasks::record::number [private] |
Definition at line 112 of file netmasks.h.