nis-util
1.0.D108
|
#include <adapter.h>
Public Types | |
typedef boost::shared_ptr < space_auto_master_row_adapter > | pointer |
Public Member Functions | |
virtual | ~space_auto_master_row_adapter () |
Static Public Member Functions | |
static pointer | create (const mount_point &foreign_key) |
Protected Member Functions | |
void | print (const output_pointer &op) const |
void | load_map (const rcstring &filename, const space_hosts_slurp::pointer &hosts) |
Private Member Functions | |
space_auto_master_row_adapter (const mount_point &foreign_key) | |
space_auto_master_row_adapter () | |
space_auto_master_row_adapter (const space_auto_master_row_adapter &rhs) | |
space_auto_master_row_adapter & | operator= (const space_auto_master_row_adapter &rhs) |
The space_auto_master_row_adapter class is used to represent a reference to an automap row from within an etc/auto.master table, when checking for overlaps and other errors.
typedef boost::shared_ptr<space_auto_master_row_adapter> space_auto_master_row_adapter::pointer |
Reimplemented from space_auto_master_row.
The destructor.
Definition at line 23 of file adapter.cc.
space_auto_master_row_adapter::space_auto_master_row_adapter | ( | const mount_point & | foreign_key | ) | [private] |
The default constructor. It is private on purpose, use the create class method instead.
Definition at line 28 of file adapter.cc.
The default constructor. Do not use.
space_auto_master_row_adapter::space_auto_master_row_adapter | ( | const space_auto_master_row_adapter & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
space_auto_master_row_adapter::pointer space_auto_master_row_adapter::create | ( | const mount_point & | foreign_key | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
Definition at line 37 of file adapter.cc.
void space_auto_master_row_adapter::load_map | ( | const rcstring & | filename, |
const space_hosts_slurp::pointer & | hosts | ||
) | [protected, virtual] |
The load_map method is used to load the map corresponding to this row of the table.
filename | The name of the file to read from. |
hosts | If non-NULL, the hosts map to validate against. |
Implements space_auto_master_row.
Definition at line 51 of file adapter.cc.
space_auto_master_row_adapter& space_auto_master_row_adapter::operator= | ( | const space_auto_master_row_adapter & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
void space_auto_master_row_adapter::print | ( | const output_pointer & | op | ) | const [protected, virtual] |
The print method is used to print a representation of the etc/auto.master row on the given output stream.
Implements space_auto_master_row.
Definition at line 44 of file adapter.cc.